What will this code print?

Unit3_9.3.4_Activity3

Quiz
•
Mai Đàm
•
Information Technology (IT)
•
8th Grade
•
1 plays
•
Medium
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
7 questions
Questionário - Prog. I

Quiz
•
6th - 8th Grade
15 questions
Sumatif 2-TIK Kelas 8

Quiz
•
8th Grade - University
10 questions
Quiz Ms. Excel

Quiz
•
8th Grade
10 questions
tes sumati informatika kls 8 bab 6

Quiz
•
8th Grade
10 questions
Циклы в программировании

Quiz
•
8th Grade
12 questions
Основы алгоритмизации для 8 класса

Quiz
•
8th Grade
10 questions
Arrays in CQuiz

Quiz
•
1st Grade - University
10 questions
Vlookup dan Hlookup

Quiz
•
8th Grade
Popular Resources on Quizizz
39 questions
Respect and How to Show It

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
Discover more resources for Information Technology (IT)
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
30 questions
9 Square Quizizz

Quiz
•
7th - 8th Grade
70 questions
Fun Trivia

Quiz
•
7th - 8th Grade
37 questions
Math 8 SOL Review

Quiz
•
8th Grade
15 questions
Math Review

Quiz
•
8th Grade
20 questions
Common Grammar Mistakes

Quiz
•
7th - 12th Grade
10 questions
Memorial Day Knowledge Assessment

Interactive video
•
4th - 8th Grade