कम्प्युटर र सूचना प्रविधि (प्राविधिक)
कम्प्युटर र सूचना प्रविधि (प्राविधिक)
Computer & IT (Technical) · ५,०७६ प्रश्न
५,०७६ प्रश्न उपलब्ध। मोड छान्नुहोस्:
कम्प्युटर र IT: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
A graph has edges A-B 1, B-C 2, A-C 3, C-D 4 and B-D 5. What is the total weight of its minimum spanning tree?
सही उत्तर: ग) 7
Kruskal's algorithm takes A-B (1) and B-C (2), rejects A-C (it would form a cycle), and takes C-D (4): 1 + 2 + 4 = 7.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A weighted graph has edges A-B 4, A-C 1, C-B 2, B-D 1 and C-D 5. What is the length of the shortest path from A to D?
सही उत्तर: ग) 4
The path A-C-B-D has length 1 + 2 + 1 = 4, shorter than A-B-D (5) or A-C-D (6).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
An undirected graph has edges 1-2, 1-3, 2-4, 3-4 and 4-5. A depth-first search starts at vertex 1 and always visits the smallest-numbered unvisited neighbour first. In what order are the vertices visited?
सही उत्तर: घ) 1 2 4 3 5
From 1 go to 2, from 2 to 4, from 4 to its smallest unvisited neighbour 3; 3 has no new neighbours, so backtrack to 4 and visit 5.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
How many structurally different binary search trees can be built from the three keys 1, 2 and 3?
सही उत्तर: क) 5
The count is the Catalan number C3 = 5 (two trees with root 1, one with root 2, two with root 3).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A binary tree has preorder traversal A B D E C and inorder traversal D B E A C. What is its postorder traversal?
सही उत्तर: ख) D E B C A
A is the root; from the inorder, D B E is the left subtree (root B, children D and E) and C is the right subtree; postorder is D E B C A.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The keys 40, 20, 60, 10, 30, 50 are inserted in that order into an empty binary search tree. What is its postorder traversal?
सही उत्तर: ख) 10 30 20 50 60 40
The root is 40 with left subtree 20 (children 10, 30) and right subtree 60 (left child 50); postorder visits left, right, then root.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Using the usual stack-based conversion, A * (B + C) / D becomes which postfix string?
सही उत्तर: ग) A B C + * D /
The bracket makes B + C (B C +) come first; it is multiplied by A, and the result is divided by D.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which infix expression corresponds to the postfix (reverse Polish) expression A B + C D - * ?
सही उत्तर: घ) (A + B) * (C - D)
A B + is (A + B) and C D - is (C - D); the final * multiplies these two results.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Starting with an empty queue, the operations enqueue 5, enqueue 6, enqueue 7, dequeue, enqueue 8, dequeue are performed. Which element is now at the front?
सही उत्तर: क) 7
The two dequeues remove 5 and 6 in arrival order, leaving 7, 8 with 7 at the front.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
How many element shifts (swaps of adjacent elements) does insertion sort make to sort [4, 3, 2, 1] into ascending order?
सही उत्तर: क) 6
Insertion sort makes one shift per inversion; a fully reversed list of 4 elements has 4 x 3 / 2 = 6 inversions.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।