Ez Computerहिन्दीOpen app

Computer MCQ for SSC & Railway — Data and Logic (with answers)

These questions come from: Number Systems and Conversions, Data Representation and Computer Codes, Logic Gates and Boolean Algebra.

1. 7's complement of octal 4060?

  1. 5939
  2. 3720
  3. 3717
  4. 3716
Show answer

Answer: C. 3717

7's complement: subtract each octal digit of 4060 from 7, giving 3717.

2. Unicode encoding that always uses 4 bytes?

  1. UTF-32
  2. ISCII
  3. EBCDIC
  4. UTF-8
Show answer

Answer: A. UTF-32

UTF-32 uses a fixed 4 bytes for every character.

3. Number of inputs of a full adder?

  1. One
  2. Two
  3. Three
  4. Four
Show answer

Answer: C. Three

A full adder adds A, B and carry-in, so it has three inputs.

4. (10)₈ in decimal?

  1. 8
  2. 16
  3. 2
  4. 10
Show answer

Answer: A. 8

(10)₈ = 1×8 + 0 = 8 in decimal.

5. Binary of Gray code 11010011?

  1. 11010011
  2. 10011100
  3. 10111010
  4. 10011101
Show answer

Answer: D. 10011101

Gray to binary: the first bit stays; each next binary bit = previous binary bit XOR the Gray bit, giving 10011101.

6. Symbol used for AND in Boolean expressions?

  1. Plus (+)
  2. XOR sign (⊕)
  3. Prime (′)
  4. Dot (·)
Show answer

Answer: D. Dot (·)

In Boolean expressions, AND is written as a dot (·), as in A · B.

7. 1 + 1 in binary?

  1. 0
  2. 2
  3. 10
  4. 11
Show answer

Answer: C. 10

In binary 1 + 1 = 0 with carry 1, so the sum is 10 (two).

8. Storage size of one ASCII character?

  1. 4 bits (1 nibble)
  2. 8 bits (1 byte)
  3. 16 bits (2 bytes)
  4. 7 bits
Show answer

Answer: B. 8 bits (1 byte)

Each ASCII character is stored in one byte (8 bits), though the standard code uses 7 bits.

9. Output of XOR for inputs 1 and 1?

  1. 10
  2. 1
  3. 0
  4. 11
Show answer

Answer: C. 0

XOR gives 1 only when inputs differ; 1 and 1 are the same, so the output is 0.

10. 9's complement of decimal 4060?

  1. 5939
  2. 3717
  3. 5938
  4. 5940
Show answer

Answer: A. 5939

9's complement: subtract each digit from 9: 9−4=5, 9−0=9, 9−6=3, 9−0=9... giving 5939.

11. Bits needed to code 64 items?

  1. 5
  2. 8
  3. 7
  4. 6
Show answer

Answer: D. 6

With n bits you get 2ⁿ codes; 2⁶ = 64, so 6 bits are needed.

12. Number of cells in a 2-variable K-map?

  1. 16
  2. 4
  3. 2
  4. 8
Show answer

Answer: B. 4

A 2-variable K-map has 2^2 = 4 cells, one for each minterm.

13. (10101100)₂ in hexadecimal?

  1. AC
  2. 254
  3. AD
  4. CA
Show answer

Answer: A. AC

Group the 8 bits in 4s: 1010 = A, 1100 = C, so the hex form is AC.

14. Term for the number of bits in an audio sample?

  1. Bit depth
  2. Sampling rate
  3. Bit rate
  4. Frame rate
Show answer

Answer: A. Bit depth

Bit depth is the number of bits used to store each audio sample; more bits give finer detail.

15. Gate also called the inverter?

  1. NAND
  2. Buffer
  3. NOT
  4. XOR
Show answer

Answer: C. NOT

NOT is called the inverter because it flips 0 to 1 and 1 to 0.

16. Leftmost digit of a number is called?

  1. Most Significant Digit
  2. Least Significant Digit
  3. Positional value
  4. Radix point
Show answer

Answer: A. Most Significant Digit

The leftmost digit is the Most Significant Digit (MSD); the rightmost is the LSD.

17. Excess-3 code of 5?

  1. 1000
  2. 0111
  3. 1011
  4. 0101
Show answer

Answer: A. 1000

Excess-3 adds 3 to the digit: 5 + 3 = 8, which is 1000 in binary.

18. Gate formed by AND followed by NOT?

  1. XOR
  2. NOR
  3. XNOR
  4. NAND
Show answer

Answer: D. NAND

AND followed by NOT gives NAND; its output is 0 only when all inputs are 1.

19. Binary group of 3 bits equals which octal digit for 111?

  1. 3
  2. 7
  3. 8
  4. 6
Show answer

Answer: B. 7

Binary 111 = 4 + 2 + 1 = 7, which is the octal digit 7.

20. Information combining text, graphics, sound, video and animation?

  1. Vector graphics
  2. Multimedia
  3. Hypertext
  4. Metadata
Show answer

Answer: B. Multimedia

Multimedia combines text, graphics, sound, video and animation in one presentation or application.

Practise all questions in the app

Take a mock test