प्रोग्रामिङ – Programming MCQ
प्रोग्रामिङ – कम्प्युटर र IT
Programming · Computer & IT (Technical) · १,५६५ प्रश्न
१,५६५ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्रोग्रामिङ: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
A full binary tree (every node has 0 or 2 children) has 10 internal nodes. How many leaf nodes does it have?
सही उत्तर: क) 11
In a full binary tree, leaves = internal nodes + 1.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A binary tree has root A with left child B and right child C. Its postorder traversal is:
सही उत्तर: घ) B C A
Postorder visits left, right, then root: B, C, A.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a preorder traversal of a binary tree, nodes are visited in the order:
सही उत्तर: ख) root, left subtree, right subtree
Preorder visits the root first, then traverses left and right subtrees.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A tree with n nodes has exactly how many edges?
सही उत्तर: क) n - 1
Every node except the root has exactly one edge to its parent.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The prefix (Polish) form of the infix expression A + B * C is:
सही उत्तर: ख) +A*BC
B * C is evaluated first, giving *BC; then A + (*BC) becomes +A*BC.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Starting from an empty stack, the operations push 10, push 20, push 30, pop, push 40, pop, pop are performed. Which element is now on top?
सही उत्तर: क) 10
After the pushes and pops the stack holds only 10.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Checking whether the parentheses in an expression are balanced is typically done using a:
सही उत्तर: ग) stack
Each opening bracket is pushed and popped when its matching closing bracket appears.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Each node of a doubly linked list contains:
सही उत्तर: घ) data, a pointer to the previous node and a pointer to the next node
The extra previous pointer allows traversal in both directions.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Inserting a new node at the beginning of a singly linked list takes:
सही उत्तर: घ) O(1) time
Only the new node's next pointer and the head pointer change, regardless of list length.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The time complexity of accessing the i-th element of an array by its index is:
सही उत्तर: ख) O(1)
Array elements are at computed addresses (base + i x size), so access takes constant time.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।