IBPS Clerk Computer – Number Systems, Complements, Codes and Logic Gates – Exam-Level Drill · Mains Level

← Back

IBPS Clerk Computer – Number Systems, Complements, Codes and Logic Gates – Exam-Level Drill · Mains Level – 24 questions, subject: Computer Aptitude. Every question has the correct answer with a two-line explanation; tap "Show Answer". Free practice for IBPS Clerk, IBPS PO, SBI, RRB exams – Shanmugam IAS Academy, Coimbatore.

Get daily current affairs & exam alerts – follow us YouTube WhatsApp Channel Telegram Channel Facebook Page Instagram
Share with friends & study groups
Link to this page from your website / blog (HTML code)
1.  
Stretch – The Gray code of binary 1101 is:

Correct Answer: E [1011]

Explanation:

To get Gray code, keep the first bit and XOR each pair of neighbouring binary bits: for 1101 this gives 1, 1 XOR 1 = 0, 1 XOR 0 = 1, 0 XOR 1 = 1. So the Gray code is 1011.

2.  
The Excess-3 code of decimal 58 is:

Correct Answer: A [1000 1011]

Explanation:

Excess-3 code adds 3 to each decimal digit and writes it in 4 bits: 5 + 3 = 8 gives 1000 and 8 + 3 = 11 gives 1011. So 58 in Excess-3 is 1000 1011.

3.  
Which gate has the output signature 1000 for inputs 00, 01, 10, 11?

Correct Answer: C [NOR]

Explanation:

Output signature 1000 means output 1 only for input 00 and 0 for all others, which is the NOR gate (NOT of OR). An AND gate would give 0001 and a NAND gate 1110.

4.  
In 8-bit 2's complement, which addition causes overflow?

Correct Answer: D [100 + 30]

Explanation:

8-bit 2's complement can hold only -128 to +127, and 100 + 30 = 130 exceeds +127, so it overflows. The other sums (-100, 120, -80 and 70) all stay within the range.

5.  
7C₁₆ + 4E₁₆ = ?

Correct Answer: C [CA]

Explanation:

Adding the right digits, C (12) + E (14) = 26 = 1A in hex, so write A and carry 1; then 7 + 4 + 1 = 12 = C, giving CA. Check: 7C = 124 and 4E = 78, and 124 + 78 = 202 = CA in hex.

6.  
The next number after 1F7₁₆ in hexadecimal counting is:

Correct Answer: A [1F8]

Explanation:

In hexadecimal the digit after 7 is 8, so the number after 1F7 is 1F8. Only after F does a digit roll over, as in 1FF + 1 = 200.

7.  
Which of the following is the largest?

Correct Answer: B [11111111₂]

Explanation:

11111111 in binary = 255, which is the largest. The others are 11111100 = 252, FE hex = 254, 253 decimal and 376 octal = 3 x 64 + 7 x 8 + 6 = 254.

8.  
How many bits are needed to write decimal 1,000 in binary?

Correct Answer: E [10]

Explanation:

Since 512 (2 to the power 9) is less than or equal to 1000 and 1000 is less than 1024 (2 to the power 10), decimal 1000 needs 10 bits in binary. In fact 1000 = 1111101000 in binary, which has 10 digits.

9.  
Lower-case 'k' has ASCII code 107. What is the ASCII code of upper-case 'K'?

Correct Answer: E [75]

Explanation:

In ASCII, each upper-case letter is 32 less than its lower-case form, so 'K' = 107 - 32 = 75. Similarly 'A' is 65 and 'a' is 97.

10.  
234₈ + 1A₁₆, written in decimal, is:

Correct Answer: B [182]

Explanation:

234 in octal = 2 x 64 + 3 x 8 + 4 = 156 and 1A in hexadecimal = 16 + 10 = 26. Their sum is 156 + 26 = 182 in decimal.

11.  
Odd one out (by value):

Correct Answer: C [100₁₆]

Explanation:

100 in hexadecimal = 1 x 256 = 256, so it is the odd one out. The others all equal 255: 377 octal = 3 x 64 + 7 x 8 + 7, FF hex = 15 x 16 + 15, and 11111111 binary = 2 to the power 8 - 1.

12.  
Consider the following statements:
I. 11011₂ = 33₈
II. 1C₁₆ = 27₁₀
III. 33₈ = 1B₁₆
Which of the statements given above is/are correct?

Correct Answer: D [Only I and III]

Explanation:

11011 in binary = 16 + 8 + 2 + 1 = 27, and 33 in octal = 3 x 8 + 3 = 27 and 1B in hex = 16 + 11 = 27, so statements I and III are true. Statement II is false because 1C in hex = 16 + 12 = 28, not 27.

13.  
1101₂ × 1011₂ = ?

Correct Answer: A [10001111]

Explanation:

1101 (binary) = 13 and 1011 (binary) = 11, so the product is 13 x 11 = 143. 143 = 128 + 8 + 4 + 2 + 1, which is 10001111 in binary.

14.  
How many 1s are there in the binary form of decimal 2023?

Correct Answer: D [9]

Explanation:

2023 = 1024 + 512 + 256 + 128 + 64 + 32 + 4 + 2 + 1, so in binary it is 11111100111. Counting the 1s gives 6 + 3 = 9.

15.  
For Y = (A·B) + C', in how many of the 8 input combinations of A, B, C is Y = 1?

Correct Answer: C [5]

Explanation:

C' = 1 in all 4 rows where C = 0, so Y = 1 there; among the 4 rows with C = 1, Y = 1 only when A·B = 1, that is A = B = 1 (one row). So Y = 1 in 4 + 1 = 5 of the 8 combinations.

16.  
The Boolean expression A + A·B simplifies to:

Correct Answer: D [A]

Explanation:

By the absorption law, A + A.B = A(1 + B) = A.1 = A. If A is 1 the result is 1, and if A is 0 then A.B is also 0, so the output always equals A.

17.  
The range of a 16-bit integer stored in 2's complement is:

Correct Answer: E [−32,768 to +32,767]

Explanation:

In 2's complement an n-bit integer ranges from -2^(n-1) to +2^(n-1) - 1, so 16 bits give -32,768 to +32,767. The range is not symmetric because zero takes one of the positive patterns.

18.  
Match the code with its feature:
List I: (a) ASCII; (b) EBCDIC; (c) Gray code; (d) BCD
List II: (1) 4 bits for each decimal digit; (2) 7 bits, 128 characters; (3) consecutive values differ in one bit; (4) 8-bit code of IBM mainframes

Correct Answer: A [a-2, b-4, c-3, d-1]

Explanation:

ASCII is a 7-bit code with 128 characters (2), EBCDIC is the 8-bit code of IBM mainframes (4), Gray code changes only one bit between consecutive values (3) and BCD uses 4 bits for each decimal digit (1), giving a-2, b-4, c-3, d-1. Unicode extends these codes to cover the scripts of all languages.

19.  
Using ASCII, what is the sum of the codes of the letters of the word BANK?

Correct Answer: B [284]

Explanation:

The ASCII codes are B = 66, A = 65, N = 78 and K = 75, so the sum is 66 + 65 + 78 + 75 = 284. Capital letters run from A = 65 to Z = 90 in ASCII.

20.  
653₈ in hexadecimal is:

Correct Answer: D [1AB]

Explanation:

653 in octal = 6 x 64 + 5 x 8 + 3 = 427 in decimal; in binary it is 110 101 011, regrouped in fours as 0001 1010 1011. That reads 1AB in hexadecimal (256 + 160 + 11 = 427).

21.  
A three-input XOR gate (A ⊕ B ⊕ C) gives output 1 for how many of the 8 input combinations?

Correct Answer: C [4]

Explanation:

A three-input XOR gives 1 when an odd number of inputs are 1, which happens for 001, 010, 100 and 111. So 4 of the 8 combinations give output 1.

22.  
Consider the following statements:
I. A NAND gate followed by a NOT gate behaves as an AND gate.
II. A NOR gate with both inputs tied together works as a NOT gate.
III. XOR is a universal gate.
Which of the statements given above is/are correct?

Correct Answer: B [Only I and II]

Explanation:

Statements I and II are correct: NAND followed by NOT gives AND, and a NOR gate with both inputs tied together acts as NOT. Statement III is wrong because only NAND and NOR are universal gates; XOR cannot build every other gate on its own.

23.  
A half adder receives A = 1, B = 1. Its outputs are:

Correct Answer: B [Sum 0, Carry 1]

Explanation:

A half adder gives Sum = A XOR B and Carry = A AND B, so for A = 1, B = 1: Sum = 1 XOR 1 = 0 and Carry = 1 AND 1 = 1. This matches binary addition 1 + 1 = 10.

24.  
What is the largest unsigned number that can be stored in 9 bits?

Correct Answer: A [511]

Explanation:

The largest unsigned number in n bits is 2^n - 1, so for 9 bits it is 2^9 - 1 = 512 - 1 = 511. 512 is the count of values (0 to 511), not the largest value.

📘 IBPS Clerk 2026 – B4 Computer Aptitude (PDF book)
Here you get the answer with a one-line explanation. 690 questions, each with a full step-by-step explanation · shortcuts, tables, trap alerts · Prelims + Mains sectional mocks. All 5 books together: ₹599.
Get the book – ₹149 →
Score: 0 Answered: 0 / 0