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 Wayground
10 questions
tes sumati informatika kls 8 bab 6

Quiz
•
8th Grade
11 questions
soal latihan tik kelas 8

Quiz
•
8th Grade
10 questions
LOOPS AND FLOW CONTROL STATEMENTS

Quiz
•
8th Grade
15 questions
Understanding Loops in C Programming

Quiz
•
1st Grade - University
7 questions
Daniel Popel

Quiz
•
8th Grade
15 questions
IT/CS Review Quizzizz

Quiz
•
6th Grade - University
15 questions
Quiz về Kiểu Dữ Liệu List và Set (1)

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

Quiz
•
8th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade