1.4.1 Data types - Suprit Flashcards

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

Define Real Numbers

A

Positive or negative numbers that typically have a decimal point

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

Define Integer

A

A whole number

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

Define Characters

A

Any symbol used by the computer

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

Define String

A

A collection of characters stored in succession

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

Define Boolean

A

Represents True or False

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

How do computers store whole numbers?

A

Computers store whole numbers as binary

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

How many bits make up a nibble?

A

4 bits

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

How many nibbles make up a byte?

A

2 nibbles

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

Convert binary number 1101 to denary

A

13

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

How many bits in a kilobyte?

A

8000

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

Convert 47 into binary

A

101111

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

What is 1011 + 1110?

A

(1)1001
(1) is an overflow

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

What does 0 and 1 at the start of a binary number represent in Sign Magnitude?

A

0 = Positive Number
1 = Negative Number

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

If 10101101 = 173, what does Sign Magnitude number 010101101 mean in denary?

A

It’s also 173

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

Convert -105 to a Sign Magnitude number

A

101101001

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

What is another way to represent positive and negative numbers in binary?

A

Two’s Complement

17
Q

How do you convert a binary number into Two’s Complement?

A

Flip all of the individual bits and add 1
Example - 00000111 (7) becomes 11111000 when its initially flipped, and becomes 11111001 (-7) once 1 has been added on.

18
Q

How does subtraction work in Two’s Complement?

A

It works by adding a negative number to a positive number

19
Q

Subtract 10100 from 01000 in Two’s Complement.

A

11100 (-4)

20
Q

What base is Hexadecimal?

A

Base 16