Edexcel IGCSE Computer Science 4CP0
Algorithms
Searching and Sorting Algorithms
Decomposition and Abstraction
Developing and Testing Code
Programming Constructs and Operators
Data Types and Data Structures
Input, Output and Validation
Data Representation
Data Storage and Compression
Encryption
Hardware and the CPU
Software
Programming Languages and Translators
Networks
Network Security
The Internet and the World Wide Web
Emerging Trends, Issues and Impact
Binary
Hexadecimal
- 3 things to know
- Papers 1 and 2
Overview
Why hexadecimal is used and converting between hexadecimal, binary and denary, with worked examples.
What you need to know
Answer each one before you reveal it.
Why is hexadecimal used instead of binary by programmers?
Convert the hexadecimal number 3E to binary
Questions from this subtopic
Each one with the model answer underneath.
- 1
Convert the denary number 200 to hexadecimal.
Model answer
The denary number 200 is 12 sixteens and 8 ones, so in hexadecimal it is C8.
- 2
Convert the hexadecimal number B7 to denary.
Model answer
The hexadecimal number B7 is 11 × 16 + 7, which is 183 in denary.
- 3
Convert the hexadecimal number B7 to binary.
Model answer
Each hexadecimal digit becomes four binary bits, so B is 1011 and 7 is 0111. The hexadecimal number B7 is 10110111 in binary.
- 4
Convert the binary number 10101100 to hexadecimal.
Model answer
The binary number is split into the nibbles 1010 and 1100, which are A and C. The binary number 10101100 is AC in hexadecimal.
- 5
Why is hexadecimal used instead of binary by programmers?
Model answer
Hexadecimal is shorter than binary, because one hexadecimal digit represents four bits. Hexadecimal is easier for humans to read and write, so fewer mistakes are made.
- 6
Convert the denary number 26 to hexadecimal.
Model answer
The denary number 26 is 1 sixteen and 10 ones, so in hexadecimal it is 1A.
Other ways to work this
The same content, four other ways.
Everything in your subscription
Runs, plus a mode for every other kind of session.
Every question in Binary, on a schedule.
Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.