Unit3_9.3.4_Activity3

Unit3_9.3.4_Activity3

8th Grade

10 Qs

quiz-placeholder

Similar activities

Review loops

Review loops

8th Grade - University

12 Qs

Informatika kelas 8 semester 2

Informatika kelas 8 semester 2

8th Grade

15 Qs

html basics

html basics

8th Grade - University

11 Qs

Sumatif 2 Analisis Data

Sumatif 2 Analisis Data

8th Grade

8 Qs

Gò Nổi HK 2-Tin Học 5

Gò Nổi HK 2-Tin Học 5

5th Grade - University

14 Qs

SAS informatika kelas 8 S2

SAS informatika kelas 8 S2

8th Grade - University

15 Qs

Uji Pemahaman Data Kelas 6 SD

Uji Pemahaman Data Kelas 6 SD

6th Grade - University

15 Qs

ASESMEN FORMATIF

ASESMEN FORMATIF

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?