Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Give this quiz to my class
Q 1/17
Score 0
In Python, which data type would be most appropriate for storing a user's age, such as 14?
30
str
float
bool
int
Q 2/17
Score 0
30
17 questions
Q.
In Python, which data type would be most appropriate for storing a user's age, such as 14?
1
30 sec
Q.
2
30 sec
Q.
3
30 sec
Q.
4
30 sec
Q.
5
30 sec
Q.
Which of the following Python keywords is used to output text or data to the console window?
6
30 sec
Q.
Which Python keyword is used to create a loop that runs as long as a specific condition remains True?
7
30 sec
Q.
Which Python keyword is used to stop a loop immediately, even if the loop condition is still True?
8
30 sec
Q.
Which Python keyword is used to define a new function that can be called later in the code?
9
30 sec
Q.
Which Python keyword is used to check if a condition is true, and if so, execute a specific block of code?
10
30 sec
Q.
Which Python keyword is used to return a result from a function back to the part of the program that called it?
11
30 sec
Q.
Which Python keyword is used to handle the situation where the condition in an "if" statement is False, but you want to check a second, different condition?
12
30 sec
Q.
Which Python keyword is used to provide an alternative block of code to run only if all previous 'if' and 'elif' conditions are found to be False?
13
30 sec
Q.
Which of the following Python code snippets will print the numbers 0, 1, and 2 each on a new line?
14
30 sec
Q.
What is the final value of the variable "total" after the following code runs?
total = 0
for i in [1, 2, 3, 4]:
total = total + i
15
30 sec
Q.
Which of the following is an example of an infinite loop that will run forever?
16
30 sec
Q.
In Python, which of the following is the correct way to iterate through every character in the string "CODE"?