Number Systems - introduction, conversion between number systems, digital codes, weighted binary code, non-weighted binary code, alphanumeric code, error detection and error correction codes - Question Bank

1. The hexadecimal number system is often preferred for representing memory addresses because:
A) It offers a more compact representation of binary numbers
B) It is directly understood by the CPU
C) It is the same as the decimal system
D) It uses fewer bits than octal
2. What is the fundamental difference between error detection and error correction codes?
A) Detection identifies errors; correction fixes them
B) Correction is simpler than detection
C) Detection uses more bits than correction
D) Correction is only for binary data, detection is for alphanumeric
3. Which of the following is a weighted binary code where each bit has a specific place value?
A) 8421 BCD
B) Gray Code
C) Excess-3 Code
D) Alphanumeric Code
4. What is the primary role of alphanumeric codes in computing?
A) To represent textual information
B) To perform binary arithmetic
C) To detect transmission errors
D) To manage memory addresses
5. What is the main advantage of using a non-weighted code like Gray Code in certain applications?
A) Minimizes errors during transitions between states
B) Allows for direct arithmetic operations
C) Provides a more compact data representation
D) Easier conversion to decimal numbers
6. Which type of binary code is often used in rotary encoders?
A) Gray Code
B) BCD
C) ASCII
D) Hexadecimal
7. What is the decimal equivalent of the Excess-3 code 1011?
A) 5
B) 6
C) 7
D) 8
8. What is the Excess-3 code for the decimal digit 5?
A) 0110
B) 1000
C) 1001
D) 0101
9. What is the 2421 BCD representation of the decimal number 7?
A) 1001
B) 1010
C) 1100
D) 0111
10. What is the decimal equivalent of the 2421 BCD code 0110?
A) 3
B) 4
C) 6
D) 9
11. What is the purpose of the '2421' in the 2421 BCD code?
A) It indicates the weights of the bit positions (2, 4, 2, 1)
B) It represents the number of bits used
C) It signifies the base of the number system
D) It is a checksum value
12. How does a Hamming code typically differ from a simple parity check?
A) It uses multiple parity bits to pinpoint error locations
B) It is less efficient in terms of bits used
C) It can only detect errors, not correct them
D) It is designed for alphanumeric data only
13. Which of the following is a type of error correction code?
A) Hamming Code
B) ASCII
C) BCD
D) Gray Code
14. What is the primary goal of error correction codes (ECC)?
A) To detect and correct errors in data automatically
B) To compress data for efficient storage
C) To encrypt data for security
D) To convert data between different number systems
15. What is a limitation of simple parity checking?
A) It can only detect an odd number of errors
B) It cannot detect if two bits are flipped
C) It requires a large number of additional bits
D) It is too slow for modern communication
16. In an odd parity system, a data word with two '1's would require a parity bit of:
A) 0
B) 1
C) 2
D) 0 or 1
17. In an even parity system, a data word with three '1's would require a parity bit of:
A) 0
B) 1
C) Cannot be determined
D) Either 0 or 1 depending on the next bit
18. What is a 'parity bit'?
A) An extra bit added to a data word to make the total number of 1s either even or odd
B) A bit used to indicate the sign of a number
C) A bit representing the most significant digit
D) A bit used exclusively in hexadecimal representation
19. Which of the following is a common method for error detection?
A) Parity Check
B) Gray Code
C) Excess-3
D) ASCII
20. What is the primary goal of error detection codes?
A) To identify if errors have occurred during data transmission or storage
B) To correct errors automatically
C) To speed up data processing
D) To encrypt sensitive data
21. What is EBCDIC?
A) A non-weighted binary code
B) A type of error detection code
C) An 8-bit alphanumeric character encoding
D) A number system used in calculators
22. What is the ASCII code for the uppercase letter 'A'?
A) 65
B) 97
C) 41
D) 1000001
23. How many bits are typically used in the standard ASCII code?
A) 5
B) 7
C) 8
D) 16
24. What does ASCII stand for?
A) American Standard Code for Information Interchange
B) Advanced System for Computer Information Interaction
C) Automated Software Control and Information Integration
D) American Standard Computer Input Interface
25. Which of the following is a widely used alphanumeric code standard?
A) BCD
B) Gray Code
C) ASCII
D) EAN
26. What is the purpose of alphanumeric codes?
A) To represent both letters and numbers in a digital system
B) To perform complex mathematical calculations
C) To detect errors in data transmission
D) To compress data for storage
27. What is the Gray Code representation of the binary number 1011?
A) 1110
B) 1101
C) 1010
D) 1001
28. What is a key characteristic of the Gray Code?
A) Adjacent codes differ by only one bit
B) It is a weighted code
C) It is directly convertible to decimal
D) It uses more bits than BCD for the same number
29. Which of the following is an example of a non-weighted binary code?
A) 8421 BCD
B) 2421 BCD
C) Gray Code
D) EBCDIC
30. What is a 'non-weighted' binary code?
A) A code where bit positions do not have a fixed positional value
B) A code that is not based on binary digits
C) A code that always starts with zero
D) A code that is only used for arithmetic operations
31. What is the decimal equivalent of the BCD code 0110 1001?
A) 69
B) 73
C) 68
D) 70
32. What is the BCD representation of the decimal number 5?
A) 0101
B) 101
C) 00101
D) 1100
33. What does 'BCD' stand for in the context of binary codes?
A) Binary Coded Decimal
B) Binary Character Digit
C) Bitwise Coded Data
D) Base Conversion Decoder
34. Which of the following is an example of a weighted binary code?
A) Gray Code
B) Excess-3 Code
C) 8421 BCD Code
D) Biquinary Code
35. What is a 'weighted' binary code?
A) A code where each bit position has a specific weight or significance
B) A code that uses only ones and zeros
C) A code that is difficult to convert to decimal
D) A code used for error detection only
36. What is the hexadecimal representation of the binary number 1111?
A) E
B) F
C) 15
D) 16
37. What is the binary representation of the hexadecimal digit 'B'?
A) 1010
B) 1011
C) 1100
D) 1101
38. What is the primary advantage of using hexadecimal representation in computing?
A) It is more intuitive for humans than binary
B) It is more efficient for mathematical operations
C) It provides a more compact representation of binary data
D) It is the native language of computer processors
39. Which number system uses digits 0-9 and letters A-F?
A) Octal
B) Decimal
C) Binary
D) Hexadecimal
40. Convert the decimal number 200 to its hexadecimal representation.
A) C8
B) CA
C) CC
D) D0
41. What is the decimal equivalent of the hexadecimal number A5?
A) 165
B) 166
C) 167
D) 168
42. Convert the decimal number 150 to its octal representation.
A) 226
B) 230
C) 232
D) 240
43. What is the decimal equivalent of the octal number 345?
A) 229
B) 230
C) 231
D) 232
44. Convert the decimal number 25 to its binary representation.
A) 11001
B) 10110
C) 11010
D) 10011
45. What is the decimal equivalent of the binary number 1011?
A) 9
B) 10
C) 11
D) 12
46. In the binary number system, what do the digits '0' and '1' represent?
A) Low and High voltage levels
B) On and Off states
C) True and False logical values
D) All of the above
47. What is the base of the binary number system?
A) 2
B) 8
C) 10
D) 16
48. What is the base of the decimal number system?
A) 2
B) 8
C) 10
D) 16
49. Which number system is most commonly used directly by computer hardware?
A) Decimal
B) Binary
C) Octal
D) Hexadecimal
50. What is the primary function of a number system in computing?
A) To represent data and instructions in a format the computer can process
B) To design the physical layout of computer components
C) To manage the computer's memory allocation
D) To provide a user interface for interacting with the computer