
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
21 questions
Memory I

Quiz
•
9th - 10th Grade
20 questions
Python-Looping

Quiz
•
7th Grade - Professio...
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
20 questions
Logo Quiz

Quiz
•
6th Grade - University
20 questions
Fingerprint Pattern Quiz

Quiz
•
9th - 12th Grade
20 questions
FTC Simulator JAVA Block Programming Movement & Sensors

Quiz
•
9th - 12th Grade
20 questions
3.02 Health Informatics

Quiz
•
9th - 12th Grade
20 questions
AP CSP Fall Final Review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Other
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade
14 questions
Points, Lines, Planes

Quiz
•
9th Grade