1.4.1 Data Types Flashcards

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

Primitive data types

A

One which is provided by a programming language
E.g, integer, real/float, Boolean, string

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

Integer

A

A whole number E.g, 0, 231, -67

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

Real/Float

A

A number decimal/fraction
E.g, 12.5, 0.0, -100.0001

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

Character

A

A letter number or special character

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

Boolean

A

A Boolean variable can only be TRUE or FALSE

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

String

A

Anything in quotation marks(single or double ‘…’ “…”)

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

Sign and Magnitude

A

Making the 128 bit the sign bit

00000011 = 3
10000011 = -3

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

Two’s complement

A

Write down the unsigned binary
Invert every bit
Add 1

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

Hexadecimal

A

16 figures
0-9 and A-F

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

Denary

A

A numerical system that uses 10 as its base
0-9

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

Floating point arithmetic

A

Allows very large numbers to be represented using the mantissa and the exponent

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

A Bit

A

A bit is the fundamental unit of information in the form 0 or 1

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

ASCII

A

American Standard Code for Information
Uses 7 bits which form 128 different bit combinations

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

UNICODE

A

A 16-bit code to represent all possible characters

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

Character sets

A

Groups of code that assign a character to a unique bit pattern

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