1.4.1 Flashcards

(32 cards)

1
Q

data types (5)

A

Integer
Real/float
Boolean
Character
String

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

primitive data type

A

any basic data type provided by a language as a foundational building block

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

integer

A

represents any positive or negative whole number

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

real

A

real or float

any real world quantity as a number

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

floating point

A

real or float

any real world quantity as a number

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

character

A

represents a single character – this can be any alphanumeric character or symbol

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

string

A

represents a collection of characters

it can include any alphanumeric characters or symbols

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

boolean

A

represent one of two truth values associated with logic and Boolean algebra – typically, true or false

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

binary - sign and magnitude

A

first bit
0 = positive
1 = negative

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

binary - 2s complement

A

first bit
0 = positive
1 = negative
but if -ve then all other 1s are adding to the -ve first bit

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

subtraction of binary

A

e.g. 73 - 106 —-> 73 + -106 (use 2s complement)

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

hexidecimal

A

0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

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

floating point in binary

A

always uses 2s complement

as you go –> along it halves

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

binary - mantissa

A

The number itself

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

binary - exponent

A

The position of the binary point in the number

(always uses 2s complement)
+ve decimal moves –> along
-ve decimal moves <– along

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

positive normalised binary starts with…

17
Q

positive normalised binary starts with…

18
Q

when +/- floating points

A

line up the decimal points

19
Q

binary 1 bit left shift

A

doubles the number

20
Q

binary 1 bit right shift

A

halves the number

21
Q

binary shifts with signs

A

leave the first bit
if -ve pad with 1s not 0s

22
Q

bitwise AND

A

only if both are 1

23
Q

bitwise OR

A

if at least one is 1

24
Q

bitwise XOR

A

only one is 1

25
AND mask
1s show the original 0s dont show the original
26
OR mask
1s will only show 1s 0s will show the original
27
XOR mask
1s will change each bit 0s will leave each bit the same
28
IP4 address
193 . 74 . 211 . 63
29
Character sets
agreed standards for referring to all the characters a computer can use
30
ASCII
American Standard Code Information Interchange 7 bits (128)
31
Extended ASCII
Extended American Standard Code Information Interchange 8 bits (256)
32
UNICODE
was 16 bit now 24 bit