SarkariManzil
BPSC · TRE Teacher Recruitment

BPSC TRE Computer Science (11–12) — Set 2

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.
▶ Play this set online — free, with timer, score & rank

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 2's complement of the 8-bit binary number 00001101?

8-बिट द्विआधारी संख्या 00001101 का 2 का पूरक (2’s complement) क्या है?

  1. A.1111001011110010
  2. B.1111001111110011✓ Correct
  3. C.1001001110010011
  4. D.1111101111111011
Answer: B — 11110011
Invert the bits (11110010) and add 1, giving 11110011; it represents −13.बिट्स उलटें (11110010) और 1 जोड़ें, परिणाम 11110011; यह −13 को दर्शाता है।
Q2.Digital Electronics

Which logic gate gives output 1 only when all its inputs are 0?

कौन-सा लॉजिक गेट केवल तभी आउटपुट 1 देता है जब उसके सभी इनपुट 0 हों?

  1. A.NAND gateNAND गेट
  2. B.AND gateAND गेट
  3. C.XOR gateXOR गेट
  4. D.NOR gateNOR गेट✓ Correct
Answer: D — NOR gate
NOR means OR followed by NOT, so the output is 1 only when every input is 0.NOR का अर्थ है OR के बाद NOT, इसलिए आउटपुट केवल तभी 1 होता है जब हर इनपुट 0 हो।
Q3.Digital Electronics

A full adder has:

एक फुल एडर (Full Adder) में होते हैं:

  1. A.3 inputs and 2 outputs3 इनपुट और 2 आउटपुट✓ Correct
  2. B.2 inputs and 3 outputs2 इनपुट और 3 आउटपुट
  3. C.2 inputs and 2 outputs2 इनपुट और 2 आउटपुट
  4. D.1 input and 2 outputs1 इनपुट और 2 आउटपुट
Answer: A — 3 inputs and 2 outputs
A full adder adds A, B and carry-in (3 inputs) and produces Sum and Carry-out (2 outputs). A half adder has only 2 inputs.फुल एडर A, B और कैरी-इन (3 इनपुट) जोड़ता है और Sum तथा Carry-out (2 आउटपुट) देता है। हाफ एडर में केवल 2 इनपुट होते हैं।
Q4.Digital Electronics

In a Karnaugh map, a group of 8 adjacent 1s (an octet) eliminates how many variables?

कर्नॉफ़ मैप (Karnaugh map) में 8 आसन्न 1 का समूह (octet) कितने चरों (variables) को समाप्त करता है?

  1. A.11
  2. B.22
  3. C.33✓ Correct
  4. D.44
Answer: C — 3
Each doubling of the group size removes one variable: a pair removes 1, a quad 2, an octet 3.समूह का आकार दोगुना होने पर एक चर समाप्त होता है: pair से 1, quad से 2, octet से 3।
Q5.Digital Electronics

How many NAND gates are needed at minimum to make a NOT gate?

NOT गेट बनाने के लिए न्यूनतम कितने NAND गेट आवश्यक हैं?

  1. A.11✓ Correct
  2. B.22
  3. C.33
  4. D.44
Answer: A — 1
Tie both inputs of a single NAND gate together and it behaves exactly like a NOT gate.एक NAND गेट के दोनों इनपुट आपस में जोड़ दें तो यह बिल्कुल NOT गेट जैसा व्यवहार करता है।
Q6.Operating System

Which CPU scheduling algorithm gives the minimum average waiting time?

कौन-सा CPU शेड्यूलिंग एल्गोरिथ्म न्यूनतम औसत प्रतीक्षा समय (average waiting time) देता है?

  1. A.First Come First ServedFirst Come First Served
  2. B.Shortest Job First (SJF)Shortest Job First (SJF)✓ Correct
  3. C.Round RobinRound Robin
  4. D.Priority schedulingPriority scheduling
Answer: B — Shortest Job First (SJF)
SJF, and its preemptive form SRTF, is provably optimal for average waiting time.SJF, और उसका प्रीएम्प्टिव रूप SRTF, औसत प्रतीक्षा समय के लिए सिद्ध रूप से सर्वोत्तम है।
Q7.Operating System

Thrashing occurs when a system:

थ्रैशिंग (Thrashing) तब होती है जब कोई सिस्टम:

  1. A.Has too much free memoryबहुत अधिक खाली मेमोरी रखता है
  2. B.Runs only one process at a timeएक समय में केवल एक प्रोसेस चलाता है
  3. C.Spends most of its time handling page faults because processes have too few framesप्रोसेसों के पास फ्रेम बहुत कम होने से अधिकांश समय पेज फ़ॉल्ट संभालने में बिताता है✓ Correct
  4. D.Has a very fast CPUबहुत तेज़ CPU रखता है
Answer: C — Spends most of its time handling page faults because processes have too few frames
With too few frames per process, pages are swapped out constantly and the CPU spends its time paging instead of executing.प्रति प्रोसेस फ्रेम बहुत कम होने पर पेज बार-बार बदलते रहते हैं और CPU निष्पादन के बजाय पेजिंग में समय बिताता है।
Q8.Operating System

In process synchronisation, a mutex is best described as:

प्रक्रिया समकालन (synchronisation) में mutex का सर्वोत्तम वर्णन है:

  1. A.A counting semaphore that allows many processes in the critical sectionएक गिनती-सेमाफ़ोर जो अनेक प्रक्रियाओं को critical section में जाने देता है
  2. B.A queue used by the scheduler to hold ready processesशेड्यूलर द्वारा तैयार प्रक्रियाओं को रखने वाली एक कतार
  3. C.A table maintained by the file system to record open filesखुली फ़ाइलों का रिकॉर्ड रखने वाली file system की तालिका
  4. D.A binary locking variable that allows only one process into the critical section at a timeएक binary locking चर जो एक समय में केवल एक प्रक्रिया को critical section में प्रवेश देता है✓ Correct
Answer: D — A binary locking variable that allows only one process into the critical section at a time
A mutex (mutual exclusion lock) is a binary lock: the process that acquires it alone enters the critical section, and others must wait until it is released.Mutex (mutual exclusion lock) एक binary lock है: जो प्रक्रिया उसे प्राप्त करती है वही अकेले critical section में प्रवेश करती है, अन्य को उसके मुक्त होने तक प्रतीक्षा करनी पड़ती है।
Q9.Operating System

A binary semaphore with initial value 1 is mainly used to achieve:

प्रारंभिक मान 1 वाला बाइनरी सेमाफ़ोर (binary semaphore) मुख्यतः किसके लिए उपयोग होता है?

  1. A.Mutual exclusionपरस्पर अपवर्जन (Mutual Exclusion)✓ Correct
  2. B.Counting of available resourcesउपलब्ध संसाधनों की गिनती
  3. C.Faster disk accessतेज़ डिस्क एक्सेस
  4. D.Priority inversionप्रायोरिटी इनवर्ज़न
Answer: A — Mutual exclusion
A binary semaphore works like a lock: only one process can be inside the critical section at a time.बाइनरी सेमाफ़ोर एक ताले (lock) की तरह काम करता है: एक समय में केवल एक प्रोसेस critical section में हो सकता है।
Q10.Operating System

Which of the following is NOT a necessary condition for deadlock?

निम्नलिखित में से कौन-सी डेडलॉक (deadlock) की आवश्यक शर्त नहीं है?

  1. A.Mutual exclusionपरस्पर अपवर्जन (Mutual Exclusion)
  2. B.Preemptionप्रीएम्प्शन (Preemption)✓ Correct
  3. C.No preemptionनो प्रीएम्प्शन (No Preemption)
  4. D.Hold and waitहोल्ड एंड वेट (Hold and Wait)
Answer: B — Preemption
The four conditions are mutual exclusion, hold and wait, no preemption and circular wait. Allowing preemption actually breaks deadlock.चार शर्तें हैं — परस्पर अपवर्जन, होल्ड एंड वेट, नो प्रीएम्प्शन और वृत्ताकार प्रतीक्षा (circular wait)। प्रीएम्प्शन की अनुमति तो डेडलॉक तोड़ती है।
Q11.Operating System

The Optimal (OPT) page replacement algorithm replaces the page that:

ऑप्टिमल (OPT) पेज रिप्लेसमेंट एल्गोरिथ्म उस पेज को प्रतिस्थापित करता है जो:

  1. A.Arrived firstसबसे पहले आया था
  2. B.Was used most recentlyसबसे हाल में उपयोग हुआ था
  3. C.Will not be used for the longest time in the futureभविष्य में सबसे लंबे समय तक उपयोग नहीं होगा✓ Correct
  4. D.Is the smallestसबसे छोटा है
Answer: C — Will not be used for the longest time in the future
OPT looks ahead and evicts the page whose next use is farthest in the future; it is the theoretical benchmark for other algorithms.OPT आगे देखकर उस पेज को हटाता है जिसका अगला उपयोग भविष्य में सबसे दूर है; यह अन्य एल्गोरिथ्मों के लिए सैद्धांतिक मानक है।
Q12.Computer Organization

A cache has hit ratio 0.9, cache access time 10 ns and main-memory access time 100 ns. The effective memory access time is about:

किसी कैश का हिट अनुपात (hit ratio) 0.9, कैश एक्सेस समय 10 ns और मुख्य मेमोरी एक्सेस समय 100 ns है। प्रभावी मेमोरी एक्सेस समय लगभग होगा:

  1. A.100 ns100 ns
  2. B.55 ns55 ns
  3. C.19 ns19 ns
  4. D.20 ns20 ns✓ Correct
Answer: D — 20 ns
Effective time = 0.9×10 + 0.1×(10+100) = 9 + 11 = 20 ns. On a miss you pay both the cache lookup and the memory access.प्रभावी समय = 0.9×10 + 0.1×(10+100) = 9 + 11 = 20 ns। मिस होने पर कैश खोज और मेमोरी एक्सेस दोनों का समय लगता है।
Q13.Computer Organization

In which addressing mode is the operand itself written inside the instruction?

किस addressing mode में ऑपरेंड स्वयं निर्देश (instruction) के अंदर लिखा होता है?

  1. A.Immediate addressingImmediate addressing✓ Correct
  2. B.Direct addressingDirect addressing
  3. C.Indirect addressingIndirect addressing
  4. D.Register addressingRegister addressing
Answer: A — Immediate addressing
In immediate addressing the instruction carries the value itself, for example ADD R1, #5.Immediate addressing में निर्देश में मान स्वयं होता है, जैसे ADD R1, #5।
Q14.Computer Organization

Pipelining improves which performance measure the most?

पाइपलाइनिंग (Pipelining) किस प्रदर्शन माप को सबसे अधिक सुधारती है?

  1. A.Latency of a single instructionएकल निर्देश की विलंबता (Latency)
  2. B.Throughput (instructions completed per unit time)थ्रूपुट — प्रति इकाई समय में पूर्ण निर्देश✓ Correct
  3. C.Cache sizeकैश का आकार
  4. D.Clock voltageक्लॉक वोल्टेज
Answer: B — Throughput (instructions completed per unit time)
Pipelining overlaps the stages of different instructions, so more instructions finish per second; a single instruction still takes about the same time.पाइपलाइनिंग विभिन्न निर्देशों के चरणों को ओवरलैप करती है, जिससे प्रति सेकंड अधिक निर्देश पूरे होते हैं; एकल निर्देश का समय लगभग उतना ही रहता है।
Q15.Computer Organization

Which register holds the address of the next instruction to be executed?

कौन-सा रजिस्टर अगले निष्पादित होने वाले निर्देश का पता (address) रखता है?

  1. A.Memory Address Register (MAR)Memory Address Register (MAR)
  2. B.Memory Data Register (MDR)Memory Data Register (MDR)
  3. C.Program Counter (PC)Program Counter (PC)✓ Correct
  4. D.Instruction Register (IR)Instruction Register (IR)
Answer: C — Program Counter (PC)
The Program Counter tracks the next instruction; after a fetch it is incremented to point ahead.Program Counter अगले निर्देश को ट्रैक करता है; फ़ेच के बाद यह आगे की ओर बढ़ा दिया जाता है।
Q16.Computer Organization

DMA (Direct Memory Access) is used to:

DMA (Direct Memory Access) का उपयोग किया जाता है:

  1. A.Run programs faster inside the ALUALU के अंदर प्रोग्राम तेज़ चलाने के लिए
  2. B.Compile programsप्रोग्राम संकलित (compile) करने के लिए
  3. C.Increase the cache sizeकैश का आकार बढ़ाने के लिए
  4. D.Transfer data between I/O devices and main memory with minimal CPU involvementन्यूनतम CPU भागीदारी के साथ I/O डिवाइस और मुख्य मेमोरी के बीच डेटा स्थानांतरित करने के लिए✓ Correct
Answer: D — Transfer data between I/O devices and main memory with minimal CPU involvement
The DMA controller moves blocks of data directly between peripherals and memory; the CPU sets it up and is interrupted only when the transfer completes.DMA कंट्रोलर डेटा के ब्लॉक सीधे पेरिफ़ेरल और मेमोरी के बीच ले जाता है; CPU केवल सेटअप करता है और स्थानांतरण पूरा होने पर ही इंटरप्ट पाता है।
Q17.Data Structures

What is the worst-case time complexity of searching for a key in a balanced binary search tree with n nodes?

n nodes वाले संतुलित binary search tree में किसी key को खोजने की worst-case समय जटिलता क्या है?

  1. A.O(log n)O(log n)✓ Correct
  2. B.O(n)O(n)
  3. C.O(n log n)O(n log n)
  4. D.O(1)O(1)
Answer: A — O(log n)
Balancing keeps the height of the tree at O(log n), and search follows a single root-to-leaf path, so its worst case is O(log n).संतुलन से tree की ऊँचाई O(log n) रहती है और खोज एक ही root-to-leaf पथ पर होती है, इसलिए worst case O(log n) है।
Q18.Data Structures

Function calls (including recursion) in a running program are managed using a:

चल रहे प्रोग्राम में फ़ंक्शन कॉल (recursion सहित) किसके द्वारा प्रबंधित होते हैं?

  1. A.QueueQueue
  2. B.StackStack✓ Correct
  3. C.GraphGraph
  4. D.Hash tableHash table
Answer: B — Stack
Each call pushes an activation record and each return pops one, in LIFO order — that is a stack.हर कॉल एक activation record push करती है और हर return एक pop करता है, LIFO क्रम में — अर्थात Stack।
Q19.Data Structures

Which traversal of a Binary Search Tree prints the keys in ascending order?

Binary Search Tree की कौन-सी traversal कुंजियों (keys) को आरोही क्रम में मुद्रित करती है?

  1. A.PreorderPreorder
  2. B.PostorderPostorder
  3. C.InorderInorder✓ Correct
  4. D.Level orderLevel order
Answer: C — Inorder
Inorder traversal (left subtree, root, right subtree) visits the keys of a BST in sorted order.Inorder traversal (बायाँ subtree, root, दायाँ subtree) BST की कुंजियों को क्रमबद्ध क्रम में भ्रमण करती है।
Q20.Data Structures

What is the average-case time complexity of Quick Sort?

Quick Sort की average-case समय जटिलता क्या है?

  1. A.O(n²)O(n²)
  2. B.O(log n)O(log n)
  3. C.O(n)O(n)
  4. D.O(n log n)O(n log n)✓ Correct
Answer: D — O(n log n)
With reasonably balanced partitions Quick Sort averages O(n log n). The worst case, for example a poor pivot choice on sorted data, is O(n²).संतुलित विभाजन होने पर Quick Sort औसतन O(n log n) लेता है। Worst case, जैसे क्रमबद्ध डेटा पर खराब pivot चुनाव, O(n²) है।
Q21.Data Structures

In hashing, resolving collisions by keeping the colliding keys in a linked list at the same index is called:

हैशिंग में, टकराने वाली कुंजियों को उसी index पर linked list में रखने की विधि कहलाती है:

  1. A.ChainingChaining✓ Correct
  2. B.Linear probingLinear probing
  3. C.Quadratic probingQuadratic probing
  4. D.Double hashingDouble hashing
Answer: A — Chaining
Chaining keeps a list at each bucket; the probing methods instead search for another empty slot in the table.Chaining में प्रत्येक bucket पर एक list रहती है; probing विधियाँ इसके बजाय table में कोई अन्य खाली slot खोजती हैं।
Q22.DBMS

Which normal form removes transitive dependencies?

कौन-सा Normal Form सकर्मक निर्भरता (transitive dependency) को हटाता है?

  1. A.1NF1NF
  2. B.3NF3NF✓ Correct
  3. C.2NF2NF
  4. D.BCNFBCNF
Answer: B — 3NF
2NF removes partial dependency on part of a composite key; 3NF goes one step further and removes transitive dependency.2NF composite key के किसी भाग पर आंशिक निर्भरता हटाता है; 3NF एक कदम आगे बढ़कर transitive dependency हटाता है।
Q23.DBMS

Which SQL command quickly removes all rows of a table while keeping the table structure?

कौन-सा SQL कमांड table की संरचना बनाए रखते हुए उसकी सभी rows शीघ्रता से हटाता है?

  1. A.DELETEDELETE
  2. B.DROPDROP
  3. C.TRUNCATETRUNCATE✓ Correct
  4. D.ERASEERASE
Answer: C — TRUNCATE
TRUNCATE empties the table but keeps its structure. DROP removes the table itself, while DELETE removes rows one by one and can use a WHERE clause.TRUNCATE table को खाली करता है पर संरचना बनाए रखता है। DROP table को ही हटा देता है, जबकि DELETE rows को एक-एक करके हटाता है और WHERE clause का उपयोग कर सकता है।
Q24.DBMS

In the ACID properties of a transaction, the letter I stands for:

ट्रांज़ैक्शन के ACID गुणों में अक्षर I का अर्थ है:

  1. A.IntegrityIntegrity
  2. B.InheritanceInheritance
  3. C.IndexingIndexing
  4. D.IsolationIsolation✓ Correct
Answer: D — Isolation
ACID stands for Atomicity, Consistency, Isolation and Durability.ACID का अर्थ है Atomicity, Consistency, Isolation और Durability।
Q25.DBMS

A minimal superkey (a superkey containing no redundant attribute) is called a:

न्यूनतम superkey (ऐसी superkey जिसमें कोई अनावश्यक attribute न हो) कहलाती है:

  1. A.Candidate keyCandidate key✓ Correct
  2. B.Primary keyPrimary key
  3. C.Foreign keyForeign key
  4. D.Composite keyComposite key
Answer: A — Candidate key
Candidate keys are the minimal superkeys. The one chosen becomes the primary key; the others are alternate keys.Candidate keys न्यूनतम superkeys होती हैं। चुनी गई कुंजी primary key बन जाती है; अन्य alternate keys कहलाती हैं।
Q26.DBMS

Which data structure is most commonly used for database indexes?

डेटाबेस indexes के लिए सबसे अधिक उपयोग की जाने वाली data structure कौन-सी है?

  1. A.Only a hash tableकेवल hash table
  2. B.B+ treeB+ tree✓ Correct
  3. C.Linked listLinked list
  4. D.HeapHeap
Answer: B — B+ tree
B+ trees keep keys sorted and balanced and link leaf pages in order, which makes them the standard structure for database indexes.B+ tree कुंजियों को क्रमबद्ध और संतुलित रखता है और leaf pages को क्रम में जोड़ता है, इसलिए यह डेटाबेस indexes की मानक संरचना है।
Q27.Computer Networks

How many usable host addresses are there in a /26 subnet?

एक /26 subnet में कितने usable host address होते हैं?

  1. A.3030
  2. B.6464
  3. C.6262✓ Correct
  4. D.126126
Answer: C — 62
A /26 leaves 32−26 = 6 host bits, giving 2⁶ = 64 addresses; excluding the network and broadcast addresses leaves 62 usable hosts./26 में 32−26 = 6 host bits बचते हैं, अर्थात 2⁶ = 64 address; network और broadcast address घटाने पर 62 usable host बचते हैं।
Q28.Computer Networks

DNS normally uses which port number?

DNS सामान्यतः किस port number का उपयोग करता है?

  1. A.110110
  2. B.8080
  3. C.2525
  4. D.5353✓ Correct
Answer: D — 53
DNS uses port 53 (UDP for queries, TCP for large responses). For comparison: 80 is HTTP, 25 is SMTP and 110 is POP3.DNS port 53 का उपयोग करता है (क्वेरी के लिए UDP, बड़े उत्तरों के लिए TCP)। तुलना के लिए: 80 HTTP, 25 SMTP और 110 POP3 है।
Q29.Computer Networks

Routing of packets between different networks is the responsibility of which OSI layer?

विभिन्न networks के बीच packets की routing किस OSI layer की ज़िम्मेदारी है?

  1. A.Network layerNetwork layer✓ Correct
  2. B.Data Link layerData Link layer
  3. C.Transport layerTransport layer
  4. D.Session layerSession layer
Answer: A — Network layer
The Network layer (IP) routes packets across networks. The Data Link layer only moves frames within a single network segment.Network layer (IP) packets को networks के पार route करती है। Data Link layer केवल एक network segment के भीतर frames ले जाती है।
Q30.Computer Networks

Which statement about TCP is correct?

TCP के बारे में कौन-सा कथन सही है?

  1. A.It is connectionlessयह connectionless है
  2. B.It provides reliable, connection-oriented deliveryयह विश्वसनीय, connection-oriented delivery प्रदान करता है✓ Correct
  3. C.It never retransmits lost dataयह खोया डेटा कभी पुनः नहीं भेजता
  4. D.It is used only inside LANsयह केवल LAN के अंदर उपयोग होता है
Answer: B — It provides reliable, connection-oriented delivery
TCP first sets up a connection, numbers the bytes, acknowledges receipt and retransmits losses, giving reliable delivery. UDP is the connectionless protocol.TCP पहले connection स्थापित करता है, bytes को क्रमांकित करता है, प्राप्ति की पुष्टि करता है और हानि पर पुनः भेजता है — इससे विश्वसनीय delivery मिलती है। UDP connectionless protocol है।
Q31.Computer Networks

Which of the following is a private IP address?

निम्नलिखित में से कौन-सा private IP address है?

  1. A.8.8.8.88.8.8.8
  2. B.172.217.14.206172.217.14.206
  3. C.192.168.1.10192.168.1.10✓ Correct
  4. D.11.0.0.511.0.0.5
Answer: C — 192.168.1.10
192.168.0.0 to 192.168.255.255 is private address space (RFC 1918). Note that 172.217.x.x is public; the private 172 range is only 172.16 to 172.31.192.168.0.0 से 192.168.255.255 तक private address space है (RFC 1918)। ध्यान दें कि 172.217.x.x public है; private 172 range केवल 172.16 से 172.31 तक है।
Q32.Software Engineering

When requirements keep changing during development, which SDLC model fits best?

जब विकास के दौरान requirements बदलती रहें, तो कौन-सा SDLC model सबसे उपयुक्त है?

  1. A.Waterfall modelWaterfall model
  2. B.V-modelV-model
  3. C.Big Bang modelBig Bang model
  4. D.Agile modelAgile model✓ Correct
Answer: D — Agile model
Agile develops in short iterations and welcomes changing requirements. The Waterfall model freezes requirements at the start.Agile छोटी iterations में विकास करता है और बदलती requirements का स्वागत करता है। Waterfall model requirements को प्रारंभ में ही स्थिर कर देता है।
Q33.Software Engineering

Black-box testing is mainly concerned with:

Black-box testing मुख्यतः किससे संबंधित है?

  1. A.Functional behaviour — inputs and expected outputsकार्यात्मक व्यवहार — inputs और अपेक्षित outputs✓ Correct
  2. B.Internal code pathsआंतरिक code paths
  3. C.Memory usage profilingMemory usage profiling
  4. D.Cyclomatic complexityCyclomatic complexity
Answer: A — Functional behaviour — inputs and expected outputs
Black-box testing checks what the software does, not how it is coded. Code-path coverage belongs to white-box testing.Black-box testing जाँचता है कि software क्या करता है, न कि वह कैसे लिखा गया है। Code-path coverage white-box testing का क्षेत्र है।
Q34.Software Engineering

Good modular design aims for:

अच्छा modular design किसका लक्ष्य रखता है?

  1. A.High coupling and low cohesionHigh coupling और low cohesion
  2. B.Low coupling and high cohesionLow coupling और high cohesion✓ Correct
  3. C.High coupling and high cohesionHigh coupling और high cohesion
  4. D.Low coupling and low cohesionLow coupling और low cohesion
Answer: B — Low coupling and high cohesion
Modules should depend on each other as little as possible (low coupling) and each module should do one focused job well (high cohesion).Modules को एक-दूसरे पर यथासंभव कम निर्भर होना चाहिए (low coupling) और प्रत्येक module एक केंद्रित कार्य अच्छी तरह करे (high cohesion)।
Q35.Web Technology

Which HTML tag creates the largest heading?

कौन-सा HTML tag सबसे बड़ी heading बनाता है?

  1. A.<head><head>
  2. B.<h6><h6>
  3. C.<h1><h1>✓ Correct
  4. D.<heading><heading>
Answer: C — <h1>
Headings run from <h1>, the largest, to <h6>, the smallest. The <head> element holds page metadata, not a visible heading.Headings <h1> (सबसे बड़ी) से <h6> (सबसे छोटी) तक होती हैं। <head> element में page की metadata रहती है, कोई दृश्य heading नहीं।
Q36.Web Technology

Which CSS property sets the colour of text?

कौन-सी CSS property text का रंग (colour) निर्धारित करती है?

  1. A.text-colortext-color
  2. B.font-colorfont-color
  3. C.text-styletext-style
  4. D.colorcolor✓ Correct
Answer: D — color
The property is simply color. The background is set with background-color.Property का नाम केवल color है। पृष्ठभूमि के लिए background-color का उपयोग होता है।
Q37.Web Technology

Which browser storage keeps key-value data available even after the browser is closed?

कौन-सा browser storage key-value डेटा को browser बंद करने के बाद भी उपलब्ध रखता है?

  1. A.localStoragelocalStorage✓ Correct
  2. B.sessionStoragesessionStorage
  3. C.A one-day cookieएक-दिन की cookie
  4. D.URL parametersURL parameters
Answer: A — localStorage
localStorage keeps data per origin until it is cleared. sessionStorage is erased when the tab is closed.localStorage प्रति origin डेटा तब तक बनाए रखता है जब तक उसे साफ़ न किया जाए। sessionStorage tab बंद होते ही मिट जाता है।
Q38.IoT & AI

Which lightweight publish-subscribe protocol is widely used in IoT systems?

IoT प्रणालियों में व्यापक रूप से उपयोग होने वाला हल्का publish-subscribe protocol कौन-सा है?

  1. A.HTTPHTTP
  2. B.MQTTMQTT✓ Correct
  3. C.FTPFTP
  4. D.SMTPSMTP
Answer: B — MQTT
MQTT is designed for low-bandwidth, low-power devices and follows a publish-subscribe model through a broker.MQTT कम bandwidth और कम शक्ति (power) वाले devices के लिए बनाया गया है और broker के माध्यम से publish-subscribe model अपनाता है।
Q39.IoT & AI

Learning patterns from labelled examples (given input-output pairs) is called:

लेबल किए गए उदाहरणों (दिए गए input-output जोड़ों) से पैटर्न सीखना कहलाता है:

  1. A.Reinforcement learningReinforcement learning
  2. B.Unsupervised learningUnsupervised learning
  3. C.Supervised learningSupervised learning✓ Correct
  4. D.ClusteringClustering
Answer: C — Supervised learning
When the training data includes the correct answers as labels, the learning is supervised. Clustering is a form of unsupervised learning.जब training data में सही उत्तर labels के रूप में दिए हों, तो यह supervised learning है। Clustering, unsupervised learning का एक रूप है।
Q40.IoT & AI

Which of these sensors is used to measure temperature?

इनमें से कौन-सा sensor तापमान मापने के लिए उपयोग किया जाता है?

  1. A.LDRLDR
  2. B.PIR sensorPIR sensor
  3. C.Servo motorServo motor
  4. D.LM35LM35✓ Correct
Answer: D — LM35
The LM35 is a temperature-sensor IC. An LDR senses light, a PIR sensor detects motion, and a servo motor is an actuator, not a sensor.LM35 एक temperature-sensor IC है। LDR प्रकाश मापता है, PIR sensor गति का पता लगाता है, और servo motor एक actuator है, sensor नहीं।
▶ Play this set online — free, with timer, score & rank
← Set 1All BPSC TRE practice setsSet 3 →BPSC TRE exam guide →

Get daily exam updates on Telegram

Join the SarkariManzil channel — new jobs, results, admit cards and daily current affairs, first on Telegram. Free.

Join SarkariManzil on Telegram ↗