MCQ on Computer Codes – Computer GK

Useful and informative MCQ on Computer Codes – Computer GK that includes topics like BCD Code (Binary Coded Decimal), EBCDIC Code (Extended Binary Coded Decimal Interchange Code), ASCII (American Standard Code for Information Interchange), Unicode, Encoding, etc.

These MCQ on Computer Codes – Computer GK are very helpful for competitive exams such as CPCT, GATE, IES/ESE, IBPS PO, IBPS Clerk, SBI PO, SBI Clerk, RBI, SEBI, LIC, NICL, BCA, B.Sc. IT, DCA, SSC, RRB, NIELIT CCC, CTET, UDC NET, CUET, MCA, PGDCA, MCS, TET, State Police, BPO, etc.

These MCQ on Computer Codes – Computer GK have correct answers and brief explanations of each question for better understanding.

Q11. What is the primary difference between ASCII and EBCDIC?
a) Character set size
b) Character encoding scheme
c) Usage in different computer systems
d) Support for non-Latin scripts

Show Answer

Correct Answer: c) Usage in different computer systems
Explanation: The primary difference between ASCII and EBCDIC is their usage in different computer systems. ASCII is a widely used character encoding standard for electronic communication, while EBCDIC is primarily used for encoding characters in IBM mainframe systems.

Q12. Which of the following is a disadvantage of BCD code compared to binary representation?
a) Limited character set
b) Inefficient storage of decimal digits
c) Incompatibility with IBM mainframe systems
d) Inability to represent non-Latin scripts

Show Answer

Correct Answer: b) Inefficient storage of decimal digits
Explanation: A disadvantage of BCD code compared to binary representation is its inefficient storage of decimal digits. Each decimal digit is represented by a group of four binary bits in BCD code, which can lead to wasted storage space compared to the more compact binary representation.

Q13. Which of the following codes is used to represent the decimal number 29 in BCD code?
a) 0010 1001
b) 0010 1010
c) 0010 1100
d) 0010 1110

Show Answer

Correct Answer: a) 0010 1001
Explanation: The decimal number 29 can be represented in BCD code by converting each decimal digit to its 4-bit binary equivalent: 2 (decimal) = 0010 (binary), 9 (decimal) = 1001 (binary). So, the BCD code representation is 0010 1001.

Q14. Which of the following ASCII characters has a higher numeric value than the character ‘Z’?
a) A
b) 9
c) [
d) a

Show Answer

Correct Answer: c) [
Explanation: In the ASCII code, the character ‘[‘ has a higher numeric value than the character ‘Z’. The ASCII value of ‘[‘ is 91, while the value of ‘Z’ is 90.

Q15. Which of the following Unicode characters has a higher numeric value than the character ‘Z’?
a) A
b) 9
c) [
d) a

Show Answer

Correct Answer: d) a
Explanation: In the Unicode code, the character ‘a’ has a higher numeric value than the character ‘Z’. The Unicode value of ‘a’ is 97, while the value of ‘Z’ is 90.

Q16. What is the primary purpose of a collating sequence in computer codes?
a) To represent decimal digits in binary form
b) To encode characters for electronic communication
c) To define the order of characters for sorting and comparison purposes
d) To represent virtually all written languages

Show Answer

Correct Answer: c) To define the order of characters for sorting and comparison purposes
Explanation: A collating sequence is used to define the order of characters for sorting and comparison purposes in computer codes. It determines the relative position of each character in a character set, which is essential for operations such as sorting strings and comparing text.

Q17. Which of the following is a disadvantage of using BCD code instead of binary representation?
a) Limited character set
b) Inefficient storage of decimal digits
c) Incompatibility with IBM mainframe systems
d) Inability to represent non-Latin scripts

Show Answer

Correct Answer: b) Inefficient storage of decimal digits
Explanation: A disadvantage of using BCD code instead of binary representation is its inefficient storage of decimal digits. Each decimal digit is represented by a group of four binary bits in BCD code, which can lead to wasted storage space compared to the more compact binary representation.

Q18. What is the primary advantage of using Unicode over ASCII and EBCDIC?
a) Smaller character set
b) Compatibility with IBM mainframe systems
c) Ability to represent virtually all written languages
d) Simpler encoding scheme

Show Answer

Correct Answer: c) Ability to represent virtually all written languages
Explanation: Unicode is a universal character encoding standard that can represent virtually all written languages. This is an advantage over ASCII and EBCDIC, which have limited character sets and cannot represent many non-Latin scripts.

Q19. Which of the following is a key difference between ASCII and EBCDIC?
a) Character set size
b) Character encoding scheme
c) Usage in different computer systems
d) Support for non-Latin scripts

Show Answer

Correct Answer: c) Usage in different computer systems
Explanation: The key difference between ASCII and EBCDIC is their usage in different computer systems. ASCII is a widely used character encoding standard for electronic communication, while EBCDIC is primarily used for encoding characters in IBM mainframe systems.

Q20. In the ASCII code, which of the following characters has the highest numeric value?
a) A
b) Z
c) a
d) z

Show Answer

Correct Answer: d) z
Explanation: In the ASCII code, the character ‘z’ has the highest numeric value among the given options. The ASCII value of ‘z’ is 122.

error: Content is protected !!
Scroll to Top