Exit Chapter 02 · Data Representation — Quiz

Playing as a guest? to earn XP and track your progress.

Question 1 of 59 0 correct so far

Data Representation Quiz

Q1.

Why do computers use the binary number system internally?

Explanation

Computers are built from millions of switches (transistors) that can only be ON (1) or OFF (0), so all data is represented as 0s and 1s.

Q2.

The base (radix) of a number system is:

Explanation

A number system's base, or radix, is the total count of unique digits used — for example 10 in decimal and 2 in binary.

Q3.

What are the bases of the binary, octal and hexadecimal number systems?

Explanation

Binary is base 2, octal is base 8, hexadecimal is base 16 (and decimal is base 10).

Q4.

Which number system uses only the digits 0 to 7?

Explanation

Octal (base 8) uses the eight digits 0, 1, 2, 3, 4, 5, 6 and 7.

Q5.

Which symbols does the hexadecimal system use?

Explanation

Hexadecimal uses 16 digits: 0-9 followed by A, B, C, D, E, F (A=10 ... F=15).

Q6.

What is the decimal value of the hexadecimal digit D?

Explanation

In hexadecimal A=10, B=11, C=12, D=13, E=14 and F=15.

Q7.

In the decimal number 253, what is the positional value of the digit 5?

Explanation

253 = 2×10² + 5×10¹ + 3×10⁰, so the 5 is in the tens place and is worth 50.

Q8.

What is a single binary digit called?

Explanation

Each binary digit is called a BIT (Binary Digit).

Q9.

How many bits make up one byte?

Explanation

8 bits together make 1 byte.

Q10.

What is the decimal value of (1011)₂?

Explanation

(1×8) + (0×4) + (1×2) + (1×1) = 11.

Q11.

What is the decimal value of (10110)₂?

Explanation

(1×16)+(0×8)+(1×4)+(1×2)+(0×1) = 16+4+2 = 22.

Q12.

What is the decimal value of (11010)₂?

Explanation

(1×16)+(1×8)+(0×4)+(1×2)+(0×1) = 16+8+2 = 26.

Q13.

What is the decimal value of (101010)₂?

Explanation

32 + 8 + 2 = 42 (the 1s are in the 2⁵, 2³ and 2¹ positions).

Q14.

Which method converts a decimal number to binary?

Explanation

Divide repeatedly by 2, note each remainder, then read the remainders from bottom to top.

Q15.

What is (25)₁₀ in binary?

Explanation

25→12 r1, 12→6 r0, 6→3 r0, 3→1 r1, 1→0 r1. Reading bottom to top gives 11001.

Q16.

A student converts (25)₁₀ to binary and gets (10011)₂. What mistake did they make?

Explanation

The correct answer is 11001. 10011 is its reverse, the classic result of reading remainders top to bottom.

Q17.

What is (45)₁₀ in binary?

Explanation

45→22 r1, 22→11 r0, 11→5 r1, 5→2 r1, 2→1 r0, 1→0 r1. Bottom to top: 101101.

Q18.

What is (37)₁₀ in binary?

Explanation

37 = 32 + 4 + 1, so the bits for 2⁵, 2² and 2⁰ are 1: 100101.

Q19.

When converting decimal to binary, the FIRST remainder you calculate becomes:

Explanation

Remainders are read bottom to top, so the first remainder calculated is the last (rightmost) digit.

Q20.

What is (100)₁₀ in octal?

Explanation

100÷8 = 12 r4, 12÷8 = 1 r4, 1÷8 = 0 r1. Bottom to top: 144.

Q21.

What is the decimal value of (144)₈?

Explanation

(1×64) + (4×8) + (4×1) = 64 + 32 + 4 = 100.

Q22.

What is the decimal value of (372)₈?

Explanation

(3×64) + (7×8) + (2×1) = 192 + 56 + 2 = 250.

Q23.

What is the decimal value of (57)₈?

Explanation

(5×8) + (7×1) = 40 + 7 = 47.

Q24.

What is (64)₁₀ in octal?

Explanation

64÷8 = 8 r0, 8÷8 = 1 r0, 1÷8 = 0 r1. Bottom to top: 100 (since 64 = 8²).

Q25.

Why does exactly one octal digit correspond to 3 binary digits?

Explanation

Since 8 = 2³, each octal digit maps to exactly 3 bits.

Q26.

What is (372)₈ in binary?

Explanation

Expand each octal digit to 3 bits: 3→011, 7→111, 2→010, giving 011111010.

Q27.

What is the 3-bit binary equivalent of the octal digit 6?

Explanation

6 = 4 + 2, so its 3-bit form is 110.

Q28.

What is (746)₈ in binary?

Explanation

7→111, 4→100, 6→110, giving 111100110.

Q29.

To convert binary to octal, you should:

Explanation

Group binary digits in sets of 3 starting from the RIGHT, padding with zeros on the left if needed.

Q30.

What is (11111010)₂ in octal?

Explanation

Group in 3s from the right: 011 111 010 → 3, 7, 2 = 372.

Q31.

What is (110101)₂ in octal?

Explanation

Group in 3s from the right: 110 101 → 6, 5 = 65.

Q32.

When grouping (11111010)₂ into 3s, the leftmost group '11' is written as:

Explanation

Pad with zeros on the LEFT to complete the group — 11 becomes 011, which does not change the value.

Q33.

What is (250)₁₀ in hexadecimal?

Explanation

250÷16 = 15 r10 (A), 15÷16 = 0 r15 (F). Bottom to top: FA.

Q34.

What is the decimal value of (2A)₁₆?

Explanation

(2×16) + (10×1) = 32 + 10 = 42.

Q35.

What is the decimal value of (FA)₁₆?

Explanation

(15×16) + (10×1) = 240 + 10 = 250.

Q36.

What is the decimal value of (BC)₁₆?

Explanation

(B×16) + C = (11×16) + 12 = 176 + 12 = 188.

Q37.

What is (100)₁₀ in hexadecimal?

Explanation

100÷16 = 6 r4, 6÷16 = 0 r6. Bottom to top: 64.

Q38.

Why does exactly one hexadecimal digit correspond to 4 binary digits?

Explanation

Since 16 = 2⁴, each hex digit maps to exactly 4 bits, which makes hex a compact way to write binary.

Q39.

What is (11111010)₂ in hexadecimal?

Explanation

Group in 4s from the right: 1111 1010 → F, A = FA.

Q40.

What is (11011010)₂ in hexadecimal?

Explanation

Group in 4s: 1101 1010 → D, A = DA.

Q41.

What is (11011010)₂ in octal?

Explanation

Group in 3s from the right: 011 011 010 → 3, 3, 2 = 332.

Q42.

What is (10110110)₂ in hexadecimal?

Explanation

Group in 4s: 1011 0110 → B, 6 = B6.

Q43.

What is (3C)₁₆ in binary?

Explanation

Expand each hex digit to 4 bits: 3→0011, C→1100.

Q44.

What is the 4-bit binary form of the hex digit 9?

Explanation

9 = 8 + 1, so its 4-bit form is 1001.

Q45.

How should an octal number be converted to hexadecimal?

Explanation

There is no direct shortcut: convert octal to binary (3 bits per digit), then group the bits in 4s to get hex.

Q46.

What is (17)₈ in hexadecimal?

Explanation

Octal 17 → binary 001 111 → regroup in 4s as 1111 → F (decimal 15).

Q47.

What are the binary, octal and hexadecimal forms of (156)₁₀?

Explanation

Repeated division gives binary 10011100, octal 234 and hexadecimal 9C.

Q48.

What is (78)₁₀ in hexadecimal?

Explanation

78÷16 = 4 r14 (E), 4÷16 = 0 r4. Bottom to top: 4E.

Q49.

What does ASCII stand for?

Explanation

ASCII is the American Standard Code for Information Interchange.

Q50.

Standard 7-bit ASCII can represent values in which range?

Explanation

Standard ASCII uses 7 bits, giving values 0-127; extended 8-bit ASCII gives 0-255.

Q51.

What is the ASCII value of 'A'?

Explanation

'A' has ASCII value 65 (binary 01000001).

Q52.

If 'Z' has ASCII value 90, what is the ASCII value of 'z'?

Explanation

Lowercase value = uppercase value + 32, so 90 + 32 = 122.

Q53.

What is the ASCII value of the character '0' (digit zero)?

Explanation

The digits '0' to '9' have ASCII values 48 to 57.

Q54.

What is ISCII designed for?

Explanation

ISCII (Indian Script Code for Information Interchange) is an 8-bit code created to represent Indian language characters that ASCII cannot handle.

Q55.

Which character encoding can represent characters from every world language, including emojis?

Explanation

Unicode is a universal standard covering every major world language, symbols and emojis.

Q56.

Which statement about Unicode and ASCII is correct?

Explanation

Unicode is backward compatible: its first 128 values match ASCII.

Q57.

Which encoding lets one document mix English, Hindi, Chinese and emojis?

Explanation

Only Unicode, a single universal standard, lets multiple languages and emojis appear together.

Q58.

Strings in Python 3 are stored using which encoding by default?

Explanation

Python 3 strings are Unicode by default.

Q59.

Which colour code format used in CSS/web design is written in hexadecimal?

Explanation

Web colour codes such as #FF5733 are written in hexadecimal.