FOR and WHILE loop in Python

Quiz
•
Computers, English
•
9th - 12th Grade
•
Hard
Doria Grbić
Used 105+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which type of loop can be made into an infinite loop?
for loop
while loop
both
none of the above
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A condition is
a loop that repeats parts of the code
an operator
a sequence of steps
a statement that checks whether something is true or false
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these codes will print all numbers from 1 up to 20 (including 20).
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which type of loop will execute a known number of times?
while loop
for loop
if statement
none of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which type of loop would be best in a program for adding money into a savings account until it reaches 10000 kuna.
for loop
while loop
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In for i in range (a, n, k) which letter indicates the start?
i
k
a
n
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which type of loop has a logical expression in the condition?
for loop
while loop
both
none of the above
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Computer science paper 2

Quiz
•
10th Grade
18 questions
Python basics

Quiz
•
7th - 10th Grade
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
19 questions
AQA GCSE Computer Science - 3.1.1 Representing Algorithms

Quiz
•
8th - 10th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
16 questions
Iteration Recap

Quiz
•
8th - 9th Grade
16 questions
Flow charts and pseudo code

Quiz
•
9th - 11th Grade
20 questions
Python while loops

Quiz
•
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 Computers
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
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th 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