1.4.1 Data Types Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What data type should be used for storing a phone number like 07886756443?

A

String (an integer would remove the leading 0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What data type stores a collection of characters?

A

String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Add the two binary numbers
01011011
00111010

A

10010101 - 149

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the decimal 45 in binary?
Give your answer as a byte

A

00101101

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the hexadecimal 2E in decimal?

A

(2x16) + (14x1) = 46

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the hexadecimal 45 in binary?

A

01000101

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which data type stores just True or False?

A

Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is -5 in sign and magnitude binary?

A

1101

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the binary 01101100 in hexadecimal?

A

6C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the two’s complement binary 10101101 in decimal?

A

-83

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The binary 0011010000110 is a floating point number with a single-bit sign, 8-bit mantissa and 4-bit exponent. What is the number in decimal?

A

52

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following is not a character?
A: 8 C:%
B: R D:43

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The binary 1100110000011 is a floating point number with a single-bit sign, 8-bit mantissa and 4-bit exponent.
What is the number in decimal?

A

-9.5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly