Unit3_9.3.4_Activity3

Unit3_9.3.4_Activity3

8th Grade

10 Qs

quiz-placeholder

Similar activities

Google sheets

Google sheets

7th Grade - University

14 Qs

KUIS INFORMATIKA

KUIS INFORMATIKA

8th Grade

10 Qs

8 сынып Циклдик

8 сынып Циклдик

8th Grade

11 Qs

Informatika 2

Informatika 2

7th Grade - University

10 Qs

Quiz de Programare C++

Quiz de Programare C++

7th Grade - University

8 Qs

IT/CS Review Quizzizz

IT/CS Review Quizzizz

6th Grade - University

15 Qs

Test z C++ - Klasa 8

Test z C++ - Klasa 8

8th Grade

10 Qs

Level Two Quiz

Level Two Quiz

6th - 8th Grade

10 Qs

Unit3_9.3.4_Activity3

Unit3_9.3.4_Activity3

Assessment

Quiz

Information Technology (IT)

8th Grade

Medium

Created by

Mai Đàm

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Media Image

What will this code print?

2,3,4,5,6

2,4,6

2,4,5,6

2,3,5

2.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?