कम्प्युटर / सूचना प्रविधि कम्प्युटर अधिकृत (सातौँ तह) – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अधिकृत (सातौँ तह)
Computer Officer – 7th Level · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Shell sort can be described as a generalisation of:
सही उत्तर: घ) Insertion sort, comparing elements that are a gap apart
Shell sort performs gapped insertion sorts with decreasing gaps, finishing with an ordinary insertion sort (gap 1).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
By the master theorem, the recurrence T(n) = 4T(n/2) + n has the solution:
सही उत्तर: क) O(n^2)
a = 4, b = 2, so n^(log_2 4) = n^2 dominates f(n) = n, giving O(n^2).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Keys are inserted into a hash table of size 7 using h(k) = k mod 7 with linear probing. After inserting 15 and then 22, where is 22 stored?
सही उत्तर: ग) Index 2
15 mod 7 = 1, so 15 goes to index 1; 22 mod 7 = 1 is taken, so linear probing places 22 at index 2.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Selection sort (ascending, swapping the minimum to the front) is applied to [29, 10, 14, 37, 13]. After the first pass the array is:
सही उत्तर: ग) [10, 29, 14, 37, 13]
The minimum, 10, is swapped with the first element 29; the rest stay in place.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
After the first pass of bubble sort (ascending) on [5, 1, 4, 2, 8], the list becomes:
सही उत्तर: क) [1, 4, 2, 5, 8]
Swaps: (5,1) -> 1,5; (5,4) -> 4,5; (5,2) -> 2,5; (5,8) no swap, giving [1, 4, 2, 5, 8].
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Why can a Python list not be used as a dictionary key?
सही उत्तर: ख) Lists are mutable and therefore unhashable
Dictionary keys must be hashable; mutable lists have no stable hash, while tuples of immutables can be keys.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by print(0 or 'x') in Python?
सही उत्तर: घ) x
or returns its first truthy operand (or the last operand); 0 is falsy, so the result is the string 'x'.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print([x for x in range(10) if x % 3 == 0]) in Python?
सही उत्तर: घ) [0, 3, 6, 9]
range(10) gives 0-9; the filter keeps multiples of 3, including 0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is special about the int type in Python 3?
सही उत्तर: ख) It has arbitrary precision, limited only by available memory
Python integers grow as needed, so 2 ** 100 is computed exactly without overflow.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a Python class, an attribute named __salary (two leading underscores, no trailing ones) is:
सही उत्तर: ग) Name-mangled to _ClassName__salary, making accidental outside access harder
Python mangles such names with the class name; it is a convention for privacy rather than strict protection.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।