programming Flashcards

1
Q

what is an integer?

A

whole number

example = 1873628

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

what is a real (or float)?

A

numbers that have a decimal

examples = 1312.831

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

what is a Boolean?

A

you can only take one of two values e.g. true or false

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

character?

A

single number letter or symbol

example = hello or 1234 or ===

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

string?

A

usually to represent text , it is a collection of character

example = hello , how are you today

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

how many bytes does an integer have?

A

2 or 4 bytes

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

what data type would be 4 or 8 bytes?

A

real

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

what data type would 1 bit be?

A

Boolean

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

what data type would 1 byte be ?

A

character

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

what data type would 1 byte for every character be?

A

string

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

what does ‘+’ represent?

A

addition

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

what does ‘-‘ represent?

A

subtraction

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

what does ‘*’ represent?

A

multiplication

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

what does ‘/’ represent?

A

division

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

what does the sign =

A

is equal to

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

what does the sign <> or !=

A

not equal to

17
Q

what does the sign

18
Q

what does the sign >

A

greater than

19
Q

what does the sign <=

A

is less than or equal to

20
Q

what does the sign >=

A

more than or equal to

21
Q

true or false? 5=5

22
Q

true or false? 6!=6

23
Q

true or false? 4<10

24
Q

true or false? 4>10

25
true or false? 3>=3
true
26
what can data value be stored as ?
constant or variable
27
can a constant be changed?
NO
28
can a variable change?
YES
29
what is 8*5 ?
40
30
what is 4/2 ?
2