कम्प्युटर / सूचना प्रविधि कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक – प्राविधिक पत्र
कम्प्युटर / सूचना प्रविधि – कम्प्युटर अपरेटर (पाँचौँ तह) र सहायक
Computer Operator & Assistant · Computer & IT Posts
२,५७७ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्राविधिक पत्र: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ५ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
The recurrence T(n) = T(n - 1) + n, with T(1) = 1, has the solution:
सही उत्तर: ग) O(n^2)
Expanding gives n + (n - 1) + ... + 1 = n(n + 1)/2, which is O(n^2).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The recurrence T(n) = T(n/2) + c, as in binary search, has the solution:
सही उत्तर: ग) O(log n)
The problem size halves each step with constant work, giving about log2 n steps.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which of the following functions grows the fastest as n becomes very large?
सही उत्तर: घ) 2^n
Exponential functions eventually exceed any polynomial, so 2^n grows fastest.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Using the division method h(k) = k mod 10, the key 47 is placed at index:
सही उत्तर: ख) 7
47 mod 10 = 7, so the key hashes to slot 7.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which of the following sorting algorithms is NOT stable in its usual implementation?
सही उत्तर: क) Heap sort
Heap sort can change the relative order of equal keys, while insertion, bubble and merge sort preserve it.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
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.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।