Question 30Asked in DSSSB TGT Computer Science (Technical), 7 Aug 2021, Shift 3

The 8 bit register A and B initially have the following values.

The 8 bit register A and B initially have the following values. A = 01110110 B = 10000101 What is the 8-bit value in each register after execution of the following micro-operation? A ← A + B B ← B + 1
  1. AA = 01110110, B = 10000101
  2. BA = 11111011, B = 10001110
  3. CA = 11111011, B = 10000110
  4. DA = 11111101, B = 10000101
Show answerHide answer

Correct answer: (C) A = 11111011, B = 10000110

Explanation

A + B = 01110110 (118) + 10000101 (133) = 11111011 (251), and B + 1 = 10000101 + 1 = 10000110.

From DSSSB TGT Computer Science PYQ (Technical), 7 Aug 2021, Shift 3

This is question 30 of DSSSB TGT Computer Science PYQ (Technical), 7 Aug 2021, Shift 3. 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.