Programming Fundamentals
The question sheet
Reveal any answer as you study-
A ____ is a named container that stores information in memory.
- function
- variable
- string
- loop
Reveal answer
Answer: variable
-
Which data type holds whole numbers like 7 or -42?
- Float
- String
- Integer
- Boolean
Reveal answer
Answer: Integer
-
What kind of value can a boolean hold?
- A decimal
- True or false
- A word
- Any number
Reveal answer
Answer: True or false
-
Joining the strings "2" and "3" produces "23".
- True
- False
Reveal answer
Answer: True
-
Which keyword usually begins a conditional statement?
- while
- for
- def
- if
Reveal answer
Answer: if
-
The three main logical operators are AND, OR, and ____.
- XOR
- NOT
- IF
- ELSE
Reveal answer
Answer: NOT
-
An AND operation is true only when both conditions are true.
- True
- False
Reveal answer
Answer: True
-
What does the NOT operator do?
- Reverses a value
- Combines conditions
- Repeats code
- Adds values
Reveal answer
Answer: Reverses a value
-
Which loop repeats a specific number of times?
- while loop
- for loop
- if loop
- do loop
Reveal answer
Answer: for loop
-
A ____ loop keeps repeating as long as a condition stays true.
- and
- for
- if
- while
Reveal answer
Answer: while
-
____ are reusable blocks of code that perform a particular task.
- Functions
- Variables
- Loops
- Strings
Reveal answer
Answer: Functions
-
What are inputs given to a function called?
- Parameters
- Booleans
- Loops
- Variables
Reveal answer
Answer: Parameters
-
The word "variable" reflects that its value can change as a program runs.
- True
- False
Reveal answer
Answer: True
-
What is another name for floating-point numbers?
- Floats
- Integers
- Strings
- Booleans
Reveal answer
Answer: Floats
-
The exact wording rules of a language are called its ____.
- loop
- memory
- syntax
- logic
Reveal answer
Answer: syntax
Make your own — free
Turn any notes into a game in under a minute. Free to start.