data types Flashcards

(14 cards)

1
Q

what is an integer?

A

a whole number

can be negative

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

what is a real? /float

A

positive or negative numbers that can (not always) have a fractional part

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

what is a character? /char

A

single symbol

can be: letters, numbers, symbols

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

what is a string?

A

a collection of characters

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

what is boolean?

A

true or false

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

binary to decimal

A

add the numbers with 1

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

denery to binary

A

write only the binary digits below the denery number

from left, if the digit goes into the denery replace it with a 1 and subtract it from the decimal

if they ask for bytes add necessary 0s from the left

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

binary addition

A

1 + 1 = 0 carry 1
1 + 0 =1
0 + 0 =0

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

hexadecimal comparison

A

0-9 decimal = 0-9 hex
10-15 decimal = A-F hex

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

hexadecimal to decimal

A

from left to right the hex numbers are 16^0, 16^1, 16^2, 16^3

X the answers to those by the corresponding decimal for the hex digit

add all together

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

what does hexadecimal always start with

A

16^0

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

hexadecimal to binary

A

split the hex apart

convert the hex’s to corresponding decimals

convert the decimals to binary nibbles

put back together

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

what is ASCII

A

-american standard code for information exchange
-keyboard character set
-uses 7 bits to represent 128 different characters including capital, small letters, numbers, symbols

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

what is Unicode?

A

-solves the problem of ASCIIs limited character set
-uses a varying number of bits allowing for over 1 million different characters
-represents characters that haven’t been allocated yet and also other languages

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