42 Algorithms (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.
Q1Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
Conditional asymptotic notation is used to analyze an algorithm's behavior under specific conditions. When removing the condition from "O(f(n)) if g(n)", what notation is obtained?विशिष्ट परिस्थितियों में एक एल्गोरिथ्म के व्यवहार का विश्लेषण करने के लिए सशर्त स्पर्शोन्मुख संकेतन का उपयोग किया जाता है। "O (f (n)) से स्थिति को हटाते समय यदि g (n)", तो क्या संकेतन प्राप्त होता है?
AO(f(n))ओ (एफ (एन))
BO(g(n))ओ (जी (एन))
CO(f(n) + g(n))ओ (एफ (एन) + जी (एन))
DO(f(n) * g(n))ओ (एफ (एन) * जी (एन))
Show answerHide answer
Correct answer: (A)O(f(n))ओ (एफ (एन))
Explanation
Removing the condition means the bound O(f(n)) holds for all n, not only when g(n) holds. The result is the plain unconditional notation O(f(n)), often obtained using smoothness of f.शर्त हटाने का अर्थ है कि सीमा O(f(n)) सभी n के लिए लागू होती है, केवल तब नहीं जब g(n) लागू हो। परिणाम सामान्य शर्तरहित notation O(f(n)) है, जो अक्सर f की smoothness का उपयोग करके मिलता है।
Q2Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
When analyzing the time complexity of an algorithm using Big-O notation, what property allows us to ignore lower-order terms?बिग-ओ नोटेशन का उपयोग करके एक एल्गोरिथ्म की समय जटिलता का विश्लेषण करते समय, क्या संपत्ति हमें निम्न- क्रम शब्दों को अनदेखा करने की अनुमति देती है?
AReflexivityरिफ्लेक्सिटी
BAdditionइसके अलावा
CMultiplicationगुणा
DIgnorability of Constantsस्थिरांक की अज्ञानता
Show answerHide answer
Correct answer: (D)Ignorability of Constantsस्थिरांक की अज्ञानता
Explanation
In Big-O, constant factors and lower-order terms are dropped because the dominant term decides growth for large n. The key calls this the ignorability property. For example, 3n² + 5n + 2 = O(n²).Big-O में स्थिर गुणक और निचले क्रम के पद हटा दिए जाते हैं क्योंकि बड़े n के लिए प्रमुख पद ही वृद्धि तय करता है। कुंजी इसे ignorability property कहती है। उदाहरण के लिए, 3n² + 5n + 2 = O(n²)।
Q3Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
The recurrence equation T(n) = 2T(n/2) + n represents the time complexity of which algorithmic paradigm? Using the Master Theorem, what would be the value of "a," "b," and "f(n)" in the theorem?पुनरावृत्ति समीकरण t (n) = 2T (n/2) + n उस एल्गोरिथम प्रतिमान की समय जटिलता का प्रतिनिधित्व करता है? मास्टर प्रमेय का उपयोग करते हुए, प्रमेय में "ए," "बी," और "एफ (एन)" का मूल्य क्या होगा?
ADivide and Conquer; a = 2, b = 2, f(n) = nविभाजित और विजय; a = 2, b = 2, f (n) = n
BGreedy Algorithms; a = 2, b = 2, f(n) = nलालची एल्गोरिदम; a = 2, b = 2, f (n) = n
CDynamic Programming; a = 2, b = 2, f(n) = nगतिशील प्रोग्रामिंग; ए = 2, बी = 2, एफ (एन) = एन
DBrute Force; a = 2, b = 2, f(n) = nब्रूट फोर्स; a = 2, b = 2, f (n) = n
Show answerHide answer
Correct answer: (A)Divide and Conquer; a = 2, b = 2, f(n) = nविभाजित और विजय; a = 2, b = 2, f (n) = n
Explanation
T(n) = 2T(n/2) + n splits the problem into 2 subproblems of half size and does linear extra work, which is divide and conquer (as in merge sort). In aT(n/b) + f(n) form, a = 2, b = 2, f(n) = n, giving Θ(n log n).T(n) = 2T(n/2) + n समस्या को आधे आकार की 2 उप-समस्याओं में बाँटता है और रैखिक अतिरिक्त कार्य करता है, जो divide and conquer है (जैसे merge sort में)। aT(n/b) + f(n) रूप में a = 2, b = 2, f(n) = n है, जिससे Θ(n log n) मिलता है।
Q4Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
The first problem to be proven NP-Complete was the:एनपी-पूर्ण साबित होने वाली पहली समस्या थी:
ATravelling Salesman Problemयात्रा सेल्समैन समस्या
BHamiltonian Cycle Problemहैमिल्टनियन साइकिल समस्या
CBoolean Satisfiability Problem (SAT)बूलियन संतोषजनक समस्या (SAT)
DKnapsack Problemknapsack समस्या
Show answerHide answer
Correct answer: (C)Boolean Satisfiability Problem (SAT)बूलियन संतोषजनक समस्या (SAT)
Explanation
The Cook-Levin theorem (1971) proved Boolean Satisfiability (SAT) NP-complete. It was the first such problem, and others like TSP and Knapsack were later shown NP-complete by reduction from it.Cook-Levin प्रमेय (1971) ने Boolean Satisfiability (SAT) को NP-complete सिद्ध किया। यह ऐसी पहली समस्या थी, और TSP तथा Knapsack जैसी अन्य समस्याओं को बाद में इसी से reduction द्वारा NP-complete दिखाया गया।
Q5Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
What is the main trade-off in time-space tradeoff?टाइम-स्पेस ट्रेडऑफ में मुख्य ट्रेड-ऑफ क्या है?
AReducing both time complexity and space complexity simultaneouslyदोनों समय जटिलता और अंतरिक्ष जटिलता को एक साथ कम करना
BIncreasing both time complexity and space complexity simultaneouslyदोनों समय जटिलता और अंतरिक्ष जटिलता दोनों को एक साथ बढ़ाना
CImproving time complexity at the cost of increased space complexityबढ़ी हुई अंतरिक्ष जटिलता की लागत पर समय की जटिलता में सुधार
DImproving space complexity at the cost of increased time complexityबढ़े हुए समय जटिलता की लागत पर अंतरिक्ष जटिलता में सुधार
Show answerHide answer
Correct answer: (C)Improving time complexity at the cost of increased space complexityबढ़ी हुई अंतरिक्ष जटिलता की लागत पर समय की जटिलता में सुधार
Explanation
In a time-space tradeoff you usually use extra memory, for example lookup tables, caching or memoization, to make an algorithm run faster. Less time is bought with more space.Time-space tradeoff में आमतौर पर एल्गोरिदम को तेज़ चलाने के लिए अतिरिक्त मेमोरी, जैसे lookup tables, caching या memoization, का उपयोग किया जाता है। कम समय अधिक स्थान देकर खरीदा जाता है।
Q6Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
Which property of Big-O notation states that if f(n) is O(g(n)), then k * f(n) is O(g(n)) for any positive constant k?बिग-ओ नोटेशन की कौन सी संपत्ति बताती है कि यदि f (n) o (g (n)) है, तो k * f (n) किसी भी सकारात्मक स्थिरांक k के लिए o (g (n)) है?
ATransitivityसंक्रमणीय
BAdditionइसके अलावा
CMultiplicationगुणन
DReflexivityरिफ्लेक्सिटी
Show answerHide answer
Correct answer: (C)Multiplicationगुणन
Explanation
Constant factors are ignored in Big-O: if f(n) = O(g(n)), then k·f(n) = O(g(n)) for any constant k > 0. This is the multiplication-by-constant rule.Big-O में स्थिर गुणक (constant factors) को छोड़ दिया जाता है: यदि f(n) = O(g(n)), तो किसी भी स्थिरांक k > 0 के लिए k·f(n) = O(g(n))। यह अचर से गुणा करने का नियम है।
Q7Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
Merge Sort is an example of a sorting algorithm that uses the Divide and Conquer paradigm. What is its time complexity in the worst-case scenario?मर्ज सॉर्ट एक छँटाई एल्गोरिथ्म का एक उदाहरण है जो विभाजन और विजय प्रतिमान का उपयोग करता है। सबसे खराब स्थिति में इसकी समय जटिलता क्या है?
AO(n)ओ (एन)
BO(n log n)ओ (एन लॉग एन)
CO(n^2)ओ (एन^2)
DO(log n)ओ (लॉग एन)
Show answerHide answer
Correct answer: (B)O(n log n)ओ (एन लॉग एन)
Explanation
Merge sort always splits the array in half and merges in linear time: T(n) = 2T(n/2) + n = O(n log n) in the best, average and worst case.Merge sort हमेशा array को आधा बाँटता है और रैखिक समय में merge करता है: T(n) = 2T(n/2) + n = O(n log n), सर्वोत्तम, औसत और सबसे खराब, तीनों स्थितियों में।
Q8Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
If a problem A is NP-Complete and another problem B can be reduced to problem A in polynomial time, what can be said about problem B?यदि कोई समस्या एनपी-पूर्ण है और एक अन्य समस्या बी को बहुपद समय में समस्या के लिए कम किया जा सकता है, तो समस्या बी के बारे में क्या कहा जा सकता है?
AProblem B is also NP-Completeसमस्या बी भी एनपी-पूर्ण है
BProblem B is in Pसमस्या बी पी में है
CProblem B is not solvableसमस्या बी हल करने योग्य नहीं है
DProblem B is not a decision problemसमस्या B एक निर्णय समस्या नहीं है
Show answerHide answer
Correct answer: (A)Problem B is also NP-Completeसमस्या बी भी एनपी-पूर्ण है
Explanation
Note: the answer key gives (A), but reducing B to an NP-complete A only shows that B is in NP, no harder than A. B is NP-complete only if a known NP-complete problem reduces to B.नोट: आधिकारिक उत्तर कुंजी (A) देती है, लेकिन B को किसी NP-complete A में reduce करने से केवल यह पता चलता है कि B, NP में है और A से कठिन नहीं है। B तभी NP-complete है जब कोई ज्ञात NP-complete समस्या B में reduce हो।
Q9Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
Which metric is used to measure software reliability?सॉफ्टवेयर विश्वसनीयता को मापने के लिए किस मीट्रिक का उपयोग किया जाता है?
AFunction Points (FP)फ़ंक्शन पॉइंट (एफपी)
BLines of Code (LOC)कोड की रेखाएँ (एलओसी)
CMusa's Basic Modelमूसा का मूल मॉडल
DCyclomatic Complexityसाइक्लोमैटिक जटिलता
Show answerHide answer
Correct answer: (C)Musa's Basic Modelमूसा का मूल मॉडल
Explanation
Musa's Basic Execution Time Model is a software reliability growth model that predicts failure intensity over execution time. FP and LOC measure size, and cyclomatic complexity measures control-flow complexity.Musa का Basic Execution Time Model एक software reliability growth मॉडल है जो निष्पादन समय के साथ विफलता की तीव्रता का अनुमान लगाता है। FP और LOC आकार मापते हैं, और cyclomatic complexity नियंत्रण-प्रवाह की जटिलता मापती है।
Q10Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
Putnam's Model is used for estimating:पुटनम के मॉडल का उपयोग अनुमान लगाने के लिए किया जाता है:
ASoftware sizeसॉफ्टवेयर का आकार
BSoftware development timeसॉफ्टवेयर विकास समय
CSoftware complexityसॉफ्टवेयर जटिलता
DSoftware testing effortsसॉफ्टवेयर परीक्षण प्रयास
Show answerHide answer
Correct answer: (B)Software development timeसॉफ्टवेयर विकास समय
Explanation
Putnam's model (SLIM) uses the Rayleigh curve and the software equation to estimate development effort and development time (schedule) for large projects.Putnam का मॉडल (SLIM) बड़ी परियोजनाओं के लिए विकास प्रयास और विकास समय (schedule) का अनुमान लगाने हेतु Rayleigh curve और software equation का उपयोग करता है।
Q11Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
Inference algorithm is complete only if it_____अनुमान एल्गोरिथ्म केवल तभी पूरा होता है जब यह _____
Acan derive any sentenceकोई भी वाक्य प्राप्त कर सकता है
Bcan derive any sentence that is an entailed versionकिसी भी वाक्य को प्राप्त कर सकता है जो एक निहित संस्करण है
Cis truth-preservingसत्य-संरक्षण है
DIt can derive any sentence that is an entailed version and It is truth-preservingयह किसी भी वाक्य को व्युत्पन्न कर सकता है जो एक निहित संस्करण है और यह सत्य-संरक्षण है
Show answerHide answer
Correct answer: (D)It can derive any sentence that is an entailed version and It is truth-preservingयह किसी भी वाक्य को व्युत्पन्न कर सकता है जो एक निहित संस्करण है और यह सत्य-संरक्षण है
Explanation
Strictly, completeness means the algorithm can derive every entailed sentence, while being truth-preserving is soundness. The key combines both properties, describing an algorithm that is sound and complete.सख्ती से, completeness का अर्थ है कि एल्गोरिदम हर निहित (entailed) वाक्य निकाल सकता है, जबकि सत्य को बनाए रखना soundness है। कुंजी दोनों गुणों को मिलाकर ऐसे एल्गोरिदम का वर्णन करती है जो sound और complete हो।
Q12Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
The recurrence equation T(n) = 2T(n - 1) + n represents the time complexity of which algorithmic paradigm?पुनरावृत्ति समीकरण t (n) = 2T (n - 1) + n उस एल्गोरिथम प्रतिमान की समय जटिलता का प्रतिनिधित्व करता है?
Per the key, this recurrence describes a problem broken into overlapping smaller subproblems (size n − 1), the pattern that dynamic programming targets. Solved naively, T(n) = 2T(n−1) + n grows as O(2ⁿ).कुंजी के अनुसार, यह recurrence एक ऐसी समस्या बताती है जो overlapping छोटी उप-समस्याओं (आकार n − 1) में बँटी है, यानी वह पैटर्न जिसे dynamic programming हल करता है। सीधे हल करने पर T(n) = 2T(n−1) + n का मान O(2ⁿ) के रूप में बढ़ता है।
Q13Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
In the context of the All-Pair Shortest Paths algorithm, what does the term "transitive property" refer to?ऑल-पेयर शॉर्टेस्ट पाथ्स एल्गोरिथ्म के संदर्भ में, "सकल घरेलू संपत्ति" शब्द क्या संदर्भित करता है?
AThe property of having a cyclic pathएक चक्रीय पथ होने की संपत्ति
BThe property of having all vertices connected to each otherएक दूसरे से जुड़े सभी कोने होने की संपत्ति
CThe property of being able to reach one vertex from anotherएक दूसरे से एक वर्टेक्स तक पहुंचने में सक्षम होने की संपत्ति
DThe property of a path being shorter than another pathएक पथ की संपत्ति दूसरे पथ से कम है
Show answerHide answer
Correct answer: (C)The property of being able to reach one vertex from anotherएक दूसरे से एक वर्टेक्स तक पहुंचने में सक्षम होने की संपत्ति
Explanation
Transitivity means if i can reach k and k can reach j, then i can reach j. Floyd-Warshall and transitive closure use this to find reachability between vertex pairs.Transitivity का अर्थ है कि यदि i से k तक और k से j तक पहुँचा जा सकता है, तो i से j तक भी पहुँचा जा सकता है। Floyd-Warshall और transitive closure इसी का उपयोग करके शीर्ष-युग्मों के बीच पहुँच (reachability) निकालते हैं।
Q14Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
Counting Sort is particularly efficient for sorting arrays where the range of elements is:गिनती सॉर्ट विशेष रूप से सरणियों को छांटने के लिए कुशल है जहां तत्वों की सीमा है:
AVery largeबहुत बड़े
BVery smallबहुत छोटे
CConstantनिरंतर
DSortedक्रमबद्ध
Show answerHide answer
Correct answer: (B)Very smallबहुत छोटे
Explanation
Counting sort runs in O(n + k), where k is the range of key values, so it is efficient only when that range is small compared with n.Counting sort O(n + k) में चलता है, जहाँ k कुंजी-मानों की सीमा है, इसलिए यह तभी कारगर है जब वह सीमा n की तुलना में छोटी हो।
Q15Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
Which among the following search algorithms requires least memory?निम्नलिखित खोज एल्गोरिदम में से किसके लिए कम से कम मेमोरी की आवश्यकता होती है?
AOptimal Searchइष्टतम खोज
BLinear Searchरैखिक खोज
CDFSDFS
DBFSBFS
Show answerHide answer
Correct answer: (C)DFSDFS
Explanation
DFS stores only the current path and its unexplored siblings, O(bm) memory, whereas BFS must keep a whole frontier, O(bᵈ).DFS केवल वर्तमान रास्ता और उसके अनदेखे भाई-नोड रखता है, यानी O(bm) मेमोरी, जबकि BFS को पूरी frontier रखनी पड़ती है, यानी O(bᵈ)।
Q16Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
In conditional asymptotic notation, "Θ(f(n)) if g(n)" indicates that the algorithm's
complexity is both upper and lower bounded by f(n) when:सशर्त स्पर्शोन्मुख संकेतन में, "θ (f (n)) यदि g (n)" इंगित करता है कि एल्गोरिथ्म की जटिलता ऊपरी
और निचली दोनों है जो f (n) द्वारा बाध्य है: जब:
Ag(n) is a lower bound on f(n)जी (एन) एफ (एन) पर एक निचली सीमा है
Bg(n) is an upper bound on f(n)जी(एन) एफ (एन) पर एक ऊपरी सीमा है
Cg(n) is trueg (n) सच है
Dg(n) is falseg (n) गलत है
Show answerHide answer
Correct answer: (C)g(n) is trueg (n) सच है
Explanation
Conditional asymptotic notation states a bound that holds only under a condition. "Θ(f(n)) if g(n)" means the running time is tightly bounded by f(n) whenever condition g(n) is true (for example, n being a power of 2).Conditional asymptotic notation ऐसी सीमा बताता है जो केवल किसी शर्त में लागू होती है। "Θ(f(n)) if g(n)" का अर्थ है कि जब शर्त g(n) सत्य हो (जैसे n का 2 की घात होना) तो चलने का समय f(n) से कसकर बँधा है।
Q17Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
The recurrence equation T(n) = T(n/2) + T(n/3) + n represents the time complexity of
which algorithmic paradigm?पुनरावृत्ति समीकरण t (n) = t (n/2) + t (n/3) + n उस एल्गोरिथम प्रतिमान की समय जटिलता का
प्रतिनिधित्व करता है?
ADivide and Conquerविभाजित और विजय
BDynamic Programmingगतिशील प्रोग्रामिंग
CGreedy Algorithmsलालची एल्गोरिदम
DBacktrackingपीछे हटाना
Show answerHide answer
Correct answer: (D)Backtrackingपीछे हटाना
Explanation
Note: the answer key gives (D), but T(n) = T(n/2) + T(n/3) + n splits the problem into smaller subproblems and combines them in linear time, which is the divide and conquer pattern (A), not backtracking.नोट: आधिकारिक उत्तर कुंजी (D) देती है, लेकिन T(n) = T(n/2) + T(n/3) + n समस्या को छोटी उप-समस्याओं में बाँटता है और रैखिक समय में जोड़ता है, जो divide and conquer पैटर्न (A) है, backtracking नहीं।
Q18Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
A* search algorithm is based on?A* खोज एल्गोरिथम किस पर आधारित है?
ABFSबीएफएस
BDFSडीएफएस
CUniform cost searchएकसमान लागत खोज
DBest first Searchसर्वश्रेष्ठ प्रथम खोज
Show answerHide answer
Correct answer: (D)Best first Searchसर्वश्रेष्ठ प्रथम खोज
Explanation
A* is an informed best-first search. It expands the node with the lowest f(n) = g(n) + h(n), which combines the path cost so far with a heuristic estimate.A* सूचित best-first खोज है। वह सबसे कम f(n) = g(n) + h(n) वाले नोड को विस्तारित करती है, जो अब तक की पथ लागत और heuristic अनुमान को जोड़ता है।
Q19Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
Which of the following is not a Search Engine available over the Internet ?निम्नलिखित में से कौन सा इंटरनेट पर उपलब्ध सर्च इंजन नहीं है?
AGoogleगूगल
BBingबिंग
CDikshaदिक्सा (Diksha)
DYahooयाहू
Show answerHide answer
Correct answer: (C)Dikshaदिक्सा (Diksha)
Explanation
DIKSHA is the Government of India's digital learning platform for school teachers and students, not a search engine. Google, Bing and Yahoo are search engines.DIKSHA भारत सरकार का स्कूल शिक्षकों और विद्यार्थियों के लिए डिजिटल अधिगम मंच है, सर्च इंजन नहीं। Google, Bing और Yahoo सर्च इंजन हैं।
Q20Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
The concept of monitors was introduced by:मॉनिटर्स की अवधारणा द्वारा पेश किया गया था:
Dijkstra first proposed the idea behind monitors (his "secretary" concept). Hoare and Brinch Hansen later formalised it. Among the options given, Dijkstra is the one linked to the concept. Turing, Berners-Lee and Torvalds have no connection to it.Monitors के पीछे का विचार सबसे पहले Dijkstra ने (अपनी "secretary" अवधारणा में) प्रस्तावित किया। बाद में Hoare और Brinch Hansen ने उसे औपचारिक रूप दिया। दिए गए विकल्पों में Dijkstra इस अवधारणा से जुड़े हैं। Turing, Berners-Lee और Torvalds का इससे कोई संबंध नहीं।
Q21Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
Delphi and COCOMO are techniques used for estimating:डेल्फी और सीओसीओएमओ अनुमान लगाने के लिए उपयोग की जाने वाली तकनीकें हैं:
ASoftware sizeसॉफ्टवेयर का आकार
BSoftware reliabilityसॉफ्टवेयर विश्वसनीयता
CSoftware complexityसॉफ्टवेयर जटिलता
DSoftware development costसॉफ्टवेयर विकास लागत
Show answerHide answer
Correct answer: (D)Software development costसॉफ्टवेयर विकास लागत
Explanation
Delphi (expert consensus) and COCOMO (an algorithmic model based on lines of code) are both techniques for estimating software development cost and effort.Delphi (विशेषज्ञ सहमति) और COCOMO (लाइन्स ऑफ कोड पर आधारित एल्गोरिदमिक मॉडल) दोनों सॉफ़्टवेयर विकास की लागत और प्रयास के आकलन की तकनीकें हैं।
Q22Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
In the Backtracking approach for the 8-Queens problem, once a feasible solution is
found, the algorithm:8-क्यून्स समस्या के लिए बैकट्रैकिंग दृष्टिकोण में, एक बार एक संभव समाधान पाया जाता है, एल्गोरिथ्म:
AStops and returns the solutionरुकता है और समाधान देता है
BContinues searching for more solutionsअधिक समाधानों की खोज जारी रखता है
CIterates through all possibilitiesसभी संभावनाओं के माध्यम से iterates
DRearranges the queens to optimize the solutionसमाधान को अनुकूलित करने के लिए रानियों को पुनर्व्यवस्थित करता है
Show answerHide answer
Correct answer: (B)Continues searching for more solutionsअधिक समाधानों की खोज जारी रखता है
Explanation
When asked for all solutions, backtracking records each feasible 8-Queens placement it finds and then keeps backtracking to search for more. There are 92 solutions in total.सभी हल माँगे जाने पर backtracking मिले हर संभव 8-Queens विन्यास को दर्ज करता है और फिर और खोजने के लिए backtrack करता रहता है। कुल 92 हल हैं।
Q23Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
Which sorting algorithm has a worst-case time complexity of O(n^2) in its basic form?किस छंटाई एल्गोरिथ्म में अपने मूल रूप में O (n^2) की सबसे खराब स्थिति की जटिलता है?
AQuick Sortत्वरित सॉर्ट
BMerge Sortमर्ज सॉर्ट
CInsertion Sortसम्मिलन सॉर्ट
DCounting Sortगिनती सॉर्ट
Show answerHide answer
Correct answer: (C)Insertion Sortसम्मिलन सॉर्ट
Explanation
Insertion sort makes about n²/2 comparisons and shifts on reverse-sorted input, so its worst case is O(n²). Merge sort is O(n log n) and counting sort is O(n + k). Basic quick sort also has an O(n²) worst case, which makes the question loose.Insertion sort उलटे क्रम के इनपुट पर लगभग n²/2 तुलनाएँ और खिसकाव करती है, इसलिए उसका सबसे बुरा मामला O(n²) है। Merge sort O(n log n) और counting sort O(n + k) है। साधारण quick sort का भी सबसे बुरा मामला O(n²) है, जिससे प्रश्न ढीला है।
Q24Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
Musa's Basic Model is used for measuring:मूसा के मूल मॉडल का उपयोग मापने के लिए किया जाता है:
Musa's basic execution time model is a software reliability growth model. It predicts failure intensity and reliability as faults are removed during testing.Musa का basic execution time model एक सॉफ़्टवेयर विश्वसनीयता वृद्धि मॉडल है। यह टेस्टिंग में दोष हटने के साथ विफलता तीव्रता और विश्वसनीयता का अनुमान लगाता है।
Q25Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
In the context of minimum spanning trees, the "cut property" is used to justify the
correctness of Prim's algorithm. What does the cut property state?न्यूनतम फैले हुए पेड़ों के संदर्भ में, "कट प्रॉपर्टी" का उपयोग प्राइम के एल्गोरिथ्म की शुद्धता को सही
ठहराने के लिए किया जाता है। कट प्रॉपर्टी स्टेट क्या है?
AThe algorithm always cuts the maximum weight edge.एल्गोरिथ्म हमेशा अधिकतम वजन बढ़त काटता है।
BThe algorithm always cuts the minimum weight edge.एल्गोरिथ्म हमेशा न्यूनतम वजन बढ़त में कटौती करता है।
CThe algorithm always cuts an edge crossing the cut with the minimum weight.एल्गोरिथ्म हमेशा न्यूनतम वजन के साथ कट को पार करते हुए एक किनारे को काटता है।
DThe algorithm always cuts an edge crossing the cut with the maximum weight.एल्गोरिथ्म हमेशा अधिकतम वजन के साथ कट को पार करते हुए एक किनारे को काटता है।
Show answerHide answer
Correct answer: (C)The algorithm always cuts an edge crossing the cut with the minimum weight.एल्गोरिथ्म हमेशा न्यूनतम वजन के साथ कट को पार करते हुए एक किनारे को काटता है।
Explanation
The cut property says that for any cut of the graph, the minimum-weight edge crossing that cut belongs to some MST. Prim's algorithm always picks the lightest edge crossing from the tree to the rest, so it is correct.Cut property कहती है कि ग्राफ़ के किसी भी cut को पार करने वाला न्यूनतम भार का एज किसी न किसी MST में होता है। Prim का एल्गोरिदम हमेशा पेड़ से बाकी की ओर जाने वाला सबसे हल्का एज चुनता है, इसलिए वह सही है।
Q26Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
Algorithm analysis is primarily concerned with:एल्गोरिथ्म विश्लेषण मुख्य रूप से संबंधित है:
ADetermining the best algorithm for a specific problemएक विशिष्ट समस्या के लिए सबसे अच्छा एल्गोरिथ्म निर्धारित करना
BMeasuring the time and space efficiency of an algorithmएक एल्गोरिथ्म के समय और अंतरिक्ष दक्षता को मापने के लिए
CCreating new algorithms from scratchस्क्रैच से नए एल्गोरिदम बनाना
DSolving algorithmic problems using any available approachकिसी भी उपलब्ध दृष्टिकोण का उपयोग करके एल्गोरिथम समस्याओं को हल करना
Show answerHide answer
Correct answer: (B)Measuring the time and space efficiency of an algorithmएक एल्गोरिथ्म के समय और अंतरिक्ष दक्षता को मापने के लिए
Explanation
Algorithm analysis estimates the resources an algorithm needs, mainly its running time (time complexity) and memory (space complexity), as a function of the input size.Algorithm analysis इनपुट आकार के फ़ंक्शन के रूप में एल्गोरिदम को चाहिए संसाधनों का अनुमान लगाती है, मुख्यतः चलने का समय (time complexity) और मेमोरी (space complexity)।
Q27Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
.If an algorithm's behavior is bounded by "o(f(n)) if g(n)", what notation does it become
when the condition is removed?यदि एक एल्गोरिथ्म का व्यवहार "O (f (n)) यदि g (n)" से बंधा होता है, तो स्थिति को हटाने पर यह क्या
संकेतन बन जाता है?
Ao(f(n))ओ (एफ (एन))
Bo(g(n))ओ (जी (एन))
Co(f(n) + g(n))ओ (एफ (एन) + जी (एन))
Do(f(n) * g(n))ओ (एफ (एन) * जी (एन))
Show answerHide answer
Correct answer: (A)o(f(n))ओ (एफ (एन))
Explanation
The question is garbled. The intended idea is that once the extra condition on g(n) is dropped, the bound is simply in terms of f(n), so the algorithm is o(f(n)).प्रश्न विकृत है। आशय यह है कि g(n) की अतिरिक्त शर्त हटने पर सीमा केवल f(n) के रूप में होती है, इसलिए एल्गोरिदम o(f(n)) है।
Q28Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
Church’s Thesis supports---------चर्च की थीसिस का समर्थन करता है ---------
ABoth TM is an general-purpose computer and TM is an algorithm and vice-versa are correctTM एक सामान्य प्रयोजन वाला कंप्यूटर है और TM एक एल्गोरिथम है और इसके विपरीत दोनों सही हैं
BA Turing machine an algorithm and an algorithm as a Turing machineएक ट्यूरिंग मशीन एक एल्गोरिथ्म और एक ट्यूरिंग मशीन के रूप में एक एल्गोरिथ्म
CA Turing machine as a general-purpose computer systemएक सामान्य प्रयोजन कंप्यूटर प्रणाली के रूप में ट्यूरिंग मशीन
DNone of them is correctइनमें से कोई भी सही नहीं है
Show answerHide answer
Correct answer: (A)Both TM is an general-purpose computer and TM is an algorithm and vice-versa are correctTM एक सामान्य प्रयोजन वाला कंप्यूटर है और TM एक एल्गोरिथम है और इसके विपरीत दोनों सही हैं
Explanation
The Church-Turing thesis says that any algorithm can be carried out by a Turing machine and vice versa, so a TM is both a model of algorithms and of a general-purpose computer.Church-Turing थीसिस कहती है कि कोई भी एल्गोरिदम Turing मशीन से चलाया जा सकता है और उलटा भी, इसलिए TM एल्गोरिदम और सामान्य-उद्देश्य कंप्यूटर दोनों का मॉडल है।
Q29Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
A technique that was developed to determine whether a machine could or could not
demonstrate the artificial intelligence known as the___?एक तकनीक जो यह निर्धारित करने के लिए विकसित की गई थी कि क्या कोई मशीन कृत्रिम बुद्धिमत्ता
का प्रदर्शन कर सकती है या नहीं, जिसे ______ के रूप में जाना जाता है?
AAlgorithmएल्गोरिथ्म
BLogarithamLogaritham
CTuring Testट्यूरिंग टेस्ट
DBoolean algebraबूलियन बीजगणित
Show answerHide answer
Correct answer: (C)Turing Testट्यूरिंग टेस्ट
Explanation
The Turing Test, proposed by Alan Turing in 1950, checks whether a machine can show intelligent behaviour that cannot be told apart from a human's.1950 में Alan Turing द्वारा प्रस्तावित Turing Test जाँचता है कि क्या मशीन ऐसा बुद्धिमान व्यवहार दिखा सकती है जो मनुष्य से अलग न पहचाना जाए।
Q30Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
…………..compares neighbouring elements only and swaps them when necessary.…………..केवल अगल-बगल के तत्वों की तुलना करता है और आवश्यकता पड़ने पर उन्हें बदल देता है।
ASelection SortSelection Sort
BBubble SortBubble Sort
CInsertion SortInsertion Sort
DQuick SortQuick Sort
Show answerHide answer
Correct answer: (B)Bubble SortBubble Sort
Explanation
Bubble sort compares adjacent (neighbouring) elements and swaps them if they are in the wrong order. Selection and insertion sort compare across the list.Bubble sort आसन्न (पड़ोसी) तत्वों की तुलना करती है और क्रम गलत हो तो अदला-बदली करती है। Selection और insertion sort सूची में दूर तक तुलना करती हैं।
Q31Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
In the context of software project management, what is LOC an acronym for?सॉफ्टवेयर परियोजना प्रबंधन के संदर्भ में, एलओसी किसके लिए एक संक्षिप्त शब्द है?
ALine of Changeपरिवर्तन की रेखा
BLevel of Complexityजटिलता का स्तर
CLines of Codeकोड की रेखाएँ
DList of Componentsघटकों की सूची
Show answerHide answer
Correct answer: (C)Lines of Codeकोड की रेखाएँ
Explanation
LOC stands for Lines of Code, a size metric used to estimate effort and cost in software projects.LOC का अर्थ Lines of Code है, जो सॉफ़्टवेयर परियोजनाओं में प्रयास और लागत के अनुमान के लिए उपयोग होने वाला आकार मापक है।
Q32Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
Which among the following search algorithm requires least memory?निम्नलिखित खोज एल्गोरिदम में से किसके लिए कम से कम मेमोरी की आवश्यकता होती है?
AOptimal Searchइष्टतम खोज
BLinear Searchरैखिक खोज
CDFSडीएफएस
DBFSबीएफएस
Show answerHide answer
Correct answer: (C)DFSडीएफएस
Explanation
DFS keeps only the current path (plus unexplored siblings) on its stack, so it needs O(bd) memory. BFS must store the whole frontier level, which grows exponentially.DFS अपने स्टैक पर केवल मौजूदा पथ (और अनदेखे सहोदर) रखता है, इसलिए उसे O(bd) मेमोरी चाहिए। BFS को पूरा frontier स्तर रखना पड़ता है, जो चरघातांकी रूप से बढ़ता है।
Q33Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
A problem is said to be in NP if:एक समस्या एनपी में होने के लिए कहा जाता है:
AIts solution can be verified in polynomial timeइसके समाधान को बहुपद समय में सत्यापित किया जा सकता है
BIt can be solved using a non-deterministic algorithmइसे एक गैर-नियतात्मक एल्गोरिथ्म का उपयोग करके हल किया जा सकता है
CIt is not solvableयह हल करने योग्य नहीं है
DIt has exponential complexityइसमें घातीय जटिलता है
Show answerHide answer
Correct answer: (A)Its solution can be verified in polynomial timeइसके समाधान को बहुपद समय में सत्यापित किया जा सकता है
Explanation
NP is the class of decision problems whose proposed solution (certificate) can be verified in polynomial time by a deterministic machine. Equivalently, they are solvable in polynomial time by a non-deterministic machine.NP उन निर्णय समस्याओं का वर्ग है जिनका प्रस्तावित हल (certificate) एक deterministic मशीन polynomial समय में जाँच सकती है। समतुल्य रूप से, वे non-deterministic मशीन से polynomial समय में हल हो जाती हैं।
Q34Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
Where will the Hill Climbing Algorithm terminate?हिल क्लाइम्बिंग एल्गोरिथम कहाँ समाप्त होगा?
AStopping Criterion metरोक मानदंड पूरा हुआ
BGlobal Min/Max is achievedवैश्विक न्यूनतम/अधिकतम प्राप्त किया गया
CNo neighbor has higher valueकिसी भी पड़ोसी का मूल्य उससे अधिक नहीं है
DAll of the aboveऊपर के सभी
Show answerHide answer
Correct answer: (C)No neighbor has higher valueकिसी भी पड़ोसी का मूल्य उससे अधिक नहीं है
Explanation
Hill climbing keeps moving to a better neighbour and stops when no neighbouring state has a higher value. That point may only be a local maximum, not the global one.Hill climbing बेहतर पड़ोसी की ओर बढ़ता रहता है और तब रुकता है जब किसी पड़ोसी अवस्था का मान अधिक न हो। वह बिंदु केवल local maximum हो सकता है, global नहीं।
Q35Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
What is MISO pin in the RFID Module?RFID मॉड्यूल में MISO पिन क्या है?
Correct answer: (A)Master In Slave OutMaster In Slave Out
Explanation
RFID modules such as the RC522 use the SPI bus, where MISO means Master In Slave Out: the line on which the slave sends data to the master.RC522 जैसे RFID मॉड्यूल SPI बस का उपयोग करते हैं, जहाँ MISO का अर्थ Master In Slave Out है: वह लाइन जिस पर slave, master को डेटा भेजता है।
Q36Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
In the Divide and Conquer algorithm for finding the maximum and minimum elements,
how are the results from the left and right subarrays combined?अधिकतम और न्यूनतम तत्वों को खोजने के लिए डिवाइड और विजय एल्गोरिथ्म में, बाएं और दाएं
सबरेज़ से परिणाम कैसे संयुक्त हैं?
ABy taking the average of the maximum and minimum valuesअधिकतम और न्यूनतम मानों का औसत ले जाकर
BBy comparing the maximum of the left and right subarrays and the minimum of the left and right subarraysबाएं और दाएं सबरेज़ की अधिकतम और बाएं और दाएं सबरे के न्यूनतम की तुलना करके
CBy adding the maximum of the left subarray to the minimum of the right subarrayदाएं सबर्रे के न्यूनतम को कम से कम लेफ्ट सबर्रे के लिए लेफ्ट सबरे को जोड़कर
DBy multiplying the maximum of the left subarray with the minimum of the right subarrayदाएं सबरे के न्यूनतम के साथ बाएं सबरे को गुणा करके।
Show answerHide answer
Correct answer: (B)By comparing the maximum of the left and right subarrays and the minimum of the left and right subarraysबाएं और दाएं सबरेज़ की अधिकतम और बाएं और दाएं सबरे के न्यूनतम की तुलना करके
Explanation
Each half returns its own max and min; the overall max is the larger of the two maxima and the overall min is the smaller of the two minima, costing 2 comparisons per combine.हर आधा हिस्सा अपना max और min लौटाता है; कुल max दोनों max में बड़ा और कुल min दोनों min में छोटा होता है, और हर मेल पर 2 तुलनाएँ लगती हैं।
Which term refers to the strategy of optimizing an algorithm's use of resources, often by making sacrifices in one aspect for improvements in another?कौन-सा पद किसी एल्गोरिदम के संसाधनों के उपयोग को अनुकूलित करने की रणनीति को संदर्भित करता है, अक्सर एक पहलू में दूसरे में सुधार के लिए त्याग करके?
A tradeoff means giving up some of one resource (for example memory) to gain in another (for example speed). Greedy, divide-and-conquer and DP are algorithm design paradigms, not this strategy.Tradeoff का अर्थ है एक संसाधन (जैसे मेमोरी) का कुछ हिस्सा छोड़कर दूसरे (जैसे गति) में लाभ पाना। Greedy, divide-and-conquer और DP एल्गोरिथ्म डिज़ाइन के प्रतिमान हैं, यह रणनीति नहीं।
Conditional asymptotic notation allows for a more nuanced analysis of algorithm behavior under specific conditions. This is particularly useful when:सशर्त स्पर्शोन्मुख संकेतन विशिष्ट परिस्थितियों में एल्गोरिथम व्यवहार के अधिक सूक्ष्म विश्लेषण की अनुमति देता है। यह विशेष रूप से तब उपयोगी होता है जब:
AAnalyzing algorithms with constant time complexityनियत समय जटिलता के साथ एल्गोरिदम का विश्लेषण करना है।
BThe input size is fixedइनपुट का आकार निश्चित होता है।
CThe input data is randomइनपुट डेटा यादृच्छिक होता है।
DAlgorithm behavior varies based on certain input characteristicsएल्गोरिदम व्यवहार कुछ इनपुट विशेषताओं के आधार पर भिन्न होता है।
Show answerHide answer
Correct answer: (D)Algorithm behavior varies based on certain input characteristicsएल्गोरिदम व्यवहार कुछ इनपुट विशेषताओं के आधार पर भिन्न होता है।
Explanation
Conditional asymptotic notation gives a bound that holds only under a condition on n or the input (for example n a power of 2). It helps when an algorithm's behaviour depends on such input characteristics.Conditional asymptotic notation ऐसी सीमा देता है जो केवल n या इनपुट पर किसी शर्त (जैसे n का 2 की घात होना) में लागू होती है। यह तब उपयोगी है जब एल्गोरिथ्म का व्यवहार ऐसे इनपुट गुणों पर निर्भर करता है।
.If an algorithm's behavior is bounded by "o(f(n)) if g(n)", what notation does it become when the condition is removed?यदि किसी एल्गोरिदम का व्यवहार "o(f(n)) if g(n)" से परिबद्ध है, तो शर्त हटा दिए जाने पर यह कौन-सा संकेतन बन जाता है?
Ao(f(n))o(f(n))
Bo(g(n))o(g(n))
Co(f(n) + g(n))o(f(n) + g(n))
Do(f(n) * g(n))o(f(n) * g(n))
Show answerHide answer
Correct answer: (A)o(f(n))o(f(n))
Explanation
Once the condition is dropped and the bound still holds generally, the conditional statement "o(f(n)) if g(n)" just becomes o(f(n)). The bound function stays f(n).जब शर्त हटा दी जाती है और सीमा फिर भी सामान्य रूप से सही रहती है, तो सशर्त कथन "o(f(n)) if g(n)" केवल o(f(n)) बन जाता है। सीमा फलन f(n) ही रहता है।
The recurrence equation T(n) = T(n/2) + 1 represents the time complexity of which algorithmic paradigm?पुनरावृत्ति समीकरण T(n) = T(n/2) + 1 किस एल्गोरिथम प्रतिमान की समय जटिलता को दर्शाता है?
ADivide and Conquerडिवाइड एंड कॉन्कर
BGreedy Algorithmsलुब्ध एल्गोरिथम
CDynamic Programmingगतिक प्रोग्रामिंग
DBrute Forceब्रूट फाॅर्स
Show answerHide answer
Correct answer: (A)Divide and Conquerडिवाइड एंड कॉन्कर
Explanation
T(n) = T(n/2) + 1 halves the problem at each step, as in binary search, a divide-and-conquer algorithm. It solves to O(log n).T(n) = T(n/2) + 1 हर चरण में समस्या को आधा कर देता है, जैसे binary search में, जो एक divide-and-conquer एल्गोरिथ्म है। इसका हल O(log n) है।
Divide and Conquer is an algorithmic paradigm that solves problems by:डिवाइड और कॉन्कर एक एल्गोरिथम प्रतिमान है, जो निम्न द्वारा प्रश्नों को हल करता है:
AIteratively solving subproblemsउप-समस्याओं को पुनरावर्ती रूप से हल करना
BRecursively solving subproblemsउपसमस्याओं को पुनरावर्ती रूप से हल करना
CUsing heuristics to find solutionsहल ज्ञात करने के लिए अनुमान का उपयोग करना
DGreedily combining solutionsलुब्ध रूप से हलों का संयोजन
Show answerHide answer
Correct answer: (B)Recursively solving subproblemsउपसमस्याओं को पुनरावर्ती रूप से हल करना
Explanation
Divide and conquer splits a problem into smaller subproblems of the same type, solves them recursively, and then combines their solutions (for example merge sort or quick sort).Divide and conquer किसी समस्या को उसी प्रकार की छोटी उप-समस्याओं में बाँटता है, उन्हें रिकर्सिवली हल करता है और फिर उनके हल जोड़ता है (जैसे merge sort या quick sort)।
Correct answer: (A)Master In Slave Outमास्टर इन स्लेव आउट
Explanation
RFID modules such as the RC522 talk over SPI. On the MISO (Master In Slave Out) pin, the module (slave) sends data to the microcontroller (master).RC522 जैसे RFID मॉड्यूल SPI पर संवाद करते हैं। MISO (Master In Slave Out) पिन पर मॉड्यूल (slave) माइक्रोकंट्रोलर (master) को डेटा भेजता है।
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.