programming Flashcards

(7 cards)

1
Q

what data type is integers only?

A

integer ( int)

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

what data type is numbers with decimal point?

A

real / float (real)

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

what data type is true or false?

A

boolean (bool)

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

what data type is a single letter,number or symbol

A

character (char)

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

what data type is used to represent text as a collection of characters?

A

string (str)

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

what does DIV do?

A

20 div 3 = 6
gives the first part of a non integer number answer

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

what does MOD or % do?

A

20 % 3 = 2
gives remainder

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