प्रोग्रामिङ – Programming MCQ
प्रोग्रामिङ – कम्प्युटर र IT
Programming · Computer & IT (Technical) · १,५६५ प्रश्न
१,५६५ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्रोग्रामिङ: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
The worst-case time complexity of binary search on a sorted array of n elements is:
सही उत्तर: ख) O(log n)
Binary search halves the search space at each step, giving O(log n).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A stack data structure follows the principle:
सही उत्तर: घ) LIFO (Last In First Out)
In a stack the last element pushed is the first one popped.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In object-oriented programming, binding data and the functions that operate on it into a single unit is called:
सही उत्तर: घ) Encapsulation
Encapsulation wraps data and methods together in a class.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, what is printed by: int x = 7/2; printf("%d", x);
सही उत्तर: क) 3
Integer division truncates 7/2 to 3.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C programming, which loop executes its body at least once even if the condition is false?
सही उत्तर: घ) do-while
do-while checks the condition after executing the body, so it runs at least once.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।