What will this code print?

Unit3_9.3.4_Activity3

Quiz
•
Information Technology (IT)
•
8th Grade
•
Medium
Mai Đàm
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
2,3,4,5,6
2,4,6
2,4,5,6
2,3,5
2.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What is wrong with this code?
It will print numbers in reverse order
It will not run because range(5,0) is incorrect
It will print only 5
It will print an error message
3.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What does range(1, 6, 2) generate?
1,2,3,4,5
1,3,5
1,3,5,6
1,2,3,4
4.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Which loop correctly counts from 10 to 1?
for i in range(10, 1, -1):
for i in range(10, 0, -1):
for i in range(10, 0):
for i in range(10, -1, -1):
5.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What happens if range(5, 5) is used?
It prints 5
It prints an error
It prints nothing
It prints 5,4,3,2,1
6.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
How many times does this loop run?
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Which part of range(start, stop, step) controls how the loop increments?
start
stop
step
none
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Level Two Quiz

Quiz
•
6th - 8th Grade
14 questions
Google sheets

Quiz
•
7th Grade - University
11 questions
8 сынып Циклдик

Quiz
•
8th Grade
10 questions
Informatika 2

Quiz
•
7th Grade - University
12 questions
3 TRI avaliação 2,0 pontos

Quiz
•
8th Grade
15 questions
Informatika kelas 8 semester 2

Quiz
•
8th Grade
10 questions
Python

Quiz
•
8th Grade
12 questions
Review loops

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade