Mod 10.3 Flashcards
What is a variable in a computer program?
A container that holds data for use later
Which of the following is an example of a character variable?
‘7’
What is a floating-point number?
A number that can have decimal fractions
Which of the following is an example of an integer?
23
What happens when you enter a number as a character?
You cannot perform math operations with it.
Which of the following is an example of a string?
Hello world
Which Boolean operation returns True only if both conditions are True?
AND
In pseudocode, what does the symbol || represent?
Logical OR
What is an array?
A special type of variable that holds many values at once
What does it mean for an array to be multidimensional?
It can hold arrays within arrays.