• Home
  • Textbooks
  • AS and A Level OCR Computer Science
  • Data types

AS and A Level OCR Computer Science

PM Heathcote, RSU Heathcote, PG Online

Chapter 6

Data types - all with Video Answers

Educators


Section 28

Primitive data types, binary and hexadecimal

02:23

Problem 1

A school keeps data about each of its pupils. State the most suitable data type for each of the following data items: Pupil's surname
A single letter indicating whether they are male or female The amount owed for school trips The number of school trips they have participated in Whether or not the pupil is entitled to free school meals

James Kiss
James Kiss
Numerade Educator
01:33

Problem 2

Represent the denary number 123 in binary using 8 bits.

Ahmad Reda
Ahmad Reda
Numerade Educator
01:32

Problem 3

How many different denary numbers can be represented using 8-bit binary?

Aymara Gallardo
Aymara Gallardo
Numerade Educator
00:59

Problem 4

What is the hexadecimal equivalent of the denary number $123 ?$

Ahmad Reda
Ahmad Reda
Numerade Educator

Problem 5

Why are bit patterns often displayed using hexadecimal instead of binary?

Check back soon!

Problem 6

Figure 1 shows the contents of a memory location.$$
\begin{array}{|l|l|l|l|l|l|l|l|}
\hline 1 & 0 & 1 & 0 & 0 & 1 & 1 & 1 \\
\hline
\end{array}
$$What is the denary equivalent of the contents of this memory location if it represents an unsigned binary integer?

Check back soon!
12:50

Problem 7

What is the hexadecimal equivalent of the binary pattern shown in Figure 1?

Ahmad Reda
Ahmad Reda
Numerade Educator
00:59

Problem 8

Convert the hexadecimal number DA to denary.

Ahmad Reda
Ahmad Reda
Numerade Educator