Bihar STET · Computer Science

Data Structures Previous Year Questions

58 Data Structures (Computer Science) questions asked in Bihar STET previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.

  • 58 questions
  • Official answer key
  • Free

Other Computer Science topics

Q1Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
What is the worst-case time complexity of the linear search algorithm for an array of size "n"?आकार "एन" के एक सरणी के लिए रैखिक खोज एल्गोरिथ्म की सबसे खराब स्थिति की जटिलता क्या है?
  1. AO(log n)ओ (लॉग एन)
  2. BO(n)ओ (एन)
  3. CO(n^2)ओ (एन^2)
  4. DO(1)ओ (1)
Show answerHide answer

Correct answer: (B) O(n)ओ (एन)

Explanation

In the worst case the element is at the last position or absent, so linear search compares with all n elements. That makes it O(n).सबसे खराब स्थिति में तत्व आखिरी स्थान पर होता है या होता ही नहीं, इसलिए linear search सभी n तत्वों से तुलना करता है। इससे यह O(n) होता है।

Q2Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
In a biconnected graph, the number of biconnected components is equal to:एक बाइसेन्टेड ग्राफ में, बाइसेन्टेड घटकों की संख्या बराबर है:
  1. AThe number of verticesकोने की संख्या
  2. BThe number of edgesकिनारों की संख्या
  3. CThe number of cut verticesकट वर्टिस की संख्या
  4. DOne less than the number of verticesवर्टिस की संख्या से कम एक
Show answerHide answer

Correct answer: (C) The number of cut verticesकट वर्टिस की संख्या

Explanation

Note: the answer key gives "the number of cut vertices", but a biconnected graph has no cut vertex and forms exactly one biconnected component. Even in a general connected graph, the number of blocks is not simply the number of cut vertices (a 3-vertex path has 1 cut vertex and 2 blocks).नोट: उत्तर कुंजी "cut vertices की संख्या" देती है, लेकिन biconnected graph में कोई cut vertex नहीं होता और वह ठीक एक biconnected component बनाता है। सामान्य connected graph में भी blocks की संख्या सिर्फ़ cut vertices की संख्या नहीं होती (3-शीर्ष वाले पथ में 1 cut vertex और 2 blocks होते हैं)।

Q3Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
In an extended binary tree, internal nodes represent:एक विस्तारित बाइनरी पेड़ में, आंतरिक नोड्स प्रतिनिधित्व करते हैं:
  1. ALeaf nodesलीफ नोड्स
  2. BArithmetic operatorsअंकगणितीय ऑपरेटर
  3. COperandsoperands
  4. DNumbersसंख्याएँ
Show answerHide answer

Correct answer: (B) Arithmetic operatorsअंकगणितीय ऑपरेटर

Explanation

In an extended binary tree used to represent an expression, the internal nodes hold operators and the external (leaf) nodes hold operands. For example, in a + b, '+' is internal and a, b are leaves.व्यंजक दर्शाने वाले extended binary tree में आंतरिक नोड operators रखते हैं और बाहरी (पत्ता) नोड operands रखते हैं। उदाहरण के लिए, a + b में '+' आंतरिक है और a, b पत्ते हैं।

Q4Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
A connected component in an undirected graph is a subset of vertices that are connected by:एक अप्रत्यक्ष ग्राफ में एक जुड़ा हुआ घटक वर्टिस का एक सबसेट है जो द्वारा जुड़े हुए हैं:
  1. ACyclesचक्र
  2. BPathsपथ
  3. CEdgesकिनारों
  4. DWeightsभार
Show answerHide answer

Correct answer: (C) Edgesकिनारों

Explanation

Note: the answer key gives "Edges", but a connected component is a maximal set of vertices in which every pair is joined by a path. Two vertices of a component need not share a direct edge, so "Paths" is the precise answer.नोट: उत्तर कुंजी "Edges" देती है, लेकिन connected component शीर्षों का वह अधिकतम समुच्चय है जिसमें हर जोड़ी किसी पथ से जुड़ी हो। किसी component के दो शीर्षों के बीच सीधा किनारा होना ज़रूरी नहीं है, इसलिए सटीक उत्तर "Paths" है।

Q5Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
Which graph representation is more memory-efficient for sparse graphs?विरल रेखांकन के लिए कौन सा ग्राफ प्रतिनिधित्व अधिक मेमोरी-कुशल है?
  1. AAdjacency matrixआसन्न मैट्रिक्स
  2. BAdjacency listआसन्न सूची
  3. CEdge listएज लिस्ट
  4. DIncidence matrixघटना मैट्रिक्स
Show answerHide answer

Correct answer: (B) Adjacency listआसन्न सूची

Explanation

An adjacency list stores only the edges that exist, using O(V + E) space. An adjacency matrix always uses O(V²) space, which is wasteful when a sparse graph has few edges.Adjacency list केवल मौजूद किनारे संग्रहीत करती है और O(V + E) स्थान लेती है। Adjacency matrix हमेशा O(V²) स्थान लेती है, जो तब बर्बादी है जब विरल (sparse) ग्राफ में कम किनारे हों।

Q6Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
Which of the following is an example of a problem that can be solved using backtracking?निम्नलिखित में से कौन एक समस्या का एक उदाहरण है जिसे बैकट्रैकिंग का उपयोग करके हल किया जा सकता है?
  1. ACalculating the factorial of a numberएक संख्या के तथ्यात्मक की गणना
  2. BFinding the largest element in an arrayएक सरणी में सबसे बड़ा तत्व खोजने के लिए
  3. CSolving the Sudoku puzzleसुडोकू पहेली को हल करना
  4. DSorting an array using quicksortक्विकसॉर्ट का उपयोग करके एक सरणी को छाँटना
Show answerHide answer

Correct answer: (C) Solving the Sudoku puzzleसुडोकू पहेली को हल करना

Explanation

Sudoku is solved by backtracking. You place a digit, check the constraints, and undo the choice (backtrack) when no valid digit fits later. Factorial, finding the maximum and quicksort do not need trial and undo.Sudoku backtracking से हल होता है। आप एक अंक रखते हैं, constraints जाँचते हैं, और जब बाद में कोई वैध अंक न बैठे तो चुनाव को पलट देते हैं (backtrack)। Factorial, अधिकतम निकालना और quicksort में आज़माने और पलटने की ज़रूरत नहीं होती।

Q7Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
How many edges are required for a graph with "n" vertices to be triconnected (have at least 3 biconnected components)?एन कोने के साथ एक ग्राफ के लिए कितने किनारों की आवश्यकता होती है (कम से कम 3 बाइकॉनेक्टेड घटक हैं)?
  1. Ann
  2. Bn - 1n - 1
  3. Cn - 2n - 2
  4. DIt is not possible to determine based on the number of verticesवर्टिस की संख्या के आधार पर निर्धारित करना संभव नहीं है
Show answerHide answer

Correct answer: (B) n - 1n - 1

Explanation

The question is loosely worded. Going by its own definition (at least 3 biconnected components), a tree with n-1 edges has every edge as a separate biconnected component, so n-1 edges give at least 3 when n ≥ 4.प्रश्न की भाषा ढीली है। इसकी अपनी परिभाषा (कम से कम 3 biconnected components) के अनुसार, n-1 किनारों वाले tree में हर किनारा अलग biconnected component होता है, इसलिए n ≥ 4 होने पर n-1 किनारों से कम से कम 3 बनते हैं।

Q8Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
Threaded binary trees are particularly useful for which type of traversal?थ्रेडेड बाइनरी पेड़ विशेष रूप से किस प्रकार के ट्रैवर्सल के लिए उपयोगी होते हैं?
  1. APreorderप्रीऑर्डर
  2. BInorderइनऑर्डर
  3. CPostorderपोस्टऑर्डर
  4. DLevel orderस्तर आदेश
Show answerHide answer

Correct answer: (B) Inorderइनऑर्डर

Explanation

In a threaded binary tree, null right/left pointers are replaced by threads to the inorder successor/predecessor. This allows inorder traversal without a stack or recursion.Threaded binary tree में खाली दाएँ/बाएँ pointers की जगह inorder successor/predecessor तक जाने वाले threads होते हैं। इससे stack या recursion के बिना inorder traversal संभव होता है।

Q9Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
A complete binary tree is a binary tree in which:एक पूर्ण द्विआधारी पेड़ एक द्विआधारी पेड़ है जिसमें:
  1. AAll nodes have the same valueसभी नोड्स में एक ही मूल्य होता है
  2. BAll leaf nodes are at the same levelसभी लीफ नोड्स एक ही स्तर पर होते हैं
  3. CAll internal nodes have the same degreeसभी आंतरिक नोड्स में एक ही डिग्री होती है
  4. DThe left subtree of each node has a larger height than the right subtreeप्रत्येक नोड के बाएं सबट्री में दाएं सबट्री की तुलना में बड़ी ऊंचाई होती है
Show answerHide answer

Correct answer: (B) All leaf nodes are at the same levelसभी लीफ नोड्स एक ही स्तर पर होते हैं

Explanation

Of the options, B is the intended one. Strictly, a complete binary tree fills every level except possibly the last, which is filled from the left, so all leaves lie on the last one or two levels.विकल्पों में B ही अभीष्ट है। सख्ती से, complete binary tree में आखिरी स्तर को छोड़कर हर स्तर पूरा भरा होता है और आखिरी स्तर बाईं ओर से भरा जाता है, इसलिए सभी पत्ते आखिरी एक या दो स्तरों पर होते हैं।

Q10Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
Which type of linked list is most suitable for implementing a queue data structure?कतार डेटा संरचना को लागू करने के लिए किस प्रकार की लिंक की गई सूची सबसे उपयुक्त है?
  1. ASingly linked listएकल लिंक्ड लिस्ट
  2. BDoubly linked listदोगुनी लिंक की गई सूची
  3. CCircularly linked listपरिपत्र रूप से लिंक की गई सूची
  4. DArray implementation of linked listलिंक्ड सूची का सरणी कार्यान्वयन
Show answerHide answer

Correct answer: (A) Singly linked listएकल लिंक्ड लिस्ट

Explanation

A singly linked list with front and rear pointers gives O(1) enqueue at the rear and O(1) dequeue at the front, so no backward links are needed.आगे और पीछे के pointers वाली singly linked list पीछे से O(1) में enqueue और आगे से O(1) में dequeue देती है, इसलिए पीछे की ओर जाने वाले लिंक की ज़रूरत नहीं है।

Q11Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
Connected components in a graph can be found using which graph traversal algorithm?एक ग्राफ में जुड़े घटकों को किस ग्राफ ट्रैवर्सल एल्गोरिथ्म का उपयोग करके पाया जा सकता है?
  1. ADFSडीएफएस
  2. BBFSबीएफएस
  3. CBoth DFS and BFSदोनों डीएफएस और बीएफएस
  4. DNeither DFS nor BFSन तो डीएफएस और न ही बीएफएस
Show answerHide answer

Correct answer: (A) DFSडीएफएस

Explanation

Official answer key: (a) DFS Correct answer should be: (c) Both DFS and BFS Connected components can be found with either DFS or BFS. Scoring follows the official key.आधिकारिक उत्तर कुंजी: (a) DFS सही उत्तर होना चाहिए: (c) DFS और BFS दोनों Connected components को DFS या BFS किसी से भी निकाला जा सकता है। स्कोरिंग आधिकारिक कुंजी के अनुसार है।

Q12Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
Which implementation of a stack requires a fixed amount of memory allocated for a fixed number of elements?स्टैक के किस कार्यान्वयन के लिए निश्चित संख्या में तत्वों के लिए आवंटित मेमोरी की एक निश्चित राशि की आवश्यकता होती है?
  1. AArray implementationसरणी कार्यान्वयन
  2. BLinked implementationलिंक्ड कार्यान्वयन
  3. CDynamic implementationगतिशील कार्यान्वयन
  4. DStatic implementationस्थिर कार्यान्वयन
Show answerHide answer

Correct answer: (A) Array implementationसरणी कार्यान्वयन

Explanation

An array-based stack allocates a fixed block of memory for a maximum number of elements in advance. A linked stack grows node by node.Array-आधारित stack पहले से ही अधिकतम तत्वों के लिए मेमोरी का एक निश्चित ब्लॉक आवंटित कर लेता है। Linked stack नोड-दर-नोड बढ़ता है।

Q13Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
Full form of MQTT isMQTT का पूरा रूप है
  1. AMulti-Queue Telemetry Thingsमल्टी-क्यू टेलीमेट्री चीजें
  2. BMultiple Queue Telemetry Thingsमल्टीपल क्यू टेलीमेट्री थिंग्स
  3. CMessage Queue Telemetry Thingsसंदेश कतार टेलीमेट्री चीजें
  4. DMessage Queue Telemetry Transportसंदेश कतार टेलीमेट्री ट्रांसपोर्ट
Show answerHide answer

Correct answer: (D) Message Queue Telemetry Transportसंदेश कतार टेलीमेट्री ट्रांसपोर्ट

Explanation

MQTT stands for Message Queuing Telemetry Transport, a lightweight publish-subscribe messaging protocol for IoT.MQTT का पूरा नाम Message Queuing Telemetry Transport है, जो IoT के लिए एक हल्का publish-subscribe मैसेजिंग प्रोटोकॉल है।

Q14Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the worst-case time complexity of Binary Search for an array of size "n"?
  1. AO(log n)
  2. BO(n)
  3. CO(n log n)
  4. DO(1)
Show answerHide answer

Correct answer: (A) O(log n)

Explanation

Binary search halves the search range on every comparison, so at most about log₂n + 1 comparisons are needed: O(log n).

Q15Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The minimum number of edges in a spanning tree of a connected graph with "n" vertices is:
  1. An
  2. Bn - 1
  3. Cn + 1
  4. Dn(n-1)/2
Show answerHide answer

Correct answer: (B) n - 1

Explanation

A spanning tree on n vertices is a tree, and every tree with n vertices has exactly n - 1 edges, so the minimum (and only) count is n - 1.

Q16Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which property of dynamic programming is particularly useful for solving Optimal Binary Search Tree problems?
  1. AOptimal substructure
  2. BGreedy choice property
  3. CDivide and Conquer
  4. DLinear programming
Show answerHide answer

Correct answer: (A) Optimal substructure

Explanation

Optimal BST uses dynamic programming because an optimal tree's left and right subtrees must themselves be optimal (optimal substructure), with overlapping subproblems reused from a table.

Q17Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
The Floyd-Warshall algorithm is a popular method for solving the All-Pair Shortest Paths problem. What is the time complexity of the Floyd-Warshall algorithm for a graph with "n" vertices?
  1. AO(n)
  2. BO(n log n)
  3. CO(n^2)
  4. DO(n^3)
Show answerHide answer

Correct answer: (D) O(n^3)

Explanation

Floyd-Warshall runs three nested loops over k, i and j, each from 1 to n, so it takes O(n³) time.

Q18Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
What is the time complexity of the Divide and Conquer algorithm for finding the maximum and minimum elements in an array of size "n"?
  1. AO(n)
  2. BO(log n)
  3. CO(n log n)
  4. DO(n^2)
Show answerHide answer

Correct answer: (A) O(n)

Explanation

The divide-and-conquer MaxMin algorithm makes about 3n/2 - 2 comparisons; T(n) = 2T(n/2) + 2 solves to O(n).

Q19Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which of the following is not a common example of an abstract data type?
  1. AStack
  2. BInteger
  3. CQueue
  4. DList
Show answerHide answer

Correct answer: (B) Integer

Explanation

Integer is a primitive (built-in) data type, while stack, queue and list are abstract data types defined by their operations, independent of implementation.

Q20Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
In pointer implementation of linked lists, which operation can be performed in constant time (O(1)) when inserting or deleting nodes?
  1. AInserting at the beginning
  2. BInserting at the end
  3. CInserting at a specific position
  4. DDeleting a specific node
Show answerHide answer

Correct answer: (A) Inserting at the beginning

Explanation

Inserting at the beginning needs only to set newnode->next = head and head = newnode, which is O(1); inserting at the end or at a position requires traversal.

Q21Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which representation is best suited for matrices with a small number of non-zero elements in each row and column?
  1. ATriplet representation
  2. BCompressed sparse row (CSR) format
  3. CCompressed sparse column (CSC) format
  4. DArray representation
Show answerHide answer

Correct answer: (C) Compressed sparse column (CSC) format

Explanation

Compressed sparse formats store only non-zero values with their indices; CSC compresses the data column by column, so it suits sparse matrices and column-wise access. CSR is the row-wise counterpart.

Q22Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
Which of the following representations is most suitable for efficient row-wise traversal of a sparse matrix?
  1. ATriplet representation
  2. BCompressed sparse row (CSR) format
  3. CCompressed sparse column (CSC) format
  4. DArray representation
Show answerHide answer

Correct answer: (B) Compressed sparse row (CSR) format

Explanation

CSR stores the non-zeros row by row with a row-pointer array, so all elements of a row are contiguous and can be traversed efficiently.

Q23Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2
In computer graphics, arrays can be used to store pixel values for images. Which type of array would be suitable for this purpose?
  1. A1-D array
  2. B2-D array
  3. C3-D array
  4. D4-D array
Show answerHide answer

Correct answer: (B) 2-D array

Explanation

An image is a grid of pixels addressed by row and column, so a 2-D array (one value per pixel, e.g. grayscale) is the natural structure.

Q24Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
The Floyd-Warshall algorithm is a popular method for solving the All-Pair Shortest Paths problem. What is the time complexity of the Floyd-Warshall algorithm for a graph with "n" vertices?फ्लोयड-वार्शेल एल्गोरिथ्म ऑल-जोयर सबसे छोटी पथ समस्या को हल करने के लिए एक लोकप्रिय तरीका है। "एन" वर्टिस के साथ एक ग्राफ के लिए फ्लोयड-वॉशेल एल्गोरिथ्म की समय जटिलता क्या है?
  1. AO(n)ओ (एन)
  2. BO(n log n)ओ (एन लॉग एन)
  3. CO(n^2)ओ (एन^2)
  4. DO(n^3)ओ (एन^3)
Show answerHide answer

Correct answer: (D) O(n^3)ओ (एन^3)

Explanation

Floyd-Warshall uses three nested loops over the n vertices (intermediate k, source i, destination j), so it does n × n × n updates, giving O(n³) time.Floyd-Warshall n शीर्षों पर तीन नेस्टेड लूप (मध्यवर्ती k, स्रोत i, गंतव्य j) चलाता है, इसलिए n × n × n अद्यतन करता है, यानी O(n³) समय।

Q25Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
In a B tree of order m, each internal node can have up to __ children.ऑर्डर एम के बी ट्री में, प्रत्येक आंतरिक नोड में __ बच्चों तक हो सकता है।
  1. Am - 1m - 1
  2. Bmm
  3. C2m - 12m - 1
  4. D2m2m
Show answerHide answer

Correct answer: (B) mm

Explanation

In a B-tree of order m, each internal node can have at most m children and therefore at most m − 1 keys.ऑर्डर m के B-tree में हर आंतरिक नोड के अधिकतम m बच्चे हो सकते हैं और इसलिए अधिकतम m − 1 कुंजियाँ।

Q26Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
About IoT, which among the followings is not correct?IoT के बारे में निम्नलिखित में से कौन सा कथन सही नहीं है?
  1. ALight sensor is analogप्रकाश संवेदक एनालॉग है
  2. Bmicrophone is a digital sensorमाइक्रोफ़ोन एक डिजिटल सेंसर है
  3. CKeyboard is a digital sensorकीबोर्ड एक डिजिटल सेंसर है
  4. DPush button is a digital Sensorपुश बटन एक डिजिटल सेंसर है
Show answerHide answer

Correct answer: (B) microphone is a digital sensorमाइक्रोफ़ोन एक डिजिटल सेंसर है

Explanation

A microphone is an analog sensor, since it produces a continuously varying voltage from sound. A keyboard and a push button give discrete on/off signals, so they are digital.माइक्रोफोन analog सेंसर है, क्योंकि वह ध्वनि से लगातार बदलता वोल्टेज बनाता है। कीबोर्ड और पुश बटन असतत on/off संकेत देते हैं, इसलिए वे digital हैं।

Q27Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
Connected components in a graph can be found using which graph traversal algorithm?एक ग्राफ में जुड़े घटकों को किस ग्राफ ट्रैवर्सल एल्गोरिथ्म का उपयोग करके पाया जा सकता है?
  1. ADFSडीएफएस
  2. BBFSबीएफएस
  3. CBoth DFS and BFSदोनों डीएफएस और बीएफएस
  4. DNeither DFS nor BFSन तो डीएफएस और न ही बीएफएस
Show answerHide answer

Correct answer: (A) DFSडीएफएस

Explanation

Note: the answer key gives (A), but BFS finds connected components just as well as DFS: each traversal started from an unvisited vertex marks exactly one component. So (C) is the more accurate answer.नोट: आधिकारिक उत्तर कुंजी (A) देती है, लेकिन BFS connected component उतनी ही अच्छी तरह खोजता है जितना DFS: अनदेखे शीर्ष से शुरू हर traversal ठीक एक component चिह्नित करता है। इसलिए (C) अधिक सटीक उत्तर है।

Q28Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
In a threaded binary tree, the space required for threads is usually:एक थ्रेडेड बाइनरी ट्री में, थ्रेड्स के लिए आवश्यक स्थान आमतौर पर होता है:
  1. AGreater than the space required for regular pointersनियमित बिंदुओं के लिए आवश्यक स्थान से अधिक
  2. BEqual to the space required for regular pointersनियमित बिंदुओं के लिए आवश्यक स्थान के बराबर
  3. CLess than the space required for regular pointersनियमित पॉइंटर्स के लिए आवश्यक स्थान से कम
  4. DUnpredictableअप्रत्याशित
Show answerHide answer

Correct answer: (C) Less than the space required for regular pointersनियमित पॉइंटर्स के लिए आवश्यक स्थान से कम

Explanation

A threaded binary tree reuses the otherwise-null child pointers to store threads to inorder predecessors and successors. Only a small flag bit per link is added, so the extra space is minimal.Threaded binary tree अन्यथा null रहने वाले चाइल्ड पॉइंटर को inorder predecessor और successor की threads रखने में उपयोग करता है। हर लिंक पर केवल एक छोटा फ्लैग बिट जुड़ता है, इसलिए अतिरिक्त स्थान न्यूनतम है।

Q29Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
A grammar that produces more than one parse tree for the same sentence is calledएक व्याकरण जो एक ही वाक्य के लिए एक से अधिक पदविच्छेदन वृक्ष उत्पन्न करता है उसे क्या कहते हैं?
  1. AContiguousमिश्रित
  2. BAmbiguousअस्पष्ट
  3. CUnambiguousस्पष्ट
  4. DRegularनियमित
Show answerHide answer

Correct answer: (B) Ambiguousअस्पष्ट

Explanation

A grammar is ambiguous if some string has more than one parse tree, or more than one leftmost derivation.कोई व्याकरण ambiguous है यदि किसी स्ट्रिंग के एक से अधिक parse tree हों, या एक से अधिक leftmost derivation।

Q30Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
Which traversal technique is used to visit each node of a linked list exactly once?किस ट्रैवर्सल तकनीक का उपयोग लिंक की गई सूची के प्रत्येक नोड पर जाने के लिए किया जाता है?
  1. APreorder traversalप्रीऑर्डर ट्रैवर्सल
  2. BInorder traversalइनऑर्डर ट्रैवर्सल
  3. CPostorder traversalपोस्टऑर्डर ट्रैवर्सल
  4. DLinear traversalरैखिक ट्रैवर्सल
Show answerHide answer

Correct answer: (D) Linear traversalरैखिक ट्रैवर्सल

Explanation

A linked list is a linear structure, so it is traversed linearly from the head node along the next pointers until NULL. Preorder, inorder and postorder are tree traversals.लिंक्ड लिस्ट रैखिक संरचना है, इसलिए उसे head नोड से next पॉइंटर के साथ NULL तक रैखिक रूप से traverse किया जाता है। Preorder, inorder और postorder वृक्ष के traversal हैं।

Q31Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
The language accepted by Push down Automaton:पुश डाउन ऑटोमेटन द्वारा स्वीकृत भाषा:
  1. ARecursive Languageपुनरावर्ती भाषा
  2. BContext free languageसंदर्भ मुक्त भाषा
  3. CLinearly Bounded languageरैखिक रूप से परिबद्ध भाषा
  4. DAll of the mentionedउल्लिखित सभी
Show answerHide answer

Correct answer: (B) Context free languageसंदर्भ मुक्त भाषा

Explanation

Pushdown automata accept exactly the context-free languages (Type 2). Linear bounded automata accept context-sensitive languages, and Turing machines accept recursive and RE languages.Pushdown automata ठीक context-free भाषाएँ (Type 2) स्वीकार करते हैं। Linear bounded automata context-sensitive भाषाएँ स्वीकार करते हैं, और Turing मशीनें recursive और RE भाषाएँ।

Q32Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
What is the time complexity of Merge Sort for sorting an array of size "n"?आकार "एन" की एक सरणी को छांटने के लिए मर्ज सॉर्ट की समय जटिलता क्या है?
  1. AO(n)ओ (एन)
  2. BO(log n)ओ (लॉग एन)
  3. CO(n log n)ओ (एन लॉग एन)
  4. DO(n^2)ओ (एन^2)
Show answerHide answer

Correct answer: (C) O(n log n)ओ (एन लॉग एन)

Explanation

Merge sort splits the array in half each time (log n levels) and merges in linear time at each level, so T(n) = 2T(n/2) + n = O(n log n) in every case.Merge sort हर बार ऐरे को आधा बाँटती है (log n स्तर) और हर स्तर पर रैखिक समय में मिलाती है, इसलिए हर स्थिति में T(n) = 2T(n/2) + n = O(n log n)।

Q33Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
In computer graphics, arrays can be used to store pixel values for images. Which type of array would be suitable for this purpose?कंप्यूटर ग्राफिक्स में, सरणियों का उपयोग छवियों के लिए पिक्सेल मानों को संग्रहीत करने के लिए किया जा सकता है। इस उद्देश्य के लिए किस प्रकार का सरणी उपयुक्त होगी?
  1. A1-D array1-डी सरणी
  2. B2-D array2-डी सरणी
  3. C3-D array3-डी सरणी
  4. D4-D array4-डी सरणी
Show answerHide answer

Correct answer: (B) 2-D array2-डी सरणी

Explanation

An image is a grid of pixels in rows and columns, so a 2-D array (pixel[row][column]) maps onto it naturally.इमेज पंक्तियों और स्तंभों में पिक्सेल का ग्रिड है, इसलिए 2-D array (pixel[row][column]) उस पर स्वाभाविक रूप से बैठता है।

Q34Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
Full form of MQTT is
  1. AMulti-Queue Telemetry Things
  2. BMultiple Queueing Telemetry Things
  3. CMessage Queue Telemetry Things
  4. DMessage Queue Telemetry Transport
Show answerHide answer

Correct answer: (D) Message Queue Telemetry Transport

Explanation

MQTT stands for Message Queuing Telemetry Transport. It is a lightweight publish-subscribe messaging protocol widely used in IoT.

Q35Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
Greedy search strategy chooses the node for expansion in ___________लालची खोज रणनीति ___________ में विस्तार के लिए नोड चुनती है।
  1. AShallowestउथले
  2. BDeepestगहरी
  3. CThe one close to the goal nodeलक्ष्य नोड के करीब वाला
  4. DMinimum heuristic costन्यूनतम अनुमानी लागत
Show answerHide answer

Correct answer: (C) The one close to the goal nodeलक्ष्य नोड के करीब वाला

Explanation

Greedy best-first search expands the node that looks closest to the goal according to the heuristic h(n). It ignores the cost already paid to reach that node.Greedy best-first search heuristic h(n) के अनुसार लक्ष्य के सबसे नज़दीक दिखने वाले नोड को विस्तारित करती है। वह उस नोड तक पहुँचने में लग चुकी लागत को अनदेखा करती है।

Q36Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
Which technology offers the highest level of customization for implementing digital logic circuits?डिजिटल लॉजिक सर्किट को लागू करने के लिए कौन सी तकनीक उच्चतम स्तर का अनुकूलन प्रदान करती है?
  1. AROM-based designROM- आधारित डिज़ाइन
  2. BPLA-based designPLA- आधारित डिज़ाइन
  3. CFPGA-based designFPGA- आधारित डिजाइन
  4. DGate Array-based designगेट सरणी-आधारित डिजाइन
Show answerHide answer

Correct answer: (C) FPGA-based designFPGA- आधारित डिजाइन

Explanation

An FPGA can be fully reprogrammed by the user to implement almost any logic circuit, so it offers the most customisation. ROM and PLA designs have fixed structures, and gate arrays are configured at the factory.FPGA को उपयोगकर्ता पूरी तरह पुनः प्रोग्राम कर सकता है ताकि लगभग कोई भी लॉजिक सर्किट बने, इसलिए वह सबसे अधिक अनुकूलन देता है। ROM और PLA की संरचनाएँ स्थिर हैं, और gate array फैक्टरी में कॉन्फ़िगर होते हैं।

Q37Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
Stack works on the principle of………………..स्टैक ……………….. के सिद्धांत पर काम करता है।
  1. AMid Element Firstमध्य तत्व प्रथम
  2. BFirst In First Outपहले आये पहलॆ गये
  3. CLast In First Outअंतिम अंदर प्रथम बाहर
  4. DLast In Last Outअंतिम प्रवेश अंतिम निकास
Show answerHide answer

Correct answer: (C) Last In First Outअंतिम अंदर प्रथम बाहर

Explanation

A stack follows LIFO (Last In, First Out). Push and pop happen only at the top, so the last element pushed is the first one popped. A queue is FIFO.स्टैक LIFO (Last In, First Out) का पालन करता है। Push और pop केवल शीर्ष पर होते हैं, इसलिए सबसे बाद में push हुआ तत्व सबसे पहले pop होता है। Queue FIFO है।

Q38Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
In Python,………………..module need to be imported for implementing Double Ended Queue.पायथन में, डबल एंडेड कतार को लागू करने के लिए ………………..मॉड्यूल को आयात करने की आवश्यकता है।
  1. Acountercounter
  2. Bcollectionscollections
  3. Crandomrandom
  4. Dnumpynumpy
Show answerHide answer

Correct answer: (B) collectionscollections

Explanation

A double-ended queue comes from the deque class in the collections module: from collections import deque.Double-ended queue collections मॉड्यूल की deque क्लास से आती है: from collections import deque।

Q39Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
The minimum number of edges in a spanning tree of a connected graph with "n" vertices is:एन वर्टिस के साथ एक जुड़े ग्राफ के एक फैले हुए पेड़ में किनारों की न्यूनतम संख्या है:
  1. Ann
  2. Bn - 1n - 1
  3. Cn + 1n + 1
  4. Dn(n-1)/2n(n-1)/2
Show answerHide answer

Correct answer: (B) n - 1n - 1

Explanation

A spanning tree of a connected graph with n vertices contains all n vertices and no cycle, so it always has exactly n - 1 edges.n शीर्षों वाले जुड़े ग्राफ़ के spanning tree में सभी n शीर्ष होते हैं और कोई चक्र नहीं होता, इसलिए उसमें हमेशा ठीक n - 1 एज होते हैं।

Q40Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
In the context of recursion, what is the purpose of the "stack" data structure?पुनरावृत्ति के संदर्भ में, "स्टैक" डेटा संरचना का उद्देश्य क्या है?
  1. ATo store variables and function calls for backtrackingकेवल चर को संग्रहीत करने के लिए b) backtracking
  2. BTo store only variablesके लिए चर और फ़ंक्शन कॉल को संग्रहीत करने के लिए
  3. CTo store only function callsलूप काउंटरों को स्टोर करने के लिए केवल फंक्शन कॉल
  4. DTo store loop countersस्टोर करने के लिए
Show answerHide answer

Correct answer: (A) To store variables and function calls for backtrackingकेवल चर को संग्रहीत करने के लिए b) backtracking

Explanation

Each recursive call pushes an activation record (local variables, parameters and return address) onto the call stack, which is popped when the call returns, allowing the program to backtrack to the caller.हर रिकर्सिव कॉल एक activation record (लोकल वेरिएबल, पैरामीटर और return address) call stack पर डालती है, जो कॉल लौटने पर हटता है, जिससे प्रोग्राम कॉलर तक वापस जा पाता है।

Q41Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
Which type of queue allows insertion and deletion of elements at both the front and rear ends?किस प्रकार की कतार आगे और पीछे दोनों छोरों पर तत्वों के सम्मिलन और विलोपन की अनुमति देती है?
  1. ACircular queueपरिपत्र कतार
  2. BLinear queueरैखिक कतार
  3. CDequeue (Double-ended queue)डिक्यू (डबल-एंडेड कतार)
  4. DPriority queueप्राथमिकता कतार
Show answerHide answer

Correct answer: (C) Dequeue (Double-ended queue)डिक्यू (डबल-एंडेड कतार)

Explanation

A deque (double-ended queue) allows insertion and deletion at both the front and the rear ends.Deque (double-ended queue) आगे और पीछे दोनों सिरों पर डालने और हटाने की अनुमति देती है।

Q42Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
The presense of _______ makes a card smart?_____ की उपस्थिति किसी कार्ड को स्मार्ट बनाती है?
  1. AMemoryमेमोरी
  2. BMoneyमनी
  3. CMicrochipमाइक्रोचिप
  4. DMessage Queue Telemetry Transportसंदेश कतार टेलीमेट्री परिवहन
Show answerHide answer

Correct answer: (C) Microchipमाइक्रोचिप

Explanation

A smart card contains an embedded microchip (processor and/or memory) that stores and processes data; this chip is what makes the card "smart".Smart card में एम्बेडेड माइक्रोचिप (प्रोसेसर और/या मेमोरी) होती है जो डेटा रखती और प्रोसेस करती है; यही चिप कार्ड को "स्मार्ट" बनाती है।

Q43Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
In a Binary Search Tree (BST), the operation of deleting a node with one child involves:एक बाइनरी सर्च ट्री (BST) में, एक बच्चे के साथ नोड को हटाने का संचालन शामिल है:
  1. ARemoving the node and replacing it with its left childनोड को हटाना और इसे अपने बाएं बच्चे के साथ बदलना
  2. BRemoving the node and replacing it with its right childनोड को हटाना और इसे अपने दाहिने बच्चे के साथ बदलना
  3. CRemoving the node and replacing it with its parentनोड को हटाना और इसे अपने माता -पिता के साथ बदलना
  4. DRemoving the node and leaving the subtree unalteredनोड को हटाना और सबट्री को छोड़ देना
Show answerHide answer

Correct answer: (C) Removing the node and replacing it with its parentनोड को हटाना और इसे अपने माता -पिता के साथ बदलना

Explanation

Note: the answer key gives (C), but a BST node with one child is deleted by replacing it with its only child (which may be left or right), not with its parent. The rest of the subtree stays in order.नोट: आधिकारिक उत्तर कुंजी (C) देती है, लेकिन एक बच्चे वाले BST नोड को हटाने में उसे उसके इकलौते बच्चे (बाएँ या दाएँ) से बदला जाता है, उसके parent से नहीं। बाकी उप-वृक्ष क्रम में रहता है।

Q44Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
The Tower of Hanoi problem is a classic example of a problem that can be solved using recursion. How many minimum moves are required to solve the Tower of Hanoi problem with 3 disks?टावर ऑफ़ हनोई समस्या एक ऐसी समस्या का उत्कृष्ट उदाहरण है जिसे पुनरावर्तन का उपयोग करके हल किया जा सकता है। टावर ऑफ़ हनोई समस्या को 3 डिस्क के साथ हल करने के लिए न्यूनतम कितनी चालों की आवश्यकता होगी?
  1. A33
  2. B77
  3. C1515
  4. D6363
Show answerHide answer

Correct answer: (B) 77

Explanation

Tower of Hanoi needs 2^n - 1 minimum moves. For n = 3, 2³ - 1 = 7.Tower of Hanoi को न्यूनतम 2^n - 1 चालें चाहिए। n = 3 के लिए 2³ - 1 = 7।

Q45Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
In an AVL tree, the balance factor of a node is the difference between the heights of its:एक एवीएल पेड़ में, एक नोड का संतुलन कारक इसकी ऊंचाइयों के बीच का अंतर है:
  1. ALeft and right subtreesबाएं और दाएं उपप्रकार
  2. BLeft subtree and parentबाएं उपप्रकार और माता -पिता
  3. CRight subtree and parentराइट सबट्री और पेरेंट
  4. DLeft and right childrenबाएं और दाएं बच्चे
Show answerHide answer

Correct answer: (A) Left and right subtreesबाएं और दाएं उपप्रकार

Explanation

Balance factor = height of left subtree - height of right subtree. In an AVL tree it must be -1, 0 or +1 for every node.Balance factor = बाएँ उप-वृक्ष की ऊँचाई - दाएँ उप-वृक्ष की ऊँचाई। AVL वृक्ष में हर नोड के लिए यह -1, 0 या +1 होना चाहिए।

Q46Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
In pointer implementation of linked lists, which operation can be performed in constant time (O(1)) when inserting or deleting nodes?लिंक की गई सूचियों के सूचक कार्यान्वयन में, नोड्स डालते या हटाते समय निरंतर समय (ओ (1)) में कौन सा ऑपरेशन किया जा सकता है?
  1. AInserting at the beginningशुरुआत में सम्मिलित करना
  2. BInserting at the endअंत में सम्मिलित करना
  3. CInserting at a specific positionएक विशिष्ट स्थिति में सम्मिलित करना
  4. DDeleting a specific nodeएक विशिष्ट नोड को हटाना
Show answerHide answer

Correct answer: (A) Inserting at the beginningशुरुआत में सम्मिलित करना

Explanation

Inserting at the beginning of a linked list only needs a new node pointing to the old head and an updated head pointer, so it takes O(1) time. The others need traversal.लिंक्ड लिस्ट के आरंभ में डालने के लिए केवल पुराने head की ओर इशारा करता नया नोड और अद्यतन head पॉइंटर चाहिए, इसलिए O(1) समय लगता है। अन्य में traversal चाहिए।

Q47Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
What is the time complexity of the Divide and Conquer algorithm for finding the maximum and minimum elements in an array of size "n"?आकार "एन" की एक सरणी में अधिकतम और न्यूनतम तत्वों को खोजने के लिए विभाजन और विजय एल्गोरिथ्म की समय जटिलता क्या है?
  1. AO(n)ओ (एन)
  2. BO(log n)ओ (लॉग एन)
  3. CO(n log n)ओ (एन लॉग एन)
  4. DO(n^2)ओ (एन^2)
Show answerHide answer

Correct answer: (A) O(n)ओ (एन)

Explanation

The divide-and-conquer max-min algorithm makes about 3n/2 - 2 comparisons (T(n) = 2T(n/2) + 2), which is O(n).Divide-and-conquer max-min एल्गोरिदम लगभग 3n/2 - 2 तुलनाएँ करता है (T(n) = 2T(n/2) + 2), जो O(n) है।

Q48Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
Which property of dynamic programming is particularly useful for solving Optimal Binary Search Tree problems?
  1. AOptimal substructure
  2. BGreedy choice property
  3. CDivide and Conquer
  4. DLinear programming
Show answerHide answer

Correct answer: (A) Optimal substructure

Explanation

Optimal BST is solved by dynamic programming because it has optimal substructure: the best tree contains optimal subtrees for its left and right key ranges (and the subproblems overlap).

Q49Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
In the context of dynamic programming for solving multistage graph problems, what is memoization used for?मल्टीस्टेज ग्राफ समस्याओं को हल करने के लिए गतिशील प्रोग्रामिंग के संदर्भ में, मेमोइजेशन का उपयोग किस लिए किया जाता है?
  1. ADividing the graph into stagesग्राफ को चरणों में विभाजित करना
  2. BSorting the vertices in the graphग्राफ में कोने को छाँटना
  3. CStoring solutions to overlapping subproblemsउपप्रकारों को ओवरलैप करने के लिए समाधान का भंडारण
  4. DFinding the shortest pathसबसे छोटा पथ खोजना
Show answerHide answer

Correct answer: (C) Storing solutions to overlapping subproblemsउपप्रकारों को ओवरलैप करने के लिए समाधान का भंडारण

Explanation

Memoization stores the results of overlapping subproblems (for example the best cost from each vertex to the sink) so they are reused, not recomputed, in multistage graph DP.Memoization ओवरलैपिंग उप-समस्याओं के परिणाम (जैसे हर वर्टेक्स से sink तक की सर्वोत्तम लागत) संग्रहीत करती है ताकि multistage graph DP में उन्हें दोबारा गणना करने के बजाय दोबारा उपयोग किया जाए।

Q50Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
Which implementation of a stack requires a fixed amount of memory allocated for a fixed number of elements?स्टैक के किस कार्यान्वयन के लिए निश्चित संख्या में तत्वों के लिए आवंटित मेमोरी की एक निश्चित राशि की आवश्यकता होती है?
  1. AArray implementationसरणी कार्यान्वयन
  2. BLinked implementationलिंक्ड कार्यान्वयन
  3. CDynamic implementationगतिशील कार्यान्वयन
  4. DStatic implementationस्थिर कार्यान्वयन
Show answerHide answer

Correct answer: (A) Array implementationसरणी कार्यान्वयन

Explanation

An array-based stack reserves a fixed block of memory for a set maximum number of elements, so it can overflow. A linked-list stack grows dynamically.Array-आधारित स्टैक अधिकतम तत्वों की तय संख्या के लिए मेमोरी का निश्चित ब्लॉक आरक्षित करता है, इसलिए वह overflow हो सकता है। Linked-list स्टैक गतिशील रूप से बढ़ता है।

How to use these Bihar STET Computer Science questions

Every question here was asked in a real Bihar STET paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full Bihar STET papers as timed tests to check your speed under exam conditions.

More Bihar STET subjects