By Archit Kumar · Published: 18 October 2026 · 40 questions · English + हिंदी
BPSC TRE marking rule: +1 for a correct answer, −1/3 for a wrong answer and −1/3 for a question left blank. In the online test, choose option E (Do not attempt) to skip a question safely at 0 marks — never leave a question blank.
Read all 40 questions below with answers and explanations, or play the set online in the SarkariManzil practice app. In the app, sets unlock in order — submit Set N to open Set N+1.
Q1.Digital Electronics
What is the Gray code representation of the decimal number 9, whose binary form is 1001?
दशमलव संख्या 9, जिसका द्विआधारी रूप 1001 है, का ग्रे कोड निरूपण क्या है?
A.11011101✓ Correct
B.10111011
C.10011001
D.11101110
Answer: A — 1101 Gray code keeps the first bit (1), then each next bit is the XOR of adjacent binary bits: 1, 1⊕0=1, 0⊕0=0, 0⊕1=1 — giving 1101.ग्रे कोड में पहला बिट वैसा ही रहता है (1), फिर प्रत्येक अगला बिट आसन्न द्विआधारी बिटों का XOR होता है: 1, 1⊕0=1, 0⊕0=0, 0⊕1=1 — परिणाम 1101।
Q2.Digital Electronics
The 'race-around' problem in a J-K flip-flop occurs when —
J-K फ़्लिप-फ़्लॉप में 'रेस-अराउंड' समस्या कब होती है?
A.J = K = 0 and the clock is highजब J = K = 0 हो और क्लॉक उच्च हो
B.J = K = 1 and the clock pulse remains high for longer than the flip-flop's propagation delayजब J = K = 1 हो और क्लॉक स्पंद फ़्लिप-फ़्लॉप के प्रसार विलंब से अधिक समय तक उच्च रहे✓ Correct
C.The preset and clear inputs are both activeजब प्रीसेट और क्लियर दोनों निवेश सक्रिय हों
D.The clock frequency is very lowजब क्लॉक आवृत्ति बहुत कम हो
Answer: B — J = K = 1 and the clock pulse remains high for longer than the flip-flop's propagation delay With J = K = 1 the flip-flop toggles; if the clock stays high longer than the propagation delay, it toggles repeatedly within one pulse — the race-around condition, avoided by master-slave or edge-triggered designs.J = K = 1 होने पर फ़्लिप-फ़्लॉप टॉगल करता है; यदि क्लॉक प्रसार विलंब से अधिक समय तक उच्च रहे तो यह एक ही स्पंद में बार-बार टॉगल करता है — यही रेस-अराउंड स्थिति है, जिससे मास्टर-स्लेव या एज-ट्रिगर्ड अभिकल्पों द्वारा बचा जाता है।
Q3.Digital Electronics
A ring counter built with 4 flip-flops has how many distinct states (counts) in its sequence?
4 फ़्लिप-फ़्लॉप से बने रिंग काउंटर के अनुक्रम में कितनी भिन्न अवस्थाएँ (गणनाएँ) होती हैं?
A.1616
B.88
C.44✓ Correct
D.1010
Answer: C — 4 In a ring counter a single '1' circulates through the flip-flops, so the number of distinct states equals the number of flip-flops — 4. (A Johnson/twisted-ring counter gives 2n = 8 states.)रिंग काउंटर में एकल '1' फ़्लिप-फ़्लॉपों में घूमता है, इसलिए भिन्न अवस्थाओं की संख्या फ़्लिप-फ़्लॉपों की संख्या के बराबर होती है — 4। (जॉनसन/ट्विस्टेड-रिंग काउंटर 2n = 8 अवस्थाएँ देता है।)
Q4.Digital Electronics
The Excess-3 code for a decimal digit is obtained by —
किसी दशमलव अंक का एक्सेस-3 कोड किस प्रकार प्राप्त होता है?
A.Shifting the BCD code left by 3 bitsBCD कोड को 3 बिट बाईं ओर खिसकाकर
B.Multiplying the BCD code by 3BCD कोड को 3 से गुणा करके
C.Taking the 1's complement of the BCD codeBCD कोड का 1 का पूरक लेकर
D.Adding 3 (0011) to the digit's 4-bit BCD codeअंक के 4-बिट BCD कोड में 3 (0011) जोड़कर✓ Correct
Answer: D — Adding 3 (0011) to the digit's 4-bit BCD code Excess-3 simply adds 0011 to each digit's BCD value; it is a self-complementing, unweighted code once used in arithmetic units.एक्सेस-3 में प्रत्येक अंक के BCD मान में केवल 0011 जोड़ा जाता है; यह एक स्व-पूरक, अभारित कोड है जो कभी अंकगणितीय इकाइयों में प्रयुक्त होता था।
Q5.Digital Electronics
In a half adder, the Carry output is given by the expression —
हाफ़ ऐडर में कैरी निर्गम किस व्यंजक द्वारा दिया जाता है?
A.A ⊕ BA ⊕ B
B.A · BA · B✓ Correct
C.A + BA + B
D.A' · B + A · B'A' · B + A · B'
Answer: B — A · B A half adder produces Sum = A ⊕ B and Carry = A · B (AND of the inputs); the carry is 1 only when both input bits are 1.हाफ़ ऐडर Sum = A ⊕ B और Carry = A · B (निवेशों का AND) देता है; कैरी केवल तभी 1 होता है जब दोनों निवेश बिट 1 हों।
Q6.Computer Organization
The Intel 8085 microprocessor has a 16-bit address bus. The maximum memory it can directly address is —
इंटेल 8085 माइक्रोप्रोसेसर में 16-बिट एड्रेस बस है। वह अधिकतम कितनी स्मृति को सीधे संबोधित कर सकता है?
A.1 MB1 MB
B.16 KB16 KB
C.64 KB64 KB✓ Correct
D.256 KB256 KB
Answer: C — 64 KB A 16-bit address bus produces 2¹⁶ = 65,536 distinct addresses, i.e. 64 KB of directly addressable memory.16-बिट एड्रेस बस 2¹⁶ = 65,536 भिन्न पते बनाती है, अर्थात 64 KB सीधे संबोधित योग्य स्मृति।
Q7.Computer Organization
In indexed addressing mode, the effective address of the operand is computed as —
सूचकांकित (इंडेक्स्ड) संबोधन मोड में ऑपरेंड का प्रभावी पता किस प्रकार निकाला जाता है?
A.The contents of the program counterप्रोग्राम काउंटर की सामग्री
B.Always the next memory locationहमेशा अगला स्मृति स्थान
C.The address stored in the accumulatorसंचायक में संग्रहीत पता
D.The contents of an index/base register plus a displacement given in the instructionसूचकांक/आधार रजिस्टर की सामग्री जमा अनुदेश में दिया गया विस्थापन✓ Correct
Answer: D — The contents of an index/base register plus a displacement given in the instruction Indexed addressing adds the displacement field of the instruction to the contents of an index or base register — very convenient for stepping through arrays.सूचकांकित संबोधन में अनुदेश के विस्थापन क्षेत्र को सूचकांक या आधार रजिस्टर की सामग्री में जोड़ा जाता है — ऐरे पर चरणबद्ध चलने के लिए यह बहुत सुविधाजनक है।
Q8.Computer Organization
In a hardwired control unit of a CPU, the control signals are generated by —
CPU की हार्डवायर्ड नियंत्रण इकाई में नियंत्रण संकेत किसके द्वारा बनाए जाते हैं?
A.Combinational logic circuits (gates and decoders)संयोजनात्मक तर्क परिपथों (गेट और डिकोडर) द्वारा✓ Correct
B.A micro-program stored in control memoryनियंत्रण स्मृति में संग्रहीत सूक्ष्म-प्रोग्राम द्वारा
C.The operating system kernelऑपरेटिंग सिस्टम कर्नेल द्वारा
D.Special-purpose software routinesविशेष-उद्देश्य सॉफ़्टवेयर रूटीन्स द्वारा
Answer: A — Combinational logic circuits (gates and decoders) A hardwired control unit is built from combinational circuits that directly decode the opcode and timing signals — it is fast but difficult to modify, unlike the microprogrammed control unit.हार्डवायर्ड नियंत्रण इकाई संयोजनात्मक परिपथों से बनी होती है जो ऑपकोड और समय संकेतों को सीधे डिकोड करते हैं — यह तेज़ होती है परंतु संशोधित करना कठिन होता है, सूक्ष्म-प्रोग्रामित नियंत्रण इकाई के विपरीत।
Q9.Computer Organization
An associative memory (content-addressable memory, CAM) is special because it is accessed —
साहचर्य स्मृति (कंटेंट-एड्रेसेबल मेमोरी, CAM) विशेष है क्योंकि इसे अभिगम किया जाता है —
A.Through the cache controller aloneकेवल कैश नियंत्रक के माध्यम से
B.Only in read modeकेवल पठन मोड में
C.By the content of the data rather than by a memory addressस्मृति पते के बजाय डेटा की सामग्री द्वारा✓ Correct
D.Sequentially from the first locationपहले स्थान से क्रमिक रूप से
Answer: C — By the content of the data rather than by a memory address CAM searches all its words in parallel for a match with the given content — used in cache tag stores and TLBs where lookup by content, not address, is needed.CAM दिए गए कंटेंट से मिलान के लिए अपने सभी शब्दों को समानांतर खोजती है — कैश टैग भंडार और TLB में प्रयुक्त होती है, जहाँ पते के बजाय कंटेंट द्वारा खोज चाहिए होती है।
Q10.Data Structures
How many edges are there in a complete graph with n vertices?
n शीर्षों वाले पूर्ण ग्राफ़ में कितने किनारे होते हैं?
A.n − 1n − 1
B.2n2n
C.n²n²
D.n(n − 1)/2n(n − 1)/2✓ Correct
Answer: D — n(n − 1)/2 In a complete graph every vertex is joined to every other vertex; each of the n vertices has degree n − 1, and counting each edge twice gives n(n − 1)/2 edges.पूर्ण ग्राफ़ में प्रत्येक शीर्ष प्रत्येक अन्य शीर्ष से जुड़ा होता है; n शीर्षों में से प्रत्येक की डिग्री n − 1 होती है, और प्रत्येक किनारे को दो बार गिनने पर कुल n(n − 1)/2 किनारे मिलते हैं।
Q11.Data Structures
The space required by the adjacency-matrix representation of a graph with V vertices is —
V शीर्षों वाले ग्राफ़ के आसन्नता-आव्यूह (एडजेसेंसी मैट्रिक्स) निरूपण हेतु आवश्यक स्थान है —
A.O(V²)O(V²)✓ Correct
B.O(V + E)O(V + E)
C.O(V)O(V)
D.O(E²)O(E²)
Answer: A — O(V²) An adjacency matrix is a V × V table of entries (one per ordered vertex pair), so it always needs O(V²) space, however few edges the graph has.आसन्नता-आव्यूह V × V प्रविष्टियों की तालिका होती है (प्रत्येक क्रमित शीर्ष-युग्म के लिए एक), इसलिए ग्राफ़ में किनारे कितने भी कम हों, इसे सदैव O(V²) स्थान चाहिए।
Q12.Data Structures
Topological sorting of vertices is possible only for which type of graph?
शीर्षों का सांस्थितिक क्रम (टोपोलॉजिकल सॉर्टिंग) केवल किस प्रकार के ग्राफ़ के लिए संभव है?
A.Undirected graphsअदिश ग्राफ़ों के लिए
B.Directed acyclic graphs (DAGs)दिष्ट अचक्रीय ग्राफ़ों (DAG) के लिए✓ Correct
C.Graphs with cyclesचक्र वाले ग्राफ़ों के लिए
D.Complete graphsपूर्ण ग्राफ़ों के लिए
Answer: B — Directed acyclic graphs (DAGs) A topological order lists vertices so that every edge goes from earlier to later in the order; a directed cycle makes such an ordering impossible, so it exists only for DAGs.सांस्थितिक क्रम शीर्षों को इस प्रकार सूचीबद्ध करता है कि प्रत्येक किनारा क्रम में पहले से बाद की ओर जाए; दिष्ट चक्र ऐसा क्रम असंभव बना देता है, इसलिए यह केवल DAG के लिए अस्तित्व में होता है।
Q13.Data Structures
Unlike Dijkstra's algorithm, the Bellman-Ford algorithm can correctly handle graphs that have —
डायक्स्ट्रा के एल्गोरिथम के विपरीत, बेलमैन-फ़ोर्ड एल्गोरिथम उन ग्राफ़ों को सही ढंग से संभाल सकता है जिनमें —
Answer: D — Negative edge weights Bellman-Ford relaxes all edges V−1 times, so it finds shortest paths even with negative edges and can also detect negative-weight cycles; Dijkstra's greedy method fails with negative edges.बेलमैन-फ़ोर्ड सभी किनारों को V−1 बार शिथिल करता है, इसलिए यह ऋणात्मक किनारों के साथ भी लघुतम पथ खोजता है और ऋणात्मक-भार चक्रों का पता भी लगा सकता है; डायक्स्ट्रा की लोभी विधि ऋणात्मक किनारों पर विफल हो जाती है।
Q14.Data Structures
A stack is the most natural data structure for which of the following tasks?
निम्नलिखित में से किस कार्य के लिए स्टैक सबसे स्वाभाविक डेटा संरचना है?
A.Checking whether the parentheses in an expression are correctly balancedकिसी व्यंजक में कोष्ठकों का सही संतुलन जाँचना✓ Correct
B.Processing print jobs in arrival orderआगमन क्रम में प्रिंट कार्यों का प्रसंस्करण
C.Finding the shortest path in a graphग्राफ़ में लघुतम पथ खोजना
D.Storing elements sorted by priorityप्राथमिकता के अनुसार तत्वों का भंडारण
Answer: A — Checking whether the parentheses in an expression are correctly balanced Opening brackets are pushed and each closing bracket must match the most recent opening one — a last-in-first-out pattern, which is exactly a stack. Print jobs in arrival order suit a queue and priority storage suits a heap.खुलने वाले कोष्ठक push किए जाते हैं और प्रत्येक बंद होने वाला कोष्ठक सबसे हाल के खुले कोष्ठक से मिलना चाहिए — यही अंतिम-आगमन-प्रथम-निर्गमन प्रतिरूप है, जो ठीक स्टैक है। आगमन क्रम में प्रिंट कार्यों के लिए क्यू और प्राथमिकता भंडारण के लिए हीप उपयुक्त है।
Q15.Data Structures
The main advantage of a circular queue over an ordinary linear queue (implemented on an array) is that —
साधारण रैखिक क्यू (ऐरे पर कार्यान्वित) की तुलना में वृत्ताकार क्यू का मुख्य लाभ यह है कि —
A.It sorts the elements automaticallyयह तत्वों को स्वतः क्रमबद्ध कर देती है
B.The free spaces left at the front after deletions can be reused, avoiding wastage of memoryहटाने के बाद आगे खाली हुए स्थानों का पुनः उपयोग हो सकता है, जिससे स्मृति की बर्बादी बचती है✓ Correct
C.It needs no front or rear pointersइसे फ्रंट या रियर संकेतकों की आवश्यकता नहीं होती
D.Its operations are all O(log n)इसके सभी प्रचालन O(log n) होते हैं
Answer: B — The free spaces left at the front after deletions can be reused, avoiding wastage of memory In a linear array queue, positions vacated at the front cannot be reused even when empty. A circular queue wraps the rear around to the beginning, reusing those spaces.रैखिक ऐरे क्यू में आगे रिक्त हुए स्थान खाली होने पर भी पुनः उपयोग नहीं हो पाते। वृत्ताकार क्यू रियर को आरंभ की ओर लपेट देती है, जिससे वे स्थान पुनः उपयोग होते हैं।
Q16.Data Structures
The minimum number of edges that a connected graph with n vertices can have is —
n शीर्षों वाले जुड़े (connected) ग्राफ़ में किनारों की न्यूनतम संख्या हो सकती है —
A.nn
B.n(n − 1)/2n(n − 1)/2
C.n − 1n − 1✓ Correct
D.2n − 12n − 1
Answer: C — n − 1 A connected graph with the fewest edges is a tree, and every tree on n vertices has exactly n − 1 edges; removing any edge would disconnect it.सबसे कम किनारों वाला जुड़ा ग्राफ़ एक वृक्ष (ट्री) होता है, और n शीर्षों वाले प्रत्येक वृक्ष में ठीक n − 1 किनारे होते हैं; कोई भी किनारा हटाने से वह विच्छिन्न हो जाएगा।
Q17.Data Structures
In the linked representation of a binary tree with n nodes, the number of NULL pointers is —
n नोड वाले बाइनरी ट्री के लिंक्ड निरूपण में NULL संकेतकों की संख्या होती है —
A.n + 1n + 1✓ Correct
B.nn
C.n − 1n − 1
D.2n2n
Answer: A — n + 1 Each node has 2 pointer fields, making 2n pointers in total. Of these, n − 1 point to children (every node except the root has exactly one incoming pointer), so the NULL pointers number 2n − (n − 1) = n + 1.प्रत्येक नोड में 2 संकेतक क्षेत्र होते हैं, कुल 2n संकेतक। इनमें से n − 1 बच्चों की ओर इंगित करते हैं (रूट को छोड़कर प्रत्येक नोड पर ठीक एक आगामी संकेतक होता है), इसलिए NULL संकेतकों की संख्या 2n − (n − 1) = n + 1 होती है।
Q18.Operating System
Belady's anomaly — page faults sometimes increasing when more frames are allotted — is associated with which page-replacement algorithm?
बेलाडी की विसंगति — अधिक फ़्रेम देने पर भी कभी-कभी पेज फ़ॉल्ट बढ़ जाना — किस पेज-प्रतिस्थापन एल्गोरिथम से जुड़ी है?
A.LRULRU से
B.Optimal (OPT)Optimal (OPT) से
C.FIFOFIFO से✓ Correct
D.Clock (second chance)Clock (second chance) से
Answer: C — FIFO FIFO can suffer Belady's anomaly: giving a process more frames can, for some reference strings, increase page faults. Stack algorithms like LRU are free from it.FIFO बेलाडी की विसंगति से ग्रस्त हो सकता है: कुछ संदर्भ-स्ट्रिंगों के लिए process को अधिक फ़्रेम देने पर पेज फ़ॉल्ट बढ़ सकते हैं। LRU जैसे स्टैक एल्गोरिथम इससे मुक्त होते हैं।
Q19.Operating System
In the SSTF (Shortest Seek Time First) disk-scheduling algorithm, the next request served is the one —
SSTF (सबसे कम सीक समय पहले) डिस्क-अनुसूचन एल्गोरिथम में अगला अनुरोध वह सेवा पाता है जो —
A.That arrived firstसबसे पहले आया हो
B.Closest to the current position of the disk headडिस्क हेड की वर्तमान स्थिति के सबसे निकट हो✓ Correct
C.At the outermost trackसबसे बाहरी ट्रैक पर हो
D.Picked at randomयादृच्छिक रूप से चुना जाए
Answer: B — Closest to the current position of the disk head SSTF serves the pending request nearest to the head's current track, reducing seek time; its drawback is that distant requests may starve.SSTF वर्तमान ट्रैक के निकटतम लंबित अनुरोध को सेवा देता है, जिससे सीक समय घटता है; इसकी कमी यह है कि दूर के अनुरोध भूखे रह सकते हैं।
Q20.Operating System
RAID Level 1 achieves data safety mainly through —
RAID स्तर 1 डेटा सुरक्षा मुख्य रूप से किसके माध्यम से प्राप्त करता है?
A.Striping data across disks without copiesप्रतियों के बिना डेटा को डिस्कों पर पट्टियों में बाँटकर
B.Compressing data before writingलिखने से पहले डेटा संपीड़ित करके
C.Parity bits stored on one dedicated diskएक समर्पित डिस्क पर संचित समता (पैरिटी) बिट्स द्वारा
D.Mirroring — keeping an exact copy of the data on a second diskमिररिंग — दूसरी डिस्क पर डेटा की हूबहू प्रति रखकर✓ Correct
Answer: D — Mirroring — keeping an exact copy of the data on a second disk RAID 1 mirrors every write onto two disks, so if one disk fails the other still holds a complete copy; the cost is that usable capacity is only half the total.RAID 1 प्रत्येक लेखन को दो डिस्कों पर दर्पण-प्रति बनाता है, इसलिए एक डिस्क विफल होने पर दूसरी में पूर्ण प्रति रहती है; लागत यह है कि उपयोग योग्य क्षमता कुल की केवल आधी होती है।
Q21.Operating System
'Spooling' in an operating system refers to —
ऑपरेटिंग सिस्टम में 'स्पूलिंग' से तात्पर्य है —
A.Dividing main memory into pagesमुख्य स्मृति को पेजों में बाँटना
B.Running two processors at the same timeएक ही समय पर दो प्रोसेसर चलाना
C.Storing output data on a disk buffer so that a slow device, such as a printer, can work on it at its own paceनिर्गम डेटा को डिस्क बफ़र पर संग्रहीत करना ताकि प्रिंटर जैसा धीमा उपकरण अपनी गति से उस पर कार्य कर सके✓ Correct
D.Encrypting data while it is printedमुद्रण के समय डेटा का एन्क्रिप्शन करना
Answer: C — Storing output data on a disk buffer so that a slow device, such as a printer, can work on it at its own pace Spooling (Simultaneous Peripheral Operations On-Line) first writes jobs to a disk queue; the printer then takes them one by one, so the CPU is not held up by the slow device and many jobs can wait in line.स्पूलिंग (समकालिक परिधीय प्रचालन ऑनलाइन) पहले कार्यों को डिस्क पंक्ति में लिखती है; प्रिंटर फिर उन्हें एक-एक करके लेता है, इसलिए CPU धीमे उपकरण के कारण नहीं रुकता और अनेक कार्य पंक्ति में प्रतीक्षा कर सकते हैं।
Q22.Operating System
In a hard real-time operating system, the most critical requirement is that —
हार्ड रियल-टाइम ऑपरेटिंग सिस्टम में सबसे महत्वपूर्ण आवश्यकता यह है कि —
A.Every task must be guaranteed to complete within its strict deadline; missing a deadline may mean system failureप्रत्येक कार्य की अपनी कठोर समय-सीमा के भीतर पूर्ण होने की गारंटी हो; समय-सीमा चूकने का अर्थ प्रणाली विफलता हो सकता है✓ Correct
B.The user interface should be attractiveउपयोगकर्ता इंटरफ़ेस आकर्षक हो
C.Throughput should be as high as possibleथ्रूपुट यथासंभव अधिक हो
D.Files must be stored in the cloudफ़ाइलें क्लाउड में संग्रहीत हों
Answer: A — Every task must be guaranteed to complete within its strict deadline; missing a deadline may mean system failure Hard real-time systems (flight control, medical devices) treat deadlines as absolute: the OS must guarantee predictable, on-time completion, unlike soft real-time systems where occasional delay is tolerable.हार्ड रियल-टाइम प्रणालियाँ (उड़ान नियंत्रण, चिकित्सा उपकरण) समय-सीमाओं को निरपेक्ष मानती हैं: OS को पूर्वानुमेय, समय पर पूर्णता की गारंटी देनी होती है, सॉफ़्ट रियल-टाइम प्रणालियों के विपरीत जहाँ कभी-कभी विलंब सहनीय होता है।
Q23.DBMS
In SQL, the commands GRANT and REVOKE belong to which category of commands?
SQL में GRANT और REVOKE कमांड किस श्रेणी के कमांड से संबंधित हैं?
A.DDLDDL
B.DMLDML
C.TCLTCL
D.DCL (Data Control Language)DCL (डेटा नियंत्रण भाषा)✓ Correct
Answer: D — DCL (Data Control Language) GRANT and REVOKE give and withdraw access privileges on database objects, so they are Data Control Language commands. CREATE/ALTER are DDL, SELECT/INSERT are DML, and COMMIT/ROLLBACK are TCL.GRANT और REVOKE डेटाबेस ऑब्जेक्ट्स पर अभिगम विशेषाधिकार देते और वापस लेते हैं, इसलिए ये डेटा नियंत्रण भाषा (DCL) के कमांड हैं। CREATE/ALTER DDL हैं, SELECT/INSERT DML हैं, और COMMIT/ROLLBACK TCL हैं।
Q24.DBMS
In a database transaction, the COMMIT command is used to —
डेटाबेस लेन-देन (transaction) में COMMIT कमांड का उपयोग किसके लिए होता है?
A.Undo all changes made by the transactionलेन-देन द्वारा किए गए सभी परिवर्तनों को पूर्ववत करने के लिए
B.Make all changes of the transaction permanent in the databaseलेन-देन के सभी परिवर्तनों को डेटाबेस में स्थायी करने के लिए✓ Correct
C.Start a new transaction automaticallyस्वतः नया लेन-देन आरंभ करने के लिए
D.Lock a table for other usersअन्य उपयोगकर्ताओं के लिए तालिका लॉक करने के लिए
Answer: B — Make all changes of the transaction permanent in the database COMMIT ends a transaction by saving its changes permanently; ROLLBACK instead undoes them. Together they implement the atomicity of transactions.COMMIT किसी लेन-देन को उसके परिवर्तन स्थायी रूप से सहेजकर समाप्त करता है; इसके विपरीत ROLLBACK उन्हें पूर्ववत करता है। दोनों मिलकर लेन-देन की परमाणुकता लागू करते हैं।
Q25.DBMS
If the ORDER BY clause of a SQL query does not mention ASC or DESC, the result rows are sorted by default in —
यदि किसी SQL क्वेरी के ORDER BY खंड में ASC या DESC न लिखा हो, तो परिणाम पंक्तियाँ डिफ़ॉल्ट रूप से किस क्रम में क्रमबद्ध होती हैं?
A.Descending orderअवरोही क्रम में
B.Ascending orderआरोही क्रम में✓ Correct
C.Random orderयादृच्छिक क्रम में
D.The order of the primary key onlyकेवल प्राथमिक कुंजी के क्रम में
Answer: B — Ascending order Ascending order is the default in ORDER BY; DESC must be written explicitly for descending order.ORDER BY में आरोही क्रम डिफ़ॉल्ट होता है; अवरोही क्रम के लिए DESC स्पष्ट रूप से लिखना पड़ता है।
Q26.DBMS
Table A has 5 rows and Table B has 4 rows. The Cartesian product A × B will contain how many rows?
तालिका A में 5 पंक्तियाँ और तालिका B में 4 पंक्तियाँ हैं। कार्तीय गुणन A × B में कितनी पंक्तियाँ होंगी?
A.99
B.44
C.55
D.2020✓ Correct
Answer: D — 20 A Cartesian product pairs every row of A with every row of B, giving 5 × 4 = 20 rows.कार्तीय गुणन A की प्रत्येक पंक्ति को B की प्रत्येक पंक्ति के साथ जोड़ता है, जिससे 5 × 4 = 20 पंक्तियाँ मिलती हैं।
Q27.DBMS
A data warehouse is designed primarily to support —
डेटा वेयरहाउस मुख्य रूप से किसका समर्थन करने हेतु अभिकल्पित होता है?
A.Day-to-day transaction processing (OLTP)दैनिक लेन-देन प्रसंस्करण (OLTP) का
B.Printing of daily billsदैनिक बिलों के मुद्रण का
C.Analytical queries and decision support (OLAP) over large historical dataविशाल ऐतिहासिक डेटा पर विश्लेषणात्मक क्वेरी और निर्णय समर्थन (OLAP) का✓ Correct
D.Network packet routingनेटवर्क पैकेट रूटिंग का
Answer: C — Analytical queries and decision support (OLAP) over large historical data Unlike operational databases built for OLTP, a data warehouse stores integrated historical data optimised for OLAP — analysis, reporting and decision support.OLTP हेतु बनी प्रचालन डेटाबेसों के विपरीत, डेटा वेयरहाउस OLAP — विश्लेषण, रिपोर्टिंग और निर्णय समर्थन — हेतु अनुकूलित एकीकृत ऐतिहासिक डेटा संग्रहीत करता है।
Q28.DBMS
MongoDB is a popular example of a NoSQL database of which type?
MongoDB किस प्रकार के NoSQL डेटाबेस का लोकप्रिय उदाहरण है?
Answer: A — Document-oriented database MongoDB stores data as flexible, JSON-like documents (BSON), making it a document-oriented NoSQL database — unlike relational tables with fixed rows and columns.MongoDB डेटा को लचीले, JSON-जैसे दस्तावेज़ों (BSON) के रूप में संग्रहीत करता है, जिससे यह दस्तावेज़-उन्मुख NoSQL डेटाबेस है — निश्चित पंक्तियों और स्तंभों वाली संबंधपरक तालिकाओं के विपरीत।
Q29.Computer Networks
Electronic mail is sent from a mail client to a mail server using the SMTP protocol, which works on TCP port —
इलेक्ट्रॉनिक मेल, मेल क्लाइंट से मेल सर्वर को SMTP प्रोटोकॉल द्वारा भेजा जाता है, जो TCP पोर्ट पर कार्य करता है —
A.443443
B.110110
C.143143
D.2525✓ Correct
Answer: D — 25 SMTP (Simple Mail Transfer Protocol) uses port 25 for sending mail. Port 110 is POP3 and 143 is IMAP, both used for receiving mail; 443 is HTTPS.SMTP (सरल मेल स्थानांतरण प्रोटोकॉल) मेल भेजने के लिए पोर्ट 25 का उपयोग करता है। पोर्ट 110 POP3 और 143 IMAP है, दोनों मेल प्राप्त करने हेतु प्रयुक्त होते हैं; 443 HTTPS है।
Q30.Computer Networks
A MAC (hardware) address of a network interface card is how many bits long?
नेटवर्क इंटरफ़ेस कार्ड का MAC (हार्डवेयर) पता कितने बिट लंबा होता है?
A.32 bits32 बिट
B.48 bits48 बिट✓ Correct
C.64 bits64 बिट
D.128 bits128 बिट
Answer: B — 48 bits A MAC address is 48 bits (6 bytes), written as six pairs of hexadecimal digits, e.g. 00-1A-2B-3C-4D-5E. IPv4 addresses are 32 bits and IPv6 addresses 128 bits.MAC पता 48 बिट (6 बाइट) का होता है, जिसे षोडश आधारी अंकों के छह युग्मों में लिखा जाता है, जैसे 00-1A-2B-3C-4D-5E। IPv4 पते 32 बिट और IPv6 पते 128 बिट के होते हैं।
Q31.Computer Networks
A network hub works at which layer of the OSI model, repeating an incoming signal to all its ports?
नेटवर्क हब OSI मॉडल की किस परत पर कार्य करता है, जो आने वाले संकेत को अपने सभी पोर्टों पर दोहराता है?
A.Physical layerभौतिक परत✓ Correct
B.Transport layerपरिवहन परत
C.Network layerनेटवर्क परत
D.Application layerअनुप्रयोग परत
Answer: A — Physical layer A hub is a simple physical-layer device: it merely regenerates and broadcasts the incoming signal to every port, unlike a switch (Layer 2) which forwards frames to the correct port using MAC addresses.हब एक सरल भौतिक-परत उपकरण है: यह आने वाले संकेत को पुनः बनाकर प्रत्येक पोर्ट पर प्रसारित मात्र करता है, स्विच (परत 2) के विपरीत जो MAC पतों का उपयोग करके फ़्रेम सही पोर्ट पर भेजता है।
Q32.Computer Networks
Traditional Ethernet LANs use which method to manage access to the shared medium and handle collisions?
पारंपरिक ईथरनेट LAN साझा माध्यम तक पहुँच का प्रबंधन और टकरावों को संभालने हेतु किस विधि का उपयोग करते हैं?
A.FDMAFDMA
B.Token passingटोकन पासिंग
C.CSMA/CDCSMA/CD✓ Correct
D.Circuit switchingसर्किट स्विचिंग
Answer: C — CSMA/CD CSMA/CD (Carrier Sense Multiple Access with Collision Detection) makes each station listen before transmitting and detect collisions when they happen; token passing is used in token-ring networks.CSMA/CD (टकराव संसूचन सहित वाहक-संवेदी बहु-अभिगम) प्रत्येक स्टेशन को संचारण से पहले सुनने और टकराव होने पर उसका पता लगाने को कहता है; टोकन पासिंग टोकन-रिंग नेटवर्कों में प्रयुक्त होती है।
Q33.Computer Networks
The default subnet mask of a Class B IPv4 network is —
क्लास B IPv4 नेटवर्क का डिफ़ॉल्ट सबनेट मास्क है —
A.255.0.0.0255.0.0.0
B.255.255.255.0255.255.255.0
C.255.255.0.0255.255.0.0✓ Correct
D.255.255.255.255255.255.255.255
Answer: C — 255.255.0.0 Class B networks use the first 16 bits for the network part, so the default mask is 255.255.0.0. Class A uses 255.0.0.0 and Class C uses 255.255.255.0.क्लास B नेटवर्क नेटवर्क भाग के लिए पहले 16 बिट उपयोग करते हैं, इसलिए डिफ़ॉल्ट मास्क 255.255.0.0 है। क्लास A 255.0.0.0 और क्लास C 255.255.255.0 का उपयोग करता है।
Q34.Computer Networks
In packet switching, as used by the Internet, a message is —
पैकेट स्विचिंग में, जैसा इंटरनेट द्वारा प्रयुक्त होता है, कोई संदेश —
A.Sent over one permanent dedicated circuitएक स्थायी समर्पित सर्किट से भेजा जाता है
B.Broken into packets that may travel by different routes and are reassembled at the destinationपैकेटों में तोड़ा जाता है जो भिन्न मार्गों से जा सकते हैं और गंतव्य पर पुनः जोड़े जाते हैं✓ Correct
C.Always sent by satelliteहमेशा उपग्रह द्वारा भेजा जाता है
D.Stored until the whole network is freeपूरा नेटवर्क मुक्त होने तक संग्रहीत रहता है
Answer: B — Broken into packets that may travel by different routes and are reassembled at the destination Packet switching divides data into packets, each routed independently — possibly along different paths — and reassembled at the destination. This contrasts with circuit switching, which reserves a dedicated path for the whole conversation.पैकेट स्विचिंग डेटा को पैकेटों में बाँटती है, जिनमें से प्रत्येक स्वतंत्र रूप से — संभवतः भिन्न मार्गों से — भेजा जाता है और गंतव्य पर पुनः जोड़ा जाता है। यह सर्किट स्विचिंग के विपरीत है, जो पूरी वार्ता के लिए समर्पित मार्ग आरक्षित करती है।
Q35.Python Programming
What is printed by the following Python code?
x = [1, 2, 3]
y = x
y.append(4)
print(x)
निम्नलिखित Python कोड क्या प्रिंट करेगा?
x = [1, 2, 3]
y = x
y.append(4)
print(x)
A.[1, 2, 3][1, 2, 3]
B.[1, 2, 3, 4, 4][1, 2, 3, 4, 4]
C.[4][4]
D.[1, 2, 3, 4][1, 2, 3, 4]✓ Correct
Answer: D — [1, 2, 3, 4] Assignment y = x does not copy the list; both names refer to the same object. Appending through y therefore changes what x shows: [1, 2, 3, 4].y = x लिखने से सूची की प्रति नहीं बनती; दोनों नाम एक ही ऑब्जेक्ट को संदर्भित करते हैं। इसलिए y से जोड़ने पर x में भी परिवर्तन दिखता है: [1, 2, 3, 4]।
Q36.Python Programming
What is printed by the following Python code?
d = {'a': 1, 'b': 2, 'a': 3}
print(len(d), d['a'])
निम्नलिखित Python कोड क्या प्रिंट करेगा?
d = {'a': 1, 'b': 2, 'a': 3}
print(len(d), d['a'])
A.2 and 32 और 3✓ Correct
B.3 and 13 और 1
C.2 and 12 और 1
D.Error — duplicate keyत्रुटि — दोहरी कुंजी
Answer: A — 2 and 3 A dictionary cannot hold the same key twice: the later value 3 replaces 1 for the key 'a'. So the dictionary has 2 entries and d['a'] is 3, printing '2 3'.शब्दकोश में एक ही कुंजी दो बार नहीं रह सकती: बाद वाला मान 3, कुंजी 'a' के लिए 1 को बदल देता है। इसलिए शब्दकोश में 2 प्रविष्टियाँ हैं और d['a'] 3 है, प्रिंट होगा '2 3'।
Q37.Python Programming
Which of the following can NOT be used as a key in a Python dictionary?
निम्नलिखित में से किसे Python शब्दकोश (dictionary) में कुंजी के रूप में उपयोग नहीं किया जा सकता?
A.An integerएक पूर्णांक को
B.A listएक सूची (list) को✓ Correct
C.A tupleएक टपल को
D.A stringएक स्ट्रिंग को
Answer: B — A list Dictionary keys must be hashable (immutable) objects. Lists are mutable and unhashable, so using one as a key raises TypeError; integers, strings and tuples are fine.शब्दकोश की कुंजियाँ हैश-योग्य (अपरिवर्तनीय) ऑब्जेक्ट होनी चाहिए। सूचियाँ परिवर्तनीय और हैश-अयोग्य होती हैं, इसलिए उन्हें कुंजी बनाने पर TypeError आता है; पूर्णांक, स्ट्रिंग और टपल ठीक हैं।
Q38.Python Programming
What is printed by the following Python code?
print([1, 2, 3][-1] + [4, 5][0])
Answer: A — 7 [1, 2, 3][-1] is the last element, 3; [4, 5][0] is the first element, 4. Their sum is 7.[1, 2, 3][-1] अंतिम तत्व है, 3; [4, 5][0] पहला तत्व है, 4। दोनों का योग 7 है।
Q39.Software Engineering
In white-box testing, test cases are designed mainly on the basis of —
व्हाइट-बॉक्स परीक्षण में परीक्षण-स्थितियाँ मुख्य रूप से किसके आधार पर बनाई जाती हैं?
A.Only the user's requirements documentकेवल उपयोगकर्ता की आवश्यकताओं के दस्तावेज़ के आधार पर
B.The colour scheme of the interfaceइंटरफ़ेस की रंग-योजना के आधार पर
C.The internal code structure — statements, branches and paths of the programप्रोग्राम की आंतरिक कोड संरचना — कथनों, शाखाओं और पथों — के आधार पर✓ Correct
D.Guessing where users may clickयह अनुमान लगाकर कि उपयोगकर्ता कहाँ क्लिक कर सकते हैं
Answer: C — The internal code structure — statements, branches and paths of the program White-box (glass-box) testing looks inside the code and designs cases to exercise statements, branches and paths; black-box testing, in contrast, checks behaviour only through inputs and outputs.व्हाइट-बॉक्स (ग्लास-बॉक्स) परीक्षण कोड के भीतर देखकर कथनों, शाखाओं और पथों को परखने हेतु स्थितियाँ बनाता है; इसके विपरीत ब्लैक-बॉक्स परीक्षण केवल निवेशों और निर्गमों द्वारा व्यवहार जाँचता है।
Q40.Computer Networks
Using webmail or online office software in a browser, without installing or maintaining the software yourself, is an example of which cloud service model?
सॉफ़्टवेयर को स्वयं स्थापित या रखरखाव किए बिना, ब्राउज़र में वेबमेल या ऑनलाइन ऑफ़िस सॉफ़्टवेयर का उपयोग करना, किस क्लाउड सेवा मॉडल का उदाहरण है?
A.IaaSIaaS
B.PaaSPaaS
C.DaaSDaaS
D.SaaS (Software as a Service)SaaS (सॉफ़्टवेयर सेवा के रूप में)✓ Correct
Answer: D — SaaS (Software as a Service) In SaaS the provider hosts and maintains the complete application, and users simply use it over the internet — webmail and online office suites are classic examples. IaaS provides raw infrastructure and PaaS provides a development platform.SaaS में प्रदाता पूर्ण अनुप्रयोग को होस्ट और रखरखाव करता है, और उपयोगकर्ता उसे इंटरनेट पर सीधे उपयोग करते हैं — वेबमेल और ऑनलाइन ऑफ़िस सूट इसके उत्कृष्ट उदाहरण हैं। IaaS कच्ची अवसंरचना और PaaS विकास मंच प्रदान करता है।