कम्प्युटर / सूचना प्रविधि कम्प्युटर अधिकृत (सातौँ तह) – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अधिकृत (सातौँ तह)
Computer Officer – 7th Level · Computer & IT Posts
१,५०२ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
In a max-heap:
सही उत्तर: घ) every parent node has a value greater than or equal to its children
The max-heap property places the largest element at the root, with each parent at least as large as its children.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In an array-based circular queue of size n that keeps one slot empty, the queue is full when:
सही उत्तर: ख) (rear + 1) % n == front
If advancing rear would make it equal to front, there is no free slot left; rear == front is used to mean empty.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the value of {x: x * x for x in range(3)} in Python?
सही उत्तर: ख) {0: 0, 1: 1, 2: 4}
This dictionary comprehension maps each x from 0 to 2 to its square.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a Python file, code placed under if __name__ == '__main__': runs:
सही उत्तर: क) only when the file is executed directly, not when it is imported as a module
When a file is run directly its __name__ is '__main__'; when imported, __name__ is the module's name.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
When Python looks up a variable name, it searches the scopes in which order (the LEGB rule)?
सही उत्तर: ग) Local, Enclosing, Global, Built-in
Python checks the local function scope, then enclosing functions, then the module (global) scope, and finally built-in names.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Evaluating [1, 2, 3][5] in Python raises:
सही उत्तर: क) IndexError
Index 5 is outside the valid range 0 to 2 of the list, so Python raises IndexError.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Executing 10 + '5' in Python raises which exception?
सही उत्तर: क) TypeError
Python does not automatically convert between int and str, so adding them raises a TypeError.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print('a', 'b', sep='-') in Python?
सही उत्तर: घ) a-b
sep sets the string placed between the printed values; its default is a single space.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What does pow(2, 10, 1000) return in Python?
सही उत्तर: ख) 24
The three-argument pow computes (2 ** 10) % 1000 = 1024 % 1000 = 24.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print(sorted(['bb', 'a', 'ccc'], key=len)) in Python?
सही उत्तर: घ) ['a', 'bb', 'ccc']
key=len sorts the strings by their lengths 1, 2 and 3 in ascending order.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।