कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
१,५०२ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
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.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which Python statement correctly defines class B that inherits from class A?
सही उत्तर: क) class B(A):
Python lists the base class in parentheses after the class name.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a Python class, the special method that initialises a new object is:
सही उत्तर: ख) __init__
__init__(self, ...) is called automatically after an object is created to set its attributes.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Python is described as dynamically typed because:
सही उत्तर: क) variable types are determined at run time and a variable can be bound to values of different types
In Python, x = 5 and later x = 'hi' is allowed because types belong to values, not variable declarations.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python, the else block attached to a for loop executes when:
सही उत्तर: क) the loop finishes normally without encountering break
for ... else runs the else part only if the loop was not terminated by break.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print(len(set([1, 2, 2, 3, 3, 3]))) in Python?
सही उत्तर: ग) 3
A set keeps only unique elements {1, 2, 3}, so its length is 3.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।