Connection restored!
Notification Center
Loading notifications...
Loading announcements...
INCOMING 1v1 DUEL! 10:00
@friend challenged you!
Topic · Room #HQ-0000
Accept & Join
Mention Scholar ↑↓ Enter / Click
Last time you were studying on Page 2.
STUDY & LEARNING DECK

Programming Languages

Showing 25 of 400 total questions (Latest Added First).

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

Try clearing filters or unchecking "Saved" / "Hide".

Question 101 NEW
Most Important EASY
Which statement best summarizes the relationship between C and C++?
कौन सा कथन C और C++ के बीच के संबंध का सबसे अच्छा सारांश है?
A
C++ is an object-oriented extension of C that adds classes, objects, inheritance, polymorphism, and templates while retaining C's high performance
C++, C का एक ऑब्जेक्ट-ओरिएंटेड विस्तार है जो C की उच्च गति को बनाए रखते हुए क्लासेस, ऑब्जेक्ट्स, इनहेरिटेंस और टेम्पलेट्स जोड़ता है
Correct
B
C++ was invented before C
C++ का आविष्कार C से पहले हुआ था
C
C++ is an interpreted scripting language
C++ एक इंटरप्रेटेड स्क्रिप्टिंग भाषा है
D
C++ cannot run on Windows
C++ विंडोज़ पर नहीं चल सकता
Solution Breakdown:
-> C++ combines low-level speed with high-level OOP abstractions, making it the top choice for game engines, browsers, and high-performance systems. -> Hence, Option (A) is the correct answer.
-> C++ अपनी तेज़ गति और OOP विशेषताओं के कारण गेम इंजन और हाई-परफॉर्मेंस सॉफ्टवेयर बनाने में प्रमुखता से उपयोग होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 102 NEW
Most Important MEDIUM
Match the C++ Feature with its Syntax/Keyword: 1. Scope Resolution — (a) `virtual void f() = 0;` 2. Pure Virtual Function — (b) `::` 3. Dynamic Array Deallocation — (c) `try { ... } catch { ... }` 4. Exception Handling — (d) `delete[]`
C++ फीचर को उसके सिंटैक्स/कीवर्ड से सुमेलित करें: 1. स्कोप रिज़ॉल्यूशन — (a) `virtual void f() = 0;` 2. प्योर वर्चुअल फंक्शन — (b) `::` 3. डायनामिक एरे डी-एलोकेशन — (c) `try { ... } catch { ... }` 4. एक्सेप्शन हैंडलिंग — (d) `delete[]`
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
C
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
Correct
D
1-c, 2-a, 3-d, 4-b
1-c, 2-a, 3-d, 4-b
Solution Breakdown:
-> Correct matches: Scope Resolution (`::`), Pure Virtual (`= 0`), Dynamic Array Deallocation (`delete[]`), Exception Handling (`try...catch`). -> Hence, Option (C) is the correct answer.
-> सही मिलान: 1-b, 2-a, 3-d, 4-c। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 103 NEW
Most Important MEDIUM
Match the Data Structure with its Primary Application: 1. Stack — (a) Print Spooler & BFS Traversal 2. Queue — (b) Undo (`Ctrl+Z`) & Recursion Call Stack 3. Binary Search Tree — (c) Fast $O(1)$ Key-Value Lookup 4. Hash Table — (d) Fast Sorted Data Retrieval (Inorder)
डेटा स्ट्रक्चर को उसके मुख्य अनुप्रयोग से सुमेलित करें: 1. स्टैक — (a) प्रिंट स्पूलर और BFS ट्रैवर्सल 2. क्यू — (b) अनडू (`Ctrl+Z`) और रिकर्शन कॉल स्टैक 3. बाइनरी सर्च ट्री — (c) तेज़ $O(1)$ की-वैल्यू खोज 4. हैश टेबल — (d) तेज़ सॉर्टेड डेटा प्राप्ति (इनऑर्डर)
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
Correct
C
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
D
1-d, 2-a, 3-b, 4-c
1-d, 2-a, 3-b, 4-c
Solution Breakdown:
-> Correct matches: Stack (Undo/Recursion), Queue (Print Spooler/BFS), BST (Sorted Inorder), Hash Table ($O(1)$ lookup). -> Hence, Option (B) is the correct answer.
-> सही मिलान: 1-b, 2-a, 3-d, 4-c। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 104 NEW
Most Important MEDIUM
What is a "Circular Linked List"?
"सर्कुलर लिंक्ड लिस्ट" क्या होती है?
A
A linked list whose LAST node points back to the FIRST (Head) node instead of `NULL`
ऐसी लिंक्ड लिस्ट जिसका अंतिम नोड `NULL` के बजाय वापस पहले (हेड) नोड की ओर संकेत करता है
Correct
B
A linked list with only 1 node
केवल 1 नोड वाली लिंक्ड लिस्ट
C
A sorted array
एक सॉर्टेड एरे
D
A binary tree
एक बाइनरी ट्री
Solution Breakdown:
-> Circular Linked Lists allow continuous looping through all nodes (commonly used in Round Robin OS scheduling and music playlists). -> Hence, Option (A) is the correct answer.
-> सर्कुलर लिंक्ड लिस्ट में अंतिम नोड पहले नोड से जुड़ा होता है, जिससे यह एक चक्र (लूप) बनाती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 105 NEW
Most Important EASY
In C++, which operator is used with `cin` to read input from the keyboard?
C++ में कीबोर्ड से इनपुट पढ़ने के लिए `cin` के साथ किस ऑपरेटर का उपयोग किया जाता है?
A
`<<`
`<<`
B
`>>`
`>>`
Correct
C
`::`
`::`
D
`->`
`->`
Solution Breakdown:
-> `cin >> x;` uses the Extraction (get-from) operator `>>`, whereas `cout << x;` uses the Insertion (put-to) operator `<<`. -> Hence, Option (B) is the correct answer.
-> इनपुट के लिए `cin` के साथ `>>` और आउटपुट के लिए `cout` के साथ `<<` का उपयोग होता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 106 NEW
Most Important MEDIUM
What is the guaranteed worst-case Time Complexity of "Merge Sort"?
"मर्ज सॉर्ट" की निश्चित वर्स्ट-केस टाइम कॉम्प्लेक्सिटी क्या होती है?
A
$O(n^2)$
$O(n^2)$
B
$O(n \log n)$
$O(n \log n)$
Correct
C
$O(n)$
$O(n)$
D
$O(1)$
$O(1)$
Solution Breakdown:
-> Merge Sort uses Divide and Conquer to consistently deliver $O(n \log n)$ performance in best, average, and worst cases (at the cost of $O(n)$ extra memory). -> Hence, Option (B) is the correct answer.
-> मर्ज सॉर्ट हर स्थिति में $O(n \log n)$ की स्थिर और तेज़ गति प्रदान करता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 107 NEW
Most Important MEDIUM
What is the worst-case Time Complexity of "Bubble Sort", "Selection Sort", and "Insertion Sort"?
बबल सॉर्ट, सेलेक्शन सॉर्ट और इंसर्शन सॉर्ट की वर्स्ट-केस टाइम कॉम्प्लेक्सिटी क्या होती है?
A
$O(n^2)$
$O(n^2)$
Correct
B
$O(\log n)$
$O(\log n)$
C
$O(1)$
$O(1)$
D
$O(n \log n)$
$O(n \log n)$
Solution Breakdown:
-> Simple nested-loop sorting algorithms (Bubble, Selection, Insertion) take $O(n^2)$ time in the worst case, whereas Merge Sort guarantees $O(n \log n)$. -> Hence, Option (A) is the correct answer.
-> साधारण सॉर्टिंग एल्गोरिदम (बबल, सेलेक्शन, इंसर्शन) की वर्स्ट-केस टाइम कॉम्प्लेक्सिटी $O(n^2)$ होती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 108 NEW
Most Important EASY
Which of the following is the ODD one out?
निम्नलिखित में से कौन सा विषम है?
A
Array
एरे
B
Stack
स्टैक
C
Queue
क्यू
D
Graph
ग्राफ
Correct
Solution Breakdown:
-> Array, Stack, and Queue are Linear data structures, whereas Graph is a Non-Linear data structure. -> Hence, Option (D) is the correct answer.
-> एरे, स्टैक और क्यू लीनियर हैं, जबकि ग्राफ एक नॉन-लीनियर डेटा स्ट्रक्चर है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 109 NEW
Most Important MEDIUM
Evaluate the following statements about Data Structures: (I) A Stack follows LIFO order and uses only one end (`Top`). (II) A Queue follows FIFO order and uses two ends (`Front` and `Rear`).
डेटा स्ट्रक्चर के बारे में निम्नलिखित कथनों का मूल्यांकन करें: (I) स्टैक LIFO क्रम का पालन करता है और केवल एक सिरे का उपयोग करता है। (II) क्यू FIFO क्रम का पालन करता है और दो सिरों का उपयोग करता है।
A
Only (I) is true
केवल (I) सत्य है
B
Only (II) is true
केवल (II) सत्य है
C
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
Correct
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Both statements accurately summarize the core structural difference between Stacks and Queues. -> Hence, Option (C) is the correct answer.
-> दोनों कथन स्टैक और क्यू के बीच के मूलभूत अंतर को बिल्कुल सही दर्शाते हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 110 NEW
Most Important MEDIUM
Evaluate the following statements about C++: (I) A class in C++ can hold both data members and member functions. (II) All members of a C++ class are `public` by default.
C++ के बारे में निम्नलिखित कथनों का मूल्यांकन करें: (I) C++ में एक क्लास में डेटा सदस्य और मेंबर फंक्शन दोनों हो सकते हैं। (II) C++ क्लास के सभी सदस्य डिफ़ॉल्ट रूप से पब्लिक होते हैं।
A
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
B
Only (I) is true
केवल (I) सत्य है
Correct
C
Only (II) is true
केवल (II) सत्य है
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Statement (I) is true. Statement (II) is false because C++ class members are `private` by default (`struct` members are `public` by default). -> Hence, Option (B) is the correct answer.
-> कथन (I) सत्य है, जबकि C++ क्लास के सदस्य डिफ़ॉल्ट रूप से `private` होते हैं। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 111 NEW
Most Important MEDIUM
What is a "Friend Function" in C++?
C++ में "फ्रेंड फंक्शन" क्या होता है?
A
A non-member function declared with the `friend` keyword that is granted special permission to access a class's `private` and `protected` members
`friend` कीवर्ड से घोषित एक नॉन-मेंबर फंक्शन जिसे किसी क्लास के प्राइवेट और प्रोटेक्टेड सदस्यों को एक्सेस करने की विशेष अनुमति होती है
Correct
B
A function with no name
बिना नाम वाला फंक्शन
C
A constructor
एक कंस्ट्रक्टर
D
A recursive function
एक रिकर्सिव फंक्शन
Solution Breakdown:
-> A friend function is not a member of the class, yet it can inspect private data of two different classes (often used in operator overloading). -> Hence, Option (A) is the correct answer.
-> फ्रेंड फंक्शन क्लास का सदस्य न होते हुए भी उसके प्राइवेट डेटा को एक्सेस कर सकता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 112 NEW
Most Important MEDIUM
In C++, what does the STL stand for (providing ready-made containers like `vector`, `stack`, `queue`, and `map`)?
C++ में "STL" का पूर्ण रूप क्या है (जो `vector`, `stack`, `queue` और `map` जैसे तैयार कंटेनर प्रदान करता है)?
A
System Type Language
सिस्टम टाइप लैंग्वेज
B
Standard Template Library
स्टैंडर्ड टेम्पलेट लाइब्रेरी
Correct
C
Simple Text Loader
सिंगल टेक्स्ट लोडर
D
Static Thread Link
स्टैटिक थ्रेड लिंक
Solution Breakdown:
-> The C++ Standard Template Library (STL) provides generic, highly optimized data structures (containers) and algorithms (`sort`, `binary_search`). -> Hence, Option (B) is the correct answer.
-> STL (स्टैंडर्ड टेम्पलेट लाइब्रेरी) C++ में पहले से बने डेटा स्ट्रक्चर और एल्गोरिदम प्रदान करती है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 113 NEW
Most Important MEDIUM
What is the main advantage of a "Circular Queue" over a simple linear array-based Queue?
साधारण लीनियर एरे-आधारित क्यू की तुलना में "सर्कुलर क्यू" का मुख्य लाभ क्या है?
A
It uses less CPU clock speed
यह कम CPU गति लेता है
B
It connects the rear back to the front, efficiently reusing empty spaces left behind after deletions
यह रियर को वापस फ्रंट से जोड़ देता है, जिससे डिलीशन के बाद खाली हुई जगह का कुशलतापूर्वक पुनः उपयोग होता है
Correct
C
It converts FIFO to LIFO
यह FIFO को LIFO में बदलता है
D
It never overflows
यह कभी ओवरफ्लो नहीं होता
Solution Breakdown:
-> In a linear array queue, once `rear` reaches the end, no new items can be added even if `front` slots are empty. A Circular Queue wraps around using modulo arithmetic to prevent wasted space. -> Hence, Option (B) is the correct answer.
-> सर्कुलर क्यू में पिछला सिरा अगले सिरे से जुड़ा होता है, जिससे खाली हुए स्थानों का दोबारा उपयोग हो पाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 114 NEW
Most Important EASY
What is a "Priority Queue"?
"प्रायोरिटी क्यू" क्या होता है?
A
A queue where elements are removed strictly by arrival time
ऐसा क्यू जहाँ तत्व केवल आने के समय से हटते हैं
B
A special queue where every element has a priority, and the element with the HIGHEST priority is always served/removed first
एक विशेष क्यू जहाँ हर तत्व की एक प्राथमिकता होती है और सबसे उच्च प्राथमिकता वाला तत्व सबसे पहले बाहर निकलता है
Correct
C
A stack of integers
पूर्णांकों का एक स्टैक
D
A circular array
एक सर्कुलर एरे
Solution Breakdown:
-> Priority Queues are typically implemented using a Binary Heap and are used in OS CPU scheduling and Dijkstra's shortest-path algorithm. -> Hence, Option (B) is the correct answer.
-> प्रायोरिटी क्यू में सबसे अधिक प्राथमिकता वाले तत्व को पहले प्रोसेस किया जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 115 NEW
Most Important MEDIUM
What is a "Hash Table" (Hash Map) primarily famous for in Data Structures?
डेटा स्ट्रक्चर में "हैश टेबल" मुख्य रूप से किसके लिए प्रसिद्ध है?
A
Providing ultra-fast $O(1)$ average-case time complexity for searching, inserting, and deleting key-value pairs
की-वैल्यू जोड़ों को खोजने, जोड़ने और हटाने के लिए औसत $O(1)$ की अत्यधिक तेज़ गति प्रदान करने के लिए
Correct
B
Sorting data alphabetically
डेटा को वर्णमाला क्रम में सॉर्ट करने के लिए
C
Drawing flowcharts
फ्लोचार्ट बनाने के लिए
D
Storing sequential audio
क्रमिक ऑडियो स्टोर करने के लिए
Solution Breakdown:
-> A Hash Function converts a key directly into an array index, enabling instant $O(1)$ lookups (used in Python Dictionaries and Java HashMaps). -> Hence, Option (A) is the correct answer.
-> हैश फंक्शन कुंजी को सीधे एरे इंडेक्स में बदल देता है, जिससे $O(1)$ समय में तुरंत डेटा मिल जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 116 NEW
Most Important EASY
Which data structure is used by a computer's CPU and OS to manage nested function calls, recursion, and the "Undo" (`Ctrl + Z`) feature in text editors?
नेस्टेड फंक्शन कॉल्स, रिकर्शन और टेक्स्ट एडिटर्स में "अनडू" (`Ctrl + Z`) फीचर को मैनेज करने के लिए किस डेटा स्ट्रक्चर का उपयोग किया जाता है?
A
Queue
क्यू
B
Stack
स्टैक
Correct
C
Graph
ग्राफ
D
Binary Tree
बाइनरी ट्री
Solution Breakdown:
-> Because the most recent action must be undone first (and the most recent function call must return first), the LIFO Stack is the ideal structure. -> Hence, Option (B) is the correct answer.
-> सबसे हाल के कार्य को सबसे पहले वापस लेने (Undo) के लिए LIFO स्टैक का उपयोग होता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 117 NEW
Most Important MEDIUM
In a Binary Search Tree (BST), which traversal order visits all nodes in ASCENDING (sorted) order?
बाइनरी सर्च ट्री (BST) में कौन सा ट्रैवर्सल क्रम सभी नोड्स को आरोही (बढ़ते हुए सॉर्टेड) क्रम में दिखाता है?
A
Preorder Traversal
प्रीऑर्डर ट्रैवर्सल
B
Postorder Traversal
पोस्टऑर्डर ट्रैवर्सल
C
Inorder Traversal
इनऑर्डर ट्रैवर्सल
Correct
D
Random Traversal
रैंडम ट्रैवर्सल
Solution Breakdown:
-> Inorder Traversal visits `Left -> Root -> Right`. Because every left child in a BST is smaller and every right child is larger, Inorder always outputs elements in sorted ascending order. -> Hence, Option (C) is the correct answer.
-> BST में इनऑर्डर ट्रैवर्सल (`Left -> Root -> Right`) हमेशा तत्वों को बढ़ते हुए सॉर्टेड क्रम में देता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 118 NEW
Most Important EASY
Which data structure is used internally to implement Breadth-First Search (BFS) on a Graph or Level-Order Traversal on a Tree?
ग्राफ पर BFS या ट्री पर लेवल-ऑर्डर ट्रैवर्सल लागू करने के लिए आंतरिक रूप से किस डेटा स्ट्रक्चर का उपयोग किया जाता है?
A
Stack
स्टैक
B
Queue
क्यू
Correct
C
Hash Table
हैश टेबल
D
Linked List
लिंक्ड लिस्ट
Solution Breakdown:
-> BFS explores all neighbor nodes at the current depth level first using a FIFO Queue, whereas DFS explores as deep as possible using a LIFO Stack. -> Hence, Option (B) is the correct answer.
-> BFS के लिए क्यू (FIFO) और DFS के लिए स्टैक (LIFO) का उपयोग किया जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 119 NEW
Most Important MEDIUM
What is the Time Complexity of Depth-First Search (DFS) and Breadth-First Search (BFS) on a Graph represented using an Adjacency List (where $V$ = vertices and $E$ = edges)?
एडजेसेंसी लिस्ट द्वारा दर्शाए गए ग्राफ पर DFS और BFS की टाइम कॉम्प्लेक्सिटी क्या होती है?
A
$O(V)$
$O(V)$
B
$O(E)$
$O(E)$
C
$O(V + E)$
$O(V + E)$
Correct
D
$O(V \times E)$
$O(V \times E)$
Solution Breakdown:
-> Both DFS (using a Stack/Recursion) and BFS (using a Queue) visit every vertex once and traverse every edge once, giving a linear time complexity of $O(V + E)$. -> Hence, Option (C) is the correct answer.
-> DFS और BFS हर वर्टेक्स और हर एज को एक बार विज़िट करते हैं, इसलिए उनकी टाइम कॉम्प्लेक्सिटी $O(V + E)$ होती है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 120 NEW
Most Important EASY
What is the Time Complexity of "Binary Search" on a sorted array of `n` elements?
`n` तत्वों के एक सॉर्टेड एरे पर "बाइनरी सर्च" की टाइम कॉम्प्लेक्सिटी क्या होती है?
A
$O(n)$
$O(n)$
B
$O(\log n)$
$O(\log n)$
Correct
C
$O(n^2)$
$O(n^2)$
D
$O(1)$
$O(1)$
Solution Breakdown:
-> Binary Search repeatedly divides the search interval in half, achieving logarithmic $O(\log n)$ time—far faster than Linear Search's $O(n)$. Note: the array MUST be sorted first. -> Hence, Option (B) is the correct answer.
-> बाइनरी सर्च हर चरण में खोज क्षेत्र को आधा कर देता है, जिससे इसकी टाइम कॉम्प्लेक्सिटी $O(\log n)$ होती है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 121 NEW
Most Important MEDIUM
Which sorting algorithm repeatedly finds the smallest element from the unsorted portion of a list and swaps it with the leftmost unsorted element?
कौन सा सॉर्टिंग एल्गोरिदम बार-बार अनसॉर्टेड हिस्से से सबसे छोटा तत्व ढूंढकर उसे सबसे बाईं ओर के अनसॉर्टेड तत्व से स्वैप करता है?
A
Selection Sort
सेलेक्शन सॉर्ट
Correct
B
Merge Sort
मर्ज सॉर्ट
C
Quick Sort
क्विक सॉर्ट
D
Insertion Sort
इंसर्शन सॉर्ट
Solution Breakdown:
-> Selection Sort divides the array into a sorted left part and an unsorted right part, selecting the minimum item in each pass ($O(n^2)$ time complexity). -> Hence, Option (A) is the correct answer.
-> सेलेक्शन सॉर्ट हर चरण में सबसे छोटा तत्व चुनकर उसे बाईं ओर सही स्थान पर रखता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 122 NEW
Most Important EASY
In a Tree data structure, what is the topmost node (which has no parent) called, and what are the bottom nodes (which have no children) called?
ट्री डेटा स्ट्रक्चर में सबसे ऊपरी नोड (जिसका कोई पैरेंट नहीं होता) को क्या कहते हैं, और सबसे निचले नोड्स (जिनके कोई चाइल्ड नहीं होते) को क्या कहते हैं?
A
Leaf Node, Root Node
लीफ नोड, रूट नोड
B
Root Node, Leaf Nodes
रूट नोड, लीफ नोड्स
Correct
C
Child Node, Parent Node
चाइल्ड नोड, पैरेंट नोड
D
Start Node, End Node
स्टार्ट नोड, एंड नोड
Solution Breakdown:
-> Every tree starts at a single Root Node at the top and ends at Leaf Nodes (external nodes) at the bottom. -> Hence, Option (B) is the correct answer.
-> ट्री के सबसे ऊपरी नोड को 'रूट नोड' और बिना चाइल्ड वाले अंतिम नोड्स को 'लीफ नोड्स' कहा जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 123 NEW
Most Important EASY
A node structure containing `int data; struct node* left; struct node* right;` represents which data structure?
`int data; struct node* left; struct node* right;` वाली नोड संरचना किस डेटा स्ट्रक्चर को दर्शाती है?
A
Queue
क्यू
B
Stack
स्टैक
C
Binary Tree
बाइनरी ट्री
Correct
D
Simple Array
साधारण एरे
Solution Breakdown:
-> A Binary Tree is a hierarchical non-linear data structure where each parent node has at most two children: a `left` child and a `right` child. -> Hence, Option (C) is the correct answer.
-> बाइनरी ट्री एक नॉन-लीनियर डेटा स्ट्रक्चर है जिसमें प्रत्येक नोड के अधिकतम दो चाइल्ड (`left` और `right`) होते हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 124 NEW
Most Important MEDIUM
How many total pointer fields are present across all nodes of a Doubly Linked List containing `5` nodes?
`5` नोड्स वाली एक डबली लिंक्ड लिस्ट के सभी नोड्स में कुल कितने पॉइंटर फील्ड्स होते हैं?
A
5
5
B
8
8
C
10
10
Correct
D
15
15
Solution Breakdown:
-> Each node in a Doubly Linked List contains 3 fields: 1 data field and 2 pointer fields (`prev` and `next`). For 5 nodes, total pointers $= 5 \times 2 = 10$. -> Hence, Option (C) is the correct answer.
-> डबली लिंक्ड लिस्ट के हर नोड में 2 पॉइंटर (`prev` और `next`) होते हैं, इसलिए 5 नोड्स में कुल $5 \times 2 = 10$ पॉइंटर होंगे। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 125 NEW
Most Important MEDIUM
Which of the following statements is INCORRECT regarding Arrays vs. Linked Lists?
एरे और लिंक्ड लिस्ट की तुलना के संबंध में निम्नलिखित में से कौन सा कथन गलत है?
A
Arrays allow fast $O(1)$ random access by index
एरे इंडेक्स द्वारा तेज़ रैंडम एक्सेस की अनुमति देते हैं
B
Linked Lists allow only sequential access
लिंक्ड लिस्ट केवल क्रमिक (सीक्वेंशियल) एक्सेस की अनुमति देती है
C
Linked Lists are slower in insertion/deletion and faster in random element lookup (`get`)
लिंक्ड लिस्ट इंसर्शन/डिलीशन में धीमी और रैंडम लुकअप (`get`) में तेज़ होती है
Correct
D
Linked Lists allocate memory dynamically as new nodes are added
नए नोड्स जुड़ने पर लिंक्ड लिस्ट डायनामिक रूप से मेमोरी आवंटित करती है
Solution Breakdown:
-> Statement (C) is reversed/incorrect: Linked Lists are FASTER at insertion and deletion (just updating pointers), but SLOWER at searching/getting an element by index. -> Hence, Option (C) is the correct answer.
-> लिंक्ड लिस्ट इंसर्शन और डिलीशन में तेज़ होती है, लेकिन किसी तत्व को सीधे खोजने (`get`) में धीमी होती है, इसलिए कथन (C) गलत है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Prev 3 4 5 6 7 Next
ESSENTIAL STUDY KIT

Master Programming Languages Faster with Recommended Resources

Pair your daily MCQ practice with these educator-picked books, practice sets, and typing gear tailored for this syllabus.

Visit Exam Store
Dell KB216 Wired Multimedia USB Keyboard (Black)
Typing Keyboards Best for Mangal Typing Amazon
Dell KB216 Wired Multimedia USB Keyboard (Black)

Soft chiclet keys and zero lag — the best keyboard for UPP Computer Operator and DSSSB 40+ WPM Hindi/English typing tests.

₹299 ₹999 70% OFF
Affiliate Disclosure: HappyQuiz may earn a small commission on qualifying purchases at no extra cost to you.
Saved to your dashboard!