The grey code for decimal 7 is :

This question was previously asked in
NIELIT Scientific Assistant IT 5 Dec 2021 Official Paper
View all NIELIT Scientific Assistant Papers >
  1. 0111 
  2. 1011 
  3. 0100 
  4. 0101

Answer (Detailed Solution Below)

Option 3 : 0100 
Free
NIELIT Scientific Assistant Quantitative Aptitude Mock Test
0.9 K Users
20 Questions 20 Marks 30 Mins

Detailed Solution

Download Solution PDF

The correct answer is option 3: 0100

Key Points

  • Gray Code is a binary numeral system where two successive values differ in only one bit (also known as reflected binary code).
  • To convert binary to Gray Code:
    • Keep the most significant bit (MSB) the same.
    • For the remaining bits: each bit = previous binary bit XOR current binary bit.

Step-by-Step Conversion:

  • Decimal 7 in binary = 0111
  • Now convert 0111 to Gray Code:
    • First bit (MSB) = 0
    • Second bit = 1 XOR 0 = 1
    • Third bit = 1 XOR 1 = 0
    • Fourth bit = 1 XOR 1 = 0
  • Gray Code = 0100

Additional Information

  • Gray Code is used in error correction and minimizing transitions in digital circuits.
  • Binary to Gray Code formula: Gray[i] = Binary[i] XOR Binary[i-1]

Hence, the correct answer is: option 3: 0100

Latest NIELIT Scientific Assistant Updates

Last updated on Jul 3, 2025

-> NIELIT Scientific Assistant answer key 2025 has been released at the official website. 

-> NIELIT Scientific Assistant admit card 2025 has been released. 

-> NIELIT Scientific Assistant city intimation slip 2025 has been released at the official website.

-> NIELIT Scientific Assistant exam 2025 is scheduled to be conducted on June 28. 

-> A total number of 113 revised vacancies have been announced for the post of Scientific Assistant in Computer Science (CS), Information Technology (IT), and Electronics & Communication (EC) streams.

-> Online application form, last date has been extended up to from 17th April 2025.

->The NIELT has revised the Essential Qualifications for the post of Scientific Assistant. Candidates must possess (M.Sc.)/ (MS)/ (MCA) / (B.E.)/ (B.Tech) in relevant disciplines.

 

-> The NIELIT Scientific Assistant 2025 Notification has been released by the National Institute of Electronics and Information Technology (NIELIT).

Get Free Access Now
Hot Links: teen patti master 2023 all teen patti teen patti real