कम्प्युटर / सूचना प्रविधि कम्प्युटर अधिकृत (सातौँ तह) – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अधिकृत (सातौँ तह)
Computer Officer – 7th Level · Computer & IT Posts
१,५०२ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
What is the output of print(list(filter(lambda x: x % 2 == 0, range(6)))) in Python?
सही उत्तर: ख) [0, 2, 4]
range(6) gives 0 to 5, and filter keeps only the values for which x % 2 == 0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print(list(enumerate('ab'))) in Python?
सही उत्तर: क) [(0, 'a'), (1, 'b')]
enumerate yields (index, item) pairs, starting from index 0 by default.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print(list(zip([1, 2, 3], 'ab'))) in Python?
सही उत्तर: क) [(1, 'a'), (2, 'b')]
zip pairs items position by position and stops at the shortest input, so the 3 is left out.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python, the operator is (as in a is b) tests whether:
सही उत्तर: घ) a and b refer to the same object
is compares object identity, while == compares values; two equal lists can be different objects.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python 3, the expression 10 / 2 evaluates to:
सही उत्तर: घ) 5.0
In Python 3 the / operator always performs true division and returns a float, so 10 / 2 gives 5.0.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Inside a Java constructor, the call this(10); is used to:
सही उत्तर: क) call another constructor of the same class
this(...) invokes an overloaded constructor of the same class and must be the first statement in the constructor.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
To create a thread in Java, a class can extend the Thread class or implement which interface?
सही उत्तर: ग) Runnable
Runnable declares the run() method that contains the code the new thread will execute.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Java exception handling, the finally block:
सही उत्तर: घ) executes whether or not an exception is thrown in the try block
finally is used for clean-up such as closing files, and it runs after try (and any catch) in either case.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Java, the automatic conversion of a primitive int into an Integer object, as in Integer x = 5;, is called:
सही उत्तर: ग) autoboxing
Autoboxing wraps a primitive in its wrapper class automatically; the reverse conversion is unboxing.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Java, the statement float f = 3.14; gives a compile-time error because:
सही उत्तर: ग) 3.14 is a double literal, so it must be written as 3.14f
Floating literals are double by default, and narrowing to float needs the f suffix or an explicit cast.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।