No student devices needed. Know more
25 questions
A variable is...
A named value stored inside the computer's memory
A value that stays constant throughout an entire program
A programming technique to check if an input is True or False
A variable that can be accessed anywhere inside the program is called a ______ variable?
A variable that can only be accessed inside a specific subroutine is called a _____ variable?
True or False:
The value of a constant can change throughout the program
True
False
In Python, the mathematical symbol for multiply is...
x
*
/
%
What programming concept is being used in this code:
Arrays
Subroutine
Iteration
Selection
What programming concept is being used in the following code:
Array
Subroutine
Iteration
Selection
What would be the appropriate data type for storing a person's name in a computer program?
String
Integer
Real
Boolean
What would be the appropriate data type for storing a person's age in a computer program?
What would be the appropriate data type for storing whether a person is under 18 or not in a computer program?
What would be the appropriate data type for storing the price of a piece of fruit in a computer program?
What data type is the following value:
Apple
What data type is the following value?
3.14
A FOR loop is an example of a....
Count-Controlled Iteration
Condition-Controlled Iteration
A WHILE loop is an example of a ...?
Count-Controlled Iteration
Condition-Controlled Iteration
What punctuation is missing from the end of this Python code:
name = input
What punctuation is missing from the end of this Python code:
def gameOver()
Which key term matches the following definition:
"A chunk of reusable code, used to break up a program into smaller sections
to allow for easier debugging and programming"
Selection
Iteration
Subroutine
Variables
What term describes converting one data type to another data type? An example is shown below:
age = int(input())
What is the name of the variable in the following section of code:
for count in range(0,3):
print(count)
What is the output of the last line, if the user inputs 1 and then 7:
print("Please enter a number")
num1 = int(input())
print("Please enter a second number")
num2 = int(input())
print(num1 + num2)
What is the output of the last line, if the user inputs 1 and then 7:
print("Please enter a number")
num1 = input())
print("Please enter a second number")
num2 = input())
print(num1 + num2)
Which of the following is the most suitable identifier for a variable that stores a person's last name
ln
name
lastName
last
How many times would the message "Hello" be outputted in this code?
ow many times would the message "Hello" be outputted in this code?
Explore all questions with a free account