programming Flashcards
what is an integer?
whole number
example = 1873628
what is a real (or float)?
numbers that have a decimal
examples = 1312.831
what is a Boolean?
you can only take one of two values e.g. true or false
character?
single number letter or symbol
example = hello or 1234 or ===
string?
usually to represent text , it is a collection of character
example = hello , how are you today
how many bytes does an integer have?
2 or 4 bytes
what data type would be 4 or 8 bytes?
real
what data type would 1 bit be?
Boolean
what data type would 1 byte be ?
character
what data type would 1 byte for every character be?
string
what does ‘+’ represent?
addition
what does ‘-‘ represent?
subtraction
what does ‘*’ represent?
multiplication
what does ‘/’ represent?
division
what does the sign =
is equal to
what does the sign <> or !=
not equal to
what does the sign
less than
what does the sign >
greater than
what does the sign <=
is less than or equal to
what does the sign >=
more than or equal to
true or false? 5=5
true
true or false? 6!=6
false
true or false? 4<10
true
true or false? 4>10
false
true or false? 3>=3
true
what can data value be stored as ?
constant or variable
can a constant be changed?
NO
can a variable change?
YES
what is 8*5 ?
40
what is 4/2 ?
2