3 h2..." - Step-by-step solution, answer key, and detailed explanation on MCA Prep."> 3 h2..." - Step-by-step solution, answer key, and detailed explanation on MCA Prep." /> 3 h2..." - Step-by-step solution, answer key, and detailed explanation on MCA Prep." />

Question 97

Computer Awareness Computer memory Hard

Consider 4-bit gray code representation of numbers. Let&nbsp; h<sub>3</sub> h<sub>2</sub> h<sub>1</sub> h<sub>0</sub> be the gray code representation of a number n and&nbsp;g<sub>1</sub>g<sub>2</sub>g<sub>3</sub>g<sub>0</sub> be the gray code representation of the number (n + 1) modulo 16. Which one of the following functions is correct?

(A) g<sub>0</sub> (h<sub>3</sub> h<sub>2</sub> h<sub>1</sub> h<sub>0</sub>) = &Sigma;(1,2,3,6,10,13,14,15)
(B) g<sub>1&nbsp;</sub>(h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em;font-size:10.5px;">3</span>&nbsp;h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em;font-size:10.5px;">2</span>&nbsp;h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em;font-size:10.5px;">1</span>&nbsp;h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em;font-size:10.5px;">0</span>) = &Sigma;(4,9,10,11,12,13,14,15)
(C) g<sub>2</sub> (h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em; font-size:10.5px;">3</span>&nbsp;h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em; font-size:10.5px;">2</span>&nbsp;h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em; font-size:10.5px;">1</span>&nbsp;h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em; font-size:10.5px;">0</span>) = &Sigma;(2,4,5,6,7,12,13,15)
(D) g<sub>3</sub> (h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em; font-size:10.5px;">3</span>&nbsp;h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em; font-size:10.5px;">2</span>&nbsp;h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em; font-size:10.5px;">1</span>&nbsp;h<span style="position: relative; line-height: 0; vertical-align: baseline; bottom: -0.25em; font-size:10.5px;">0</span>) = &Sigma;(0,1,6,7,10,11,12,13)
✓ Correct Answer: Option C Verified Solution

📘 Step-by-Step Solution & Detailed Explanation:

Build the table: for each 4-bit Gray code h (the code of n), find the Gray code of \((n+1) \bmod 16\) and note which bits are 1.

Gray sequence: 0000, 0001, 0011, 0010, 0110, 0111, 0101, 0100, 1100, 1101, 1111, 1110, 1010, 1011, 1001, 1000, and then back to 0000.

Working this out bit by bit (h read as a decimal number):

  • \(g_0 = \Sigma(0,1,6,7,10,11,12,13)\)
  • \(g_1 = \Sigma(1,2,3,6,10,13,14,15)\)
  • \(g_2 = \Sigma(2,4,5,6,7,12,13,15)\)
  • \(g_3 = \Sigma(4,9,10,11,12,13,14,15)\)

Only option (C) is correct, \(g_2 = \Sigma(2,4,5,6,7,12,13,15)\). The other options pair a correct list with the wrong output bit.

Answer: (C)

Practice Similar Computer memory Questions

Reinforce your conceptual grasp with related questions from MAH MCA CET 2015:

Q96 The number of MOS transistors required to implement a typical dynamic RAM...
Solve →
Q91 Which optical phenomenon is utilized in the operation of the latest...
Solve →
Q92 If N is a 16-bit signed integer The 2’s complement representation of...
Solve →
Q93

Given f1 , f3 and f in canonical sum of products...

Solve →
Q94 Which of the following is equivalent to the expression
Solve →
Full-Length Test Series

Prepare for MAH MCA CET Under Real Exam Conditions

Take timed full-length mock tests with authentic question distributions, negative marking (+12/-3 in Math), and instant All India Rank calculation.

Start Free Mock Test Series →