computational counting Flashcards

(18 cards)

1
Q

python prefix for binary

A

0b

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

python prefix for octal

A

0o

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

python prefix for hexadecimal

A

0x

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

converting an int into a string representation of one of the other base

A

bin(25)

oct(25)

hex(25)

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

ord()

A

code point value for any character

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

memory and storage size representation

A

reported in bytes (octet) NB

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

network speed representation

A

reported in bits (binary) b

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

kilo (‘k’)

A

10^3 = 2^10

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

mega (‘M’)

A

10^6 = 2^20

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

giga (‘G’)

A

10^9 = 2^30

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

tera (‘T’)

A

10^12 = 2^40

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

peta (‘P’)

A

10^15 = 2^50

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

ASCII

A

method for popular non-unicode character encoding

128 character based on 7-bit encoding

compact, but can only encode a small number of characters

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

UTF-32

A

method to represent each unicode code point value directly

32-bit encoding

can encode all unicode characters but documents are often bigger than they need to be

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

single-byte encoding

ISO-8859

A

built on top of ASCII to include extra 128 characters

can cover many orthographies but not big ones (large alphabet) such as Chinese and also can’t encode documents with more than one language

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

variable-width encoding

UTF-8
UTF-16

A

encode the code points using a variable number of ‘code units; of a fixed size

UTF-8 code units = 8 bits = 1 byte
UTF-16 code units = 6 bits = 2 bytes

17
Q

UTF-8

A

variable-width encoding

compatible/superset with ASCII

character boundaries are easily locatable