Question 185Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)

A register contains a 3's complement number 10100. If it is divided by 2, find the value of the register.

  1. A01100
  2. B00110
  3. C01010
  4. D11010
Show answerHide answer

Correct answer: (C) 01010

Explanation

Dividing by 2 is done by shifting the register one bit to the right: 10100 becomes 01010 (20 ÷ 2 = 10).

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 2 (12:30 PM)

This is question 185 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.