प्रोग्रामिङ – Programming MCQ
प्रोग्रामिङ – कम्प्युटर र IT
Programming · Computer & IT (Technical) · १,५६५ प्रश्न
१,५६५ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्रोग्रामिङ: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
The time complexity of merge sort in the worst case is:
सही उत्तर: ख) O(n log n)
Merge sort splits the list into halves (log n levels) and merges each level in O(n).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The worst-case time complexity of bubble sort on n elements is:
सही उत्तर: घ) O(n^2)
Bubble sort uses nested passes, giving quadratic worst-case time.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Each node of a singly linked list contains:
सही उत्तर: ग) Data and a pointer to the next node
A singly linked list node stores data and a link to the next node.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A queue data structure follows the principle:
सही उत्तर: ग) First In First Out (FIFO)
In a queue, the element inserted first is removed first.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python, code blocks such as loop bodies are defined by:
सही उत्तर: ख) Indentation
Python uses indentation to mark blocks.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print("Nepal"[::-1]) in Python?
सही उत्तर: घ) lapeN
A slice with step -1 reverses the string.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In Python, range(5) generates which numbers?
सही उत्तर: ख) 0, 1, 2, 3, 4
range(5) starts at 0 and stops before 5.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is the output of print([10, 20, 30, 40, 50][1:3]) in Python?
सही उत्तर: घ) [20, 30]
Slicing [1:3] takes indexes 1 and 2, excluding 3.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which keyword is used to define a function in Python?
सही उत्तर: क) def
Python functions are defined with def.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which symbol starts a single-line comment in Python?
सही उत्तर: घ) #
Python comments begin with #.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।