SarkariManzil
BPSC · TRE Teacher Recruitment

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

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.Python Programming

What will be the output of the following Python code? total = 0 for i in range(1, 10, 2): if i % 3 == 0: continue total += i print(total)

निम्नलिखित Python कोड का आउटपुट क्या होगा? total = 0 for i in range(1, 10, 2): if i % 3 == 0: continue total += i print(total)

  1. A.1616
  2. B.1313✓ Correct
  3. C.2525
  4. D.1010
Answer: B — 13
range(1, 10, 2) gives 1, 3, 5, 7, 9. Multiples of 3 (3 and 9) are skipped by continue, so total = 1 + 5 + 7 = 13.range(1, 10, 2) से 1, 3, 5, 7, 9 मिलते हैं। 3 के गुणज (3 और 9) continue से छूट जाते हैं, इसलिए total = 1 + 5 + 7 = 13 होगा।
Q2.Python Programming

Consider the following code. What is printed? def add_item(x, bag=[]): bag.append(x) return bag print(add_item(1)) print(add_item(2))

निम्नलिखित कोड पर विचार करें। क्या प्रिंट होगा? def add_item(x, bag=[]): bag.append(x) return bag print(add_item(1)) print(add_item(2))

  1. A.[1] and [2][1] और [2]
  2. B.[1] and [1, 2][1] और [1, 2]✓ Correct
  3. C.Errorत्रुटि (Error)
  4. D.[2] and [2, 1][2] और [2, 1]
Answer: B — [1] and [1, 2]
A mutable default argument is created once and shared across calls, so the same list keeps growing: first [1], then [1, 2].Mutable default argument केवल एक बार बनता है और सभी calls में साझा होता है, इसलिए वही list बढ़ती रहती है — पहले [1], फिर [1, 2]।
Q3.Python Programming

What is the output of this recursive function? def f(n): if n <= 1: return 1 return n * f(n - 2) print(f(6))

इस recursive function का आउटपुट क्या है? def f(n): if n <= 1: return 1 return n * f(n - 2) print(f(6))

  1. A.720720
  2. B.120120
  3. C.4848✓ Correct
  4. D.2424
Answer: C — 48
f(6) = 6 × f(4) = 6 × 4 × f(2) = 6 × 4 × 2 × f(0) = 6 × 4 × 2 × 1 = 48.f(6) = 6 × f(4) = 6 × 4 × f(2) = 6 × 4 × 2 × f(0) = 6 × 4 × 2 × 1 = 48।
Q4.Python Programming

What does sorted({3, 1, 4, 1, 5}) return?

sorted({3, 1, 4, 1, 5}) क्या लौटाता है?

  1. A.[3, 1, 4, 1, 5][3, 1, 4, 1, 5]
  2. B.[1, 3, 4, 5][1, 3, 4, 5]✓ Correct
  3. C.(1, 3, 4, 5)(1, 3, 4, 5)
  4. D.{1, 3, 4, 5}{1, 3, 4, 5}
Answer: B — [1, 3, 4, 5]
The set removes the duplicate 1, and sorted() always returns a new list in ascending order.Set दोहराए गए 1 को हटा देता है, और sorted() हमेशा बढ़ते क्रम में नई list लौटाता है।
Q5.Python Programming

What is the output of the following code? with open('data.txt', 'w') as f: f.write('Hello') print(f.tell())

निम्नलिखित कोड का आउटपुट क्या है? with open('data.txt', 'w') as f: f.write('Hello') print(f.tell())

  1. A.00
  2. B.44
  3. C.55✓ Correct
  4. D.NoneNone
Answer: C — 5
'Hello' has 5 characters, so after writing, the file pointer is at position 5. The with block also closes the file automatically.'Hello' में 5 अक्षर हैं, इसलिए लिखने के बाद file pointer 5वें स्थान पर होगा। with block file को अपने आप बंद भी कर देता है।
Q6.Python Programming

Which of the following statements raises a TypeError?

निम्नलिखित में से कौन-सा कथन TypeError उत्पन्न करता है?

  1. A.L = [1, 2]; L.append(3)L = [1, 2]; L.append(3)
  2. B.t = (1, 2, 3); t[0] = 9t = (1, 2, 3); t[0] = 9✓ Correct
  3. C.d = {}; d['a'] = 1d = {}; d['a'] = 1
  4. D.s = 'abc'; s.upper()s = 'abc'; s.upper()
Answer: B — t = (1, 2, 3); t[0] = 9
Tuples are immutable, so assigning to t[0] raises TypeError. The other three statements are all legal.Tuple immutable होता है, इसलिए t[0] में मान रखने पर TypeError आता है। बाकी तीनों कथन वैध हैं।
Q7.Python Programming

If s = "PYTHON", what is the value of s[1:5]?

यदि s = "PYTHON" है, तो s[1:5] का मान क्या होगा?

  1. A."YTHO""YTHO"✓ Correct
  2. B."YTHON""YTHON"
  3. C."PYTH""PYTH"
  4. D."THON""THON"
Answer: A — "YTHO"
Slicing takes indices 1, 2, 3, 4 (stop index excluded): Y, T, H, O → "YTHO".Slicing में index 1, 2, 3, 4 लिए जाते हैं (अंतिम index छूट जाता है): Y, T, H, O → "YTHO"।
Q8.Python Programming

What is the result of the following expression? list(map(lambda x: x**2, filter(lambda x: x % 2 == 0, range(6))))

निम्नलिखित expression का परिणाम क्या है? list(map(lambda x: x**2, filter(lambda x: x % 2 == 0, range(6))))

  1. A.[0, 4, 16][0, 4, 16]✓ Correct
  2. B.[0, 1, 4, 9, 16, 25][0, 1, 4, 9, 16, 25]
  3. C.[1, 9, 25][1, 9, 25]
  4. D.[4, 16][4, 16]
Answer: A — [0, 4, 16]
filter keeps the even numbers 0, 2, 4 from range(6); map squares each: 0, 4, 16.filter, range(6) से सम संख्याएँ 0, 2, 4 रखता है; map प्रत्येक का वर्ग करता है: 0, 4, 16।
Q9.Python Programming

What is printed by the following code? try: x = int('abc') except ValueError: x = 10 except Exception: x = 20 finally: x += 1 print(x)

निम्नलिखित कोड से क्या प्रिंट होगा? try: x = int('abc') except ValueError: x = 10 except Exception: x = 20 finally: x += 1 print(x)

  1. A.2020
  2. B.2121
  3. C.1010
  4. D.1111✓ Correct
Answer: D — 11
int('abc') raises ValueError, so x = 10; the finally block always runs, making x = 11.int('abc') से ValueError आता है, इसलिए x = 10 होता है; finally block हमेशा चलता है, जिससे x = 11 हो जाता है।
Q10.Python Programming

If L = [10, 20, 30, 40, 50], what is L[::-2]?

यदि L = [10, 20, 30, 40, 50] है, तो L[::-2] क्या होगा?

  1. A.[50, 40, 30, 20, 10][50, 40, 30, 20, 10]
  2. B.[10, 30, 50][10, 30, 50]
  3. C.[50, 30, 10][50, 30, 10]✓ Correct
  4. D.[40, 20][40, 20]
Answer: C — [50, 30, 10]
Step −2 traverses the list backwards taking every second element: 50, 30, 10.Step −2 list को पीछे से हर दूसरा element लेते हुए चलता है: 50, 30, 10।
Q11.Data Structures

What is the result of evaluating the postfix expression 5 3 2 * + ?

Postfix expression 5 3 2 * + का मान क्या होगा?

  1. A.1616
  2. B.1111✓ Correct
  3. C.1313
  4. D.1010
Answer: B — 11
Push 5, 3, 2; * pops 3 and 2 → 6; + pops 5 and 6 → 11. So 5 + (3 × 2) = 11.5, 3, 2 push होते हैं; * से 3 और 2 निकलकर 6 बनता है; + से 5 और 6 निकलकर 11 बनता है। अर्थात 5 + (3 × 2) = 11।
Q12.Data Structures

A queue is implemented using a Python list with enqueue as q.append(x) and dequeue as q.pop(0). What is the time complexity of the dequeue operation?

एक queue को Python list से बनाया गया है — enqueue के लिए q.append(x) और dequeue के लिए q.pop(0)। Dequeue operation की time complexity क्या है?

  1. A.O(1)O(1)
  2. B.O(n)O(n)✓ Correct
  3. C.O(log n)O(log n)
  4. D.O(n²)O(n²)
Answer: B — O(n)
pop(0) removes the first element, so all remaining n−1 elements must be shifted one position left — O(n).pop(0) पहला element हटाता है, इसलिए बचे हुए सभी elements को एक स्थान खिसकाना पड़ता है — O(n)।
Q13.Data Structures

In a singly linked list where only the head pointer is maintained, what is the time complexity of deleting the first node?

Singly linked list में जहाँ केवल head pointer रखा गया है, पहले node को delete करने की time complexity क्या है?

  1. A.O(1)O(1)✓ Correct
  2. B.O(n)O(n)
  3. C.O(log n)O(log n)
  4. D.O(n²)O(n²)
Answer: A — O(1)
Deleting the head only requires moving the head pointer to the second node — a constant-time operation.Head को हटाने के लिए केवल head pointer को दूसरे node पर ले जाना होता है — यह constant-time operation है।
Q14.Data Structures

A binary search tree is built by inserting 50, 30, 70, 20, 40 in that order. What is its inorder traversal?

50, 30, 70, 20, 40 को इसी क्रम में insert करके binary search tree बनाया गया। इसका inorder traversal क्या होगा?

  1. A.50, 30, 20, 40, 7050, 30, 20, 40, 70
  2. B.20, 30, 40, 50, 7020, 30, 40, 50, 70✓ Correct
  3. C.20, 40, 30, 70, 5020, 40, 30, 70, 50
  4. D.50, 70, 30, 40, 2050, 70, 30, 40, 20
Answer: B — 20, 30, 40, 50, 70
Inorder traversal of any BST always visits keys in ascending sorted order: 20, 30, 40, 50, 70.किसी भी BST का inorder traversal हमेशा keys को बढ़ते क्रम में देता है: 20, 30, 40, 50, 70।
Q15.Data Structures

Which data structure is naturally used to implement Breadth-First Search (BFS) of a graph?

Graph के Breadth-First Search (BFS) को लागू करने के लिए स्वाभाविक रूप से कौन-सी data structure प्रयोग होती है?

  1. A.StackStack
  2. B.QueueQueue✓ Correct
  3. C.Priority queuePriority queue
  4. D.Linked listLinked list
Answer: B — Queue
BFS explores vertices level by level in FIFO order, which is exactly what a queue provides. DFS, by contrast, uses a stack.BFS vertices को level-by-level FIFO क्रम में देखता है, जो queue की विशेषता है। इसके विपरीत DFS में stack प्रयोग होता है।
Q16.Data Structures

What is the best-case time complexity of insertion sort on an already sorted array of n elements?

पहले से sorted n elements वाले array पर insertion sort की best-case time complexity क्या है?

  1. A.O(n²)O(n²)
  2. B.O(n log n)O(n log n)
  3. C.O(n)O(n)✓ Correct
  4. D.O(log n)O(log n)
Answer: C — O(n)
On a sorted array, each new element is compared only once with its predecessor and never shifts, so total work is O(n).Sorted array में प्रत्येक नया element केवल एक बार पिछले element से तुलना होता है और कभी खिसकता नहीं, इसलिए कुल कार्य O(n) होता है।
Q17.Data Structures

Binary search is applied to a sorted array of 1024 elements. What is the maximum number of comparisons needed in the worst case?

1024 elements वाले sorted array पर binary search लगाया गया। Worst case में अधिकतम कितनी तुलनाएँ (comparisons) चाहिए होंगी?

  1. A.10241024
  2. B.512512
  3. C.3232
  4. D.1010✓ Correct
Answer: D — 10
Binary search halves the search space each step, so worst-case comparisons ≈ log₂(1024) = 10.Binary search हर चरण में search space को आधा करता है, इसलिए worst-case तुलनाएँ ≈ log₂(1024) = 10 होंगी।
Q18.Data Structures

In a max-heap, where is the largest element always found?

Max-heap में सबसे बड़ा element हमेशा कहाँ मिलता है?

  1. A.At the rootRoot पर✓ Correct
  2. B.At the leftmost leafसबसे बाएँ leaf पर
  3. C.At the rightmost leafसबसे दाएँ leaf पर
  4. D.At any leafकिसी भी leaf पर
Answer: A — At the root
The heap property of a max-heap guarantees every parent is ≥ its children, so the maximum sits at the root.Max-heap के गुण के अनुसार प्रत्येक parent अपने children से बड़ा या बराबर होता है, इसलिए सबसे बड़ा element root पर होता है।
Q19.DBMS

Which statement about keys in a relational table is TRUE?

Relational table की keys के बारे में कौन-सा कथन सत्य है?

  1. A.A table can have only one candidate keyएक table में केवल एक candidate key हो सकती है
  2. B.A table can have many candidate keys but only one primary keyएक table में कई candidate keys हो सकती हैं, लेकिन primary key केवल एक✓ Correct
  3. C.A primary key can contain NULL valuesPrimary key में NULL मान हो सकते हैं
  4. D.Every candidate key must be a foreign keyप्रत्येक candidate key foreign key होनी चाहिए
Answer: B — A table can have many candidate keys but only one primary key
All minimal unique identifiers are candidate keys, but exactly one is chosen as the primary key; a primary key can never be NULL.सभी न्यूनतम unique identifier candidate keys होते हैं, लेकिन उनमें से ठीक एक को primary key चुना जाता है; primary key में NULL कभी नहीं हो सकता।
Q20.DBMS

A table has a composite primary key (RollNo, SubjectCode) and the attribute TeacherName depends only on SubjectCode. Which normal form is violated?

एक table की composite primary key (RollNo, SubjectCode) है और attribute TeacherName केवल SubjectCode पर निर्भर करता है। कौन-सा normal form उल्लंघित हो रहा है?

  1. A.1NF1NF
  2. B.2NF2NF✓ Correct
  3. C.3NF3NF
  4. D.BCNFBCNF
Answer: B — 2NF
A non-key attribute depending on only part of the composite key is a partial dependency, which violates 2NF.Non-key attribute का composite key के केवल एक भाग पर निर्भर होना partial dependency कहलाता है, जो 2NF का उल्लंघन है।
Q21.DBMS

What does the HAVING clause do in the query below? SELECT dept, COUNT(*) FROM emp GROUP BY dept HAVING COUNT(*) > 2;

नीचे दी गई query में HAVING clause क्या करता है? SELECT dept, COUNT(*) FROM emp GROUP BY dept HAVING COUNT(*) > 2;

  1. A.Filters individual rows before groupingGrouping से पहले अलग-अलग rows को छाँटता है
  2. B.Filters groups after groupingGrouping के बाद groups को छाँटता है✓ Correct
  3. C.Sorts the departmentsDepartments को क्रमबद्ध करता है
  4. D.Joins two tablesदो tables को जोड़ता है
Answer: B — Filters groups after grouping
WHERE filters rows before grouping; HAVING filters the groups produced by GROUP BY — here it keeps only departments with more than 2 employees.WHERE grouping से पहले rows को छाँटता है; HAVING, GROUP BY से बने groups को छाँटता है — यहाँ केवल वही departments रखे जाएँगे जिनमें 2 से अधिक कर्मचारी हैं।
Q22.DBMS

In ACID properties of transactions, which property guarantees that a transaction executes fully or not at all?

Transactions के ACID गुणों में कौन-सा गुण यह सुनिश्चित करता है कि transaction या तो पूरी होगी या बिल्कुल नहीं होगी?

  1. A.ConsistencyConsistency (संगति)
  2. B.IsolationIsolation (पृथक्करण)
  3. C.DurabilityDurability (स्थायित्व)
  4. D.AtomicityAtomicity (परमाणुकता)✓ Correct
Answer: D — Atomicity
Atomicity treats the transaction as one indivisible unit — all operations succeed or all are rolled back.Atomicity transaction को एक अविभाज्य इकाई मानती है — या तो सभी operations सफल होंगे या सभी वापस (rollback) हो जाएँगे।
Q23.DBMS

In an ER model, a many-to-many relationship between Student and Course is implemented in a relational database as:

ER model में Student और Course के बीच many-to-many relationship को relational database में कैसे लागू किया जाता है?

  1. A.By adding a foreign key in StudentStudent में foreign key जोड़कर
  2. B.By adding a foreign key in CourseCourse में foreign key जोड़कर
  3. C.By creating a separate junction table with foreign keys to bothदोनों की foreign keys वाली अलग junction table बनाकर✓ Correct
  4. D.It cannot be implementedइसे लागू नहीं किया जा सकता
Answer: C — By creating a separate junction table with foreign keys to both
A many-to-many relationship needs an associative (junction) table holding the primary keys of both entities as foreign keys.Many-to-many relationship के लिए associative (junction) table चाहिए होती है, जिसमें दोनों entities की primary keys foreign keys के रूप में रहती हैं।
Q24.DBMS

A FOREIGN KEY constraint on a column primarily ensures:

किसी column पर FOREIGN KEY constraint मुख्य रूप से क्या सुनिश्चित करता है?

  1. A.Values are uniqueमान unique होंगे
  2. B.Values must exist as primary key values in the referenced tableमान referenced table की primary key में मौजूद होने चाहिए✓ Correct
  3. C.Values cannot be updatedमान update नहीं किए जा सकते
  4. D.The column is indexed automatically in all DBMSसभी DBMS में column अपने आप indexed हो जाता है
Answer: B — Values must exist as primary key values in the referenced table
The foreign key enforces referential integrity — every value must match an existing primary key in the parent table (or be NULL).Foreign key referential integrity लागू करता है — प्रत्येक मान parent table की मौजूदा primary key से मेल खाना चाहिए (या NULL होना चाहिए)।
Q25.DBMS

A table students(name) contains: Aman, Ravi, Sana, Kapil. Which rows are returned by SELECT name FROM students WHERE name LIKE '_a%'; ?

students(name) table में हैं: Aman, Ravi, Sana, Kapil। SELECT name FROM students WHERE name LIKE '_a%'; कौन-सी rows लौटाएगा?

  1. A.AmanAman
  2. B.Ravi, Sana, KapilRavi, Sana, Kapil✓ Correct
  3. C.Aman, RaviAman, Ravi
  4. D.Sana onlyकेवल Sana
Answer: B — Ravi, Sana, Kapil
'_a%' means any first character, 'a' as the second character, then anything — matching Ravi, Sana and Kapil, but not Aman (whose second letter is 'm').'_a%' का अर्थ है — पहला कोई भी अक्षर, दूसरा 'a', फिर कुछ भी — यह Ravi, Sana और Kapil से मेल खाता है, लेकिन Aman से नहीं (जिसका दूसरा अक्षर 'm' है)।
Q26.Computer Networks

Which device operates at the data link layer and forwards frames on the basis of MAC addresses?

कौन-सा उपकरण data link layer पर कार्य करता है और MAC पतों के आधार पर frames को अग्रेषित करता है?

  1. A.Repeaterरिपीटर
  2. B.Switchस्विच✓ Correct
  3. C.Routerराउटर
  4. D.Modemमॉडेम
Answer: B — Switch
A switch works at Layer 2 (data link) and uses the MAC address table to forward frames only to the port where the destination device is connected.स्विच परत 2 (data link) पर कार्य करता है और MAC पता तालिका का उपयोग करके frames को केवल उसी port पर भेजता है जहाँ गंतव्य उपकरण जुड़ा है।
Q27.Computer Networks

How many usable host addresses does a /24 subnet provide (excluding the network and broadcast addresses)?

एक /24 subnet कितने उपयोग-योग्य host पते देता है (network और broadcast पतों को छोड़कर)?

  1. A.256256
  2. B.254254✓ Correct
  3. C.252252
  4. D.128128
Answer: B — 254
A /24 leaves 8 host bits, giving 2^8 = 256 addresses; subtracting the network and broadcast addresses leaves 254 usable host addresses./24 में 8 host bits बचते हैं, अर्थात 2^8 = 256 पते; network और broadcast पते घटाने पर 254 उपयोग-योग्य host पते मिलते हैं।
Q28.Computer Networks

Which protocol is connectionless and does NOT guarantee reliable delivery of data?

कौन-सा protocol connectionless है और data की विश्वसनीय delivery की गारंटी नहीं देता?

  1. A.TCPTCP
  2. B.UDPUDP✓ Correct
  3. C.HTTPHTTP
  4. D.FTPFTP
Answer: B — UDP
UDP sends datagrams without establishing a connection and without acknowledgements or retransmission, unlike TCP.UDP बिना connection स्थापित किए datagrams भेजता है — इसमें acknowledgement या retransmission नहीं होता, जबकि TCP में होता है।
Q29.Computer Networks

A MAC address operates at the Data Link layer while an IP address operates at the:

MAC address Data Link layer पर काम करता है, जबकि IP address काम करता है:

  1. A.Physical layerPhysical layer पर
  2. B.Network layerNetwork layer पर✓ Correct
  3. C.Transport layerTransport layer पर
  4. D.Application layerApplication layer पर
Answer: B — Network layer
MAC addresses are physical/hardware addresses used for delivery within a LAN (Data Link, Layer 2); IP addresses are logical addresses used for routing across networks (Network, Layer 3).MAC address LAN के भीतर delivery के लिए hardware address है (Data Link, Layer 2); IP address networks के बीच routing के लिए logical address है (Network, Layer 3)।
Q30.Computer Networks

The network 192.168.10.0/24 is divided into /28 subnets. How many such subnets are created?

192.168.10.0/24 network को /28 subnets में बाँटा गया। ऐसे कितने subnets बनेंगे?

  1. A.44
  2. B.88
  3. C.1616✓ Correct
  4. D.3232
Answer: C — 16
Borrowing 28 − 24 = 4 bits gives 2⁴ = 16 subnets, each with 14 usable hosts.28 − 24 = 4 bits उधार लेने पर 2⁴ = 16 subnets बनते हैं, प्रत्येक में 14 usable hosts होते हैं।
Q31.Operating System

Which CPU scheduling algorithm can cause starvation of long processes?

कौन-सा CPU scheduling algorithm लंबे processes की starvation (भुखमरी) का कारण बन सकता है?

  1. A.Round RobinRound Robin
  2. B.First Come First ServedFirst Come First Served (पहले आओ पहले पाओ)
  3. C.Shortest Job FirstShortest Job First (सबसे छोटा कार्य पहले)✓ Correct
  4. D.Priority with agingAging सहित Priority
Answer: C — Shortest Job First
In SJF, short jobs keep jumping ahead, so a long process may wait indefinitely if short processes keep arriving.SJF में छोटे कार्य बार-बार आगे निकल जाते हैं, इसलिए यदि छोटे processes आते रहें तो लंबा process अनिश्चित काल तक प्रतीक्षा कर सकता है।
Q32.Operating System

The Dining Philosophers problem in operating systems is a classic illustration of:

ऑपरेटिंग सिस्टम में डाइनिंग फिलॉसफर्स समस्या किसका उत्कृष्ट उदाहरण है?

  1. A.Paging and page replacementपेजिंग और पेज प्रतिस्थापन
  2. B.File allocation methodsफ़ाइल आवंटन विधियों
  3. C.Memory fragmentationमेमोरी विखंडन
  4. D.Deadlock and synchronisation problemsडेडलॉक और सिंक्रनाइज़ेशन समस्याओं✓ Correct
Answer: D — Deadlock and synchronisation problems
Five philosophers sharing five chopsticks model processes competing for shared resources; the problem illustrates deadlock, starvation and the need for careful synchronisation.पाँच दार्शनिकों द्वारा पाँच चॉपस्टिक साझा करना साझा संसाधनों के लिए प्रतिस्पर्धा करती प्रक्रियाओं का मॉडल है; यह समस्या डेडलॉक, भुखमरी (स्टार्वेशन) और सावधान सिंक्रनाइज़ेशन की आवश्यकता को दर्शाती है।
Q33.Operating System

Paging as a memory management technique primarily eliminates which problem?

Memory management तकनीक के रूप में paging मुख्य रूप से किस समस्या को समाप्त करती है?

  1. A.Internal fragmentationInternal fragmentation (आंतरिक विखंडन)
  2. B.External fragmentationExternal fragmentation (बाह्य विखंडन)✓ Correct
  3. C.ThrashingThrashing
  4. D.StarvationStarvation (भुखमरी)
Answer: B — External fragmentation
Paging divides memory into fixed-size frames, so a process's pages fit into any free frames — free memory is never split into unusable holes, eliminating external fragmentation.Paging memory को निश्चित आकार के frames में बाँटती है, इसलिए process के pages किसी भी खाली frames में समा जाते हैं — खाली memory बेकार टुकड़ों में नहीं बँटती, जिससे external fragmentation समाप्त हो जाती है।
Q34.Operating System

A counting semaphore is initialised to 3. At most how many processes can enter the critical section simultaneously?

एक counting semaphore को 3 से initialise किया गया है। एक साथ अधिकतम कितने processes critical section में प्रवेश कर सकते हैं?

  1. A.11
  2. B.22
  3. C.33✓ Correct
  4. D.Unlimitedअसीमित
Answer: C — 3
Each wait() decrements the semaphore; the initial value 3 means up to 3 processes can pass before it blocks further entry.प्रत्येक wait() semaphore को एक घटाता है; प्रारंभिक मान 3 का अर्थ है कि आगे की entry block होने से पहले अधिकतम 3 processes प्रवेश कर सकते हैं।
Q35.Operating System

When a running process requests an I/O operation, it moves from the running state to which state?

जब running process I/O operation माँगती है, तो वह running state से किस state में जाती है?

  1. A.ReadyReady (तैयार)
  2. B.TerminatedTerminated (समाप्त)
  3. C.Waiting/BlockedWaiting/Blocked (प्रतीक्षा/अवरुद्ध)✓ Correct
  4. D.SuspendedSuspended (निलंबित)
Answer: C — Waiting/Blocked
A process waiting for I/O completion cannot use the CPU, so the scheduler moves it to the waiting (blocked) state until the I/O finishes.I/O पूरा होने की प्रतीक्षा करती process CPU का उपयोग नहीं कर सकती, इसलिए scheduler उसे I/O समाप्त होने तक waiting (blocked) state में भेज देता है।
Q36.Digital Electronics

What is the hexadecimal equivalent of the binary number 10110110?

Binary संख्या 10110110 का hexadecimal समतुल्य क्या है?

  1. A.A6A6
  2. B.B6B6✓ Correct
  3. C.5B5B
  4. D.D6D6
Answer: B — B6
Group into nibbles: 1011 0110 → B 6, so the answer is B6.4-4 bits के groups बनाएँ: 1011 0110 → B 6, इसलिए उत्तर B6 है।
Q37.Digital Electronics

Which logic gate gives output 1 only when its two inputs are different?

कौन-सा logic gate केवल तभी output 1 देता है जब उसके दोनों inputs अलग-अलग हों?

  1. A.ANDAND
  2. B.OROR
  3. C.XORXOR✓ Correct
  4. D.NANDNAND
Answer: C — XOR
XOR outputs 1 for input pairs (0,1) and (1,0), and 0 for (0,0) and (1,1) — it detects inequality.XOR input युग्मों (0,1) और (1,0) पर 1 देता है, और (0,0) तथा (1,1) पर 0 देता है — यह असमानता को पहचानता है।
Q38.Digital Electronics

Using a Karnaugh map, the simplified expression for F(A, B) = Σm(1, 3) is:

Karnaugh map का उपयोग करके F(A, B) = Σm(1, 3) का सरलीकृत expression है:

  1. A.AA
  2. B.BB✓ Correct
  3. C.A'A' (A-bar)
  4. D.B'B' (B-bar)
Answer: B — B
Minterms m1 = A'B and m3 = AB group together: A'B + AB = B(A' + A) = B.Minterms m1 = A'B और m3 = AB एक group बनाते हैं: A'B + AB = B(A' + A) = B।
Q39.Misc

You receive an email that looks like it is from your bank and asks you to share your OTP urgently. This is an example of:

आपको एक email मिलता है जो आपके बैंक की ओर से लगता है और तुरंत OTP साझा करने को कहता है। यह किसका उदाहरण है?

  1. A.PhishingPhishing (फ़िशिंग)✓ Correct
  2. B.FirewallFirewall (फ़ायरवॉल)
  3. C.EncryptionEncryption (एन्क्रिप्शन)
  4. D.BackupBackup (बैकअप)
Answer: A — Phishing
Phishing uses fake messages impersonating trusted organisations to trick users into revealing sensitive data like OTPs and passwords.Phishing में विश्वसनीय संस्थाओं का रूप धरकर नकली संदेश भेजे जाते हैं ताकि users से OTP और password जैसी संवेदनशील जानकारी निकलवाई जा सके।
Q40.IoT & AI

A machine learning model is trained on house data labelled with actual sale prices to predict the price of new houses. This is an example of:

एक machine learning model को वास्तविक बिक्री मूल्यों से labelled मकानों के data पर train किया गया ताकि नए मकानों की कीमत का अनुमान लगाया जा सके। यह किसका उदाहरण है?

  1. A.Unsupervised learningUnsupervised learning (अपर्यवेक्षित शिक्षण)
  2. B.Reinforcement learningReinforcement learning (सुदृढ़ीकरण शिक्षण)
  3. C.Supervised learningSupervised learning (पर्यवेक्षित शिक्षण)✓ Correct
  4. D.Deep learningDeep learning (गहन शिक्षण)
Answer: C — Supervised learning
Learning from labelled input–output pairs (features → known prices) to predict outputs for new inputs is the definition of supervised learning.Labelled input–output युग्मों (features → ज्ञात मूल्य) से सीखकर नए inputs के लिए output का अनुमान लगाना ही supervised learning की परिभाषा है।
▶ Play this set online — free, with timer, score & rank
← Set 2All BPSC TRE practice setsSet 4 →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 ↗