Unit 6 Data Types Flashcards

1
Q

What are Primitive Data Types?

A

A set of basic data types from which all other data types are constructed

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

What is an Integer?

A

A whole number

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

What is a Float?

A

A decimal number

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

What is a Boolean?

A

True or false

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

What is a Character?

A

A letter, number, or special symbol

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

What is a String?

A

Anything enclosed in quote marks

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

Are all Data Types held in Binary?

A

Yes

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

How many digits does the Binary System use?

A

Two, 0 and 1

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

What many digits does the Denary/Decimal System use?

A

Ten, 0 - 9

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

What does it mean when Number Systems are referred to by their Base?

A

Base refers to how many symbols are used to construct values

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

What Base is Denary?

A

Base 10

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

What Base is Hexadecimal?

A

Base 16

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

What Base is Binary?

A

Base 2

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

How does Hexadecimal use letters?

A

It uses letters for the values 10 to 15

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

Why are Hexadecimal Numbers used? (5)

A
  • Easier to read than binary
  • Quicker to type
  • Less chance of making an error when typing compared to binary
  • Used to define colours
  • Easy to convert to and from binary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a Byte?

A

A collection of 8 bits

17
Q

How many Bytes are in a Kilobyte?

A

10^3 or 1,000

18
Q

How many Bytes are in a Megabyte?

A

10^6 or 1,000,000

19
Q

How many Bytes are in a Gigabyte?

A

10^9 or 1,000,000,000

20
Q

How many Bytes are in a Terabyte?

A

10^12 or 1,000,000,000,000

21
Q

How many Bytes are in a Kibibyte?

A

2^10 or 1,024

22
Q

How many Bytes are in a Mebibyte?

A

2^20 or 1,048,576

23
Q

How many Bytes are in a Gibibytes?

A

2^30 or 1,073,741,824

24
Q

How many Bytes are in a Tebibyte?

A

2^40 or 1,099,511,627,776

25
Q

What does ASCII stand for?

A

American Standard Code for Information Interchange

26
Q

What Bit Character Set does ASCII have?

A

7 Bit

27
Q

How many possible Binary Codes can ASCII have?

A

2^7 or 128

28
Q

What is Unicode?

A

An international encoding standard for use with different languages and scripts, by which each letter, digit, or symbol is assigned a unique numeric value that applies across different platforms and programs

29
Q

What are examples of Arithmetic Operators? (4)

A
  • Addition
  • Subtraction
  • Multiplication
  • Division
30
Q

What are examples of Comparison Operators? (4)

A
  • Equal
  • Not equal
  • Greater than
  • Less than
31
Q

What is one method of representing negative numbers in Binary?

A

Sign and magnitude. The first bit acts as the sign, 0 for + and 1 for -

32
Q

What is the most common method of representing negative numbers in Binary?

A

Two’s Complement. The two’s complement of a signed binary value is found by flipping all of the bits and adding one

33
Q

What are Fractional values?

A

Negative powers of 2

34
Q

What is Fixed-point Binary?

A

A fixed-point binary value uses a specified number of bits where the placement of the binary point is fixed

35
Q

What is Normalisation?

A

The process of moving the binary point of a floating point number to provide the maximum level of precision for a given number of bits
This is achieved by ensuring that the first digit after the binary point is a significant digit

36
Q

What are the 2 ways Bits can be manipulated?

A
  • Using shift instructions to move bits left or right
  • Using logical instructions NOT, AND, OR and XOR with appropriate masks