कम्प्युटर / सूचना प्रविधि कम्प्युटर अधिकृत (सातौँ तह) – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अधिकृत (सातौँ तह)
Computer Officer – 7th Level · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Inserting a new node at the beginning of a singly linked list takes:
सही उत्तर: घ) O(1) time
Only the new node's next pointer and the head pointer change, regardless of list length.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The time complexity of accessing the i-th element of an array by its index is:
सही उत्तर: ख) O(1)
Array elements are at computed addresses (base + i x size), so access takes constant time.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Binary search can be applied correctly only when the list is:
सही उत्तर: ग) sorted
Binary search relies on order to discard half of the remaining elements at each step.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
At most how many comparisons does binary search need to find an element in a sorted array of 1000 elements?
सही उत्तर: घ) 10
Each comparison halves the range; 2^10 = 1024 > 1000, so at most 10 comparisons.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The time complexity of counting sort for n elements with keys in the range 0 to k is:
सही उत्तर: ग) O(n + k)
Counting sort counts occurrences in an array of size k and then places n elements, taking O(n + k).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which of the following sorting algorithms is stable in its standard form?
सही उत्तर: ग) Merge sort
Merge sort keeps equal keys in their original relative order; the others can reorder equal keys.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
For an array of n elements, selection sort performs at most how many swaps?
सही उत्तर: क) n - 1
Selection sort makes at most one swap per pass and needs n - 1 passes.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python 3, what is the output of print(round(2.5))?
सही उत्तर: ग) 2
Python 3 uses round-half-to-even (banker's rounding), so 2.5 rounds to the even number 2.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the value of bool('') in Python?
सही उत्तर: ख) False
Empty sequences such as '' are falsy in Python.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which exception does Python raise when int('abc') is executed?
सही उत्तर: क) ValueError
The argument has the right type (str) but an invalid value for conversion, so ValueError is raised.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।