
Python While Loops

Quiz
•
Other
•
9th Grade
•
Hard
Katie Steingold
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to ask the user for input and store it as an integer in Python?
number1 = input("Enter a number: ")
number1 = int(input("Enter a number: ")
number1 = str(input("Enter a number: ")
number1 = float(input("Enter a number: ")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you subtract the value of 'number2' from 'number1' and store the result in 'answer'?
answer = number1 + number2
answer = number1 * number2
answer = number1 - number2
answer = number2 - number1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a loop in programming?
The type of data being used by the program
The place where inputs get stored by the program
A sequence of instructions that is continually repeated until a certain condition is reached
“Whole Number” data type
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an integer in programming?
Another name for a 'loop'
The type of data being used by the program
The place where inputs get stored by the program
“Whole Number” data type
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the term 'iteration' refer to in programming?
The type of data being used by the program
“Whole Number” data type
The place where inputs get stored by the program
Another name for a 'loop'
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in the context of programming?
“Whole Number” data type
The place where inputs get stored by the program
Another name for a 'loop'
The type of data being used by the program
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is iteration in programming?
The process of increasing the value of a variable
The process of doing something once and moving to the next step
The process of doing something again and again
The process of checking a condition once
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Web Design

Quiz
•
9th - 12th Grade
25 questions
The ULTIMATE roller coaster quiz (tricky)

Quiz
•
9th - 12th Grade
20 questions
KT15 K10 L2

Quiz
•
9th - 12th Grade
22 questions
got7 igot7

Quiz
•
1st Grade - Professio...
27 questions
TE12 3.01 Apply systems thinking through compromise and opti

Quiz
•
9th - 12th Grade
20 questions
C Programming Pre-Test

Quiz
•
9th Grade
25 questions
Apparel 1 3.03-Construction Part 2

Quiz
•
9th - 12th Grade
21 questions
scratch

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Biomolecules

Quiz
•
9th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade