कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
What is the output of the Python code: a = [3, 1, 2]; b = sorted(a); a.reverse(); print(a, b) ?
सही उत्तर: ख) [2, 1, 3] [1, 2, 3]
sorted() returns a new list and leaves a unchanged; reverse() then reverses a in place to [2, 1, 3].
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of the Python code: print('a1b2'.isalnum(), 'abc'.isalpha(), '12a'.isdigit()) ?
सही उत्तर: क) True True False
'a1b2' has only letters and digits; 'abc' only letters; '12a' contains a letter, so isdigit() is False.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The Python string method partition() is called as print('Kathmandu'.partition('man')). What is displayed?
सही उत्तर: घ) ('Kath', 'man', 'du')
partition() splits at the first occurrence of the separator and returns a 3-tuple: the part before, the separator itself and the part after.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of the Python code: s = 'Pokhara'; print(s[::2]) ?
सही उत्तर: ग) Pkaa
A step of 2 takes indices 0, 2, 4 and 6: P, k, a, a.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Using a negative start index in a Python slice, what does print([1, 2, 3, 4][-2:]) display?
सही उत्तर: ग) [3, 4]
The slice [-2:] takes the last two elements.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Floating-point arithmetic in Java: which line is shown by the statement System.out.println(0.1 + 0.2); ?
सही उत्तर: ग) 0.30000000000000004
0.1 and 0.2 cannot be stored exactly in binary floating point, so their double sum is slightly more than 0.3.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Java, what is printed by: long l = 1L << 40; int i = (int) l; System.out.println(i); ?
सही उत्तर: क) 0
Casting long to int keeps only the low 32 bits, and all of them are 0 for 2^40.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Java, what is printed by: String d = "Tue"; switch (d) { case "Mon": System.out.print(1); case "Tue": System.out.print(2); case "Wed": System.out.print(3); break; default: System.out.print(4); } ?
सही उत्तर: घ) 23
Execution starts at case "Tue" and falls through to case "Wed" until the break.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a Java class with static void f(Object o) printing "O" and static void f(String s) printing "S", what does the call f(null) print?
सही उत्तर: ख) S
null fits both, and Java chooses the most specific overload; String is more specific than Object.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Java, what is printed by: System.out.println("a,b,,c".split(",").length); ?
सही उत्तर: ख) 4
An empty string between two adjacent commas is kept as an element: "a", "b", "", "c".
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।