programming Flashcards
(7 cards)
1
Q
what data type is integers only?
A
integer ( int)
2
Q
what data type is numbers with decimal point?
A
real / float (real)
3
Q
what data type is true or false?
A
boolean (bool)
4
Q
what data type is a single letter,number or symbol
A
character (char)
5
Q
what data type is used to represent text as a collection of characters?
A
string (str)
6
Q
what does DIV do?
A
20 div 3 = 6
gives the first part of a non integer number answer
7
Q
what does MOD or % do?
A
20 % 3 = 2
gives remainder