313 Computer Science questions asked in BPSC TRE previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
Q301BPSC TRE 2.0 (2023) Computer Science Class 11-12
If (11X1Y)₈ = (12C9)₁₆, then the values of X and Y are
A5, 1
B5, 7
C3, 1
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (C) 3, 1
Explanation
(12C9)₁₆ = 1 0010 1100 1001₂. Regrouped in threes from the right this is 1 001 011 001 001 = (11311)₈, so X = 3 and Y = 1.
Q302BPSC TRE 2.0 (2023) Computer Science Class 11-12
Which of the following 4-bit numbers equals its 2’s complement?
A1010
B0101
C1000
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (C) 1000
Explanation
For 1000, inverting gives 0111 and adding 1 gives 1000, so it equals its own 2's complement. 1000 is −8, which has no positive counterpart in 4 bits.
Q303BPSC TRE 2.0 (2023) Computer Science Class 11-12
The number of 1’s in the binary representation of the value of the decimal expression 16³ × 9 + 16² × 7 + 16 × 5 + 3 is
A15
B9
C12
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (B) 9
Explanation
The expression is (9753)₁₆ = 1001 0111 0101 0011₂. The 1s per group are 2 + 3 + 2 + 2 = 9.
Q304BPSC TRE 2.0 (2023) Computer Science Class 11-12
The Boolean expression x + x′y equals
Ax + y
Bx + xy
Cy + yx
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (A) x + y
Explanation
x + x′y = (x + x′)(x + y) = 1·(x + y) = x + y, using the distributive law.
Q305BPSC TRE 2.0 (2023) Computer Science Class 11-12
The Boolean expression AB + AB′ + A′C + AC is independent of Boolean variable
AA
BB
CC
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (B) B
Explanation
AB + AB′ = A(B + B′) = A, and A + A′C + AC = A + C. The result A + C does not contain B.
Q306BPSC TRE 2.0 (2023) Computer Science Class 11-12
The Boolean expression A + BC equals
A(A′ + B)(A′ + C)
B(A + B)(A′ + C)
C(A + B)(A + C)
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (C) (A + B)(A + C)
Explanation
By the distributive law of Boolean algebra, A + BC = (A + B)(A + C).
Q307BPSC TRE 2.0 (2023) Computer Science Class 11-12
The Boolean expression x + xy will be equal to
Ax
By
Cx + y
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (A) x
Explanation
By the absorption law, x + xy = x(1 + y) = x.
Q308BPSC TRE 2.0 (2023) Computer Science Class 11-12
The Boolean expression x(x + y) is equal to
Ax
By
Cxy
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (A) x
Explanation
By absorption, x(x + y) = x + xy = x.
Q309BPSC TRE 2.0 (2023) Computer Science Class 11-12
If x is a Boolean variable, then (((x′)′)′)′ will be
Ax′
Bx
Cx + x′
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (B) x
Explanation
There are four complements in a row, an even number, so they cancel out and the result is x.
Q310BPSC TRE 2.0 (2023) Computer Science Class 11-12
In two-valued Boolean algebra, the maximum number of Boolean functions for two variables will be
A8
B12
C16
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (C) 16
Explanation
With n variables there are 2^(2ⁿ) Boolean functions. For n = 2 that is 2⁴ = 16.
Q311BPSC TRE 2.0 (2023) Computer Science Class 11-12
Simplified Boolean function of Boolean function F = A′C + A′B + AB′C + BC is
AF = C + A′B
BF = A′B + B′C
CF = BC + A′B
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (A) F = C + A′B
Explanation
F covers minterms 1, 2, 3, 5 and 7. Minterms 1, 3, 5 and 7 group to C, and 2 and 3 group to A′B, so F = C + A′B.
Q312BPSC TRE 2.0 (2023) Computer Science Class 11-12
Which of the following logic gates is called universal gate?
AAND
BOR
CNAND
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (C) NAND
Explanation
NAND (like NOR) is a universal gate, because AND, OR and NOT can all be built from NAND gates alone.
Q313BPSC TRE 2.0 (2023) Computer Science Class 11-12
The minimum number of NAND gates required to implement Boolean function f = x′y + xy′ is
A3
B4
C6
DMore than one of the above
ENone of the above
Show answerHide answer
Correct answer: (B) 4
Explanation
x′y + xy′ is XOR, and XOR needs at least 4 NAND gates. One NAND makes (xy)′, two NANDs combine it with x and with y, and a fourth NAND joins their outputs.
How to use these BPSC TRE Computer Science questions
Every question here was asked in a real BPSC TRE 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 BPSC TRE papers as timed tests to check your speed under exam conditions.