कम्प्युटर / सूचना प्रविधि कम्प्युटर अधिकृत (सातौँ तह) – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अधिकृत (सातौँ तह)
Computer Officer – 7th Level · Computer & IT Posts
१,५०२ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Which of the following creates a tuple containing a single element 5 in Python?
सही उत्तर: ख) (5,)
The trailing comma makes it a tuple; (5) is just the integer 5 in parentheses.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
For a Python dictionary d = {'a': 1}, what does d.get('x', 0) return?
सही उत्तर: घ) 0
get() returns the given default value when the key is not present, without raising KeyError.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
If s = 'Kathmandu', what is the value of s[-3:] in Python?
सही उत्तर: ख) 'ndu'
Negative indices count from the end; s[-3:] gives the last three characters.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python, the difference between a.sort() and sorted(a) is that:
सही उत्तर: ख) sorted(a) returns a new sorted list while a.sort() sorts a in place
list.sort() modifies the list and returns None; sorted() leaves the original unchanged.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print('-'.join(['10', '20', '30'])) in Python?
सही उत्तर: ग) 10-20-30
join inserts the separator string between the list elements.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print('a,b,c'.split(',')) in Python?
सही उत्तर: क) ['a', 'b', 'c']
split(',') breaks the string at each comma and returns a list of the parts.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print('abc' * 3) in Python?
सही उत्तर: ख) abcabcabc
Multiplying a string by an integer repeats it that many times.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Because ** is right-associative in Python, the expression 2 ** 3 ** 2 evaluates to:
सही उत्तर: घ) 512
** is right-associative: 3 ** 2 = 9, then 2 ** 9 = 512.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print(-7 // 2) in Python 3?
सही उत्तर: क) -4
// is floor division; floor(-3.5) = -4.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Compared with object-oriented programming, procedure-oriented programming:
सही उत्तर: क) emphasises functions and typically follows a top-down approach
POP (e.g. C) divides a program into functions designed top-down; OOP organises around objects, usually bottom-up.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।