Python PRIMM L5

Python PRIMM L5

6th Grade

6 Qs

quiz-placeholder

Similar activities

TMK

TMK

6th Grade

10 Qs

G7-Excel 2

G7-Excel 2

6th Grade

10 Qs

Trò chơi " Ai nhanh tay hơn"

Trò chơi " Ai nhanh tay hơn"

6th Grade

10 Qs

TMK TAHUN 6

TMK TAHUN 6

4th - 6th Grade

10 Qs

PAS TIK kelas 6

PAS TIK kelas 6

6th Grade

11 Qs

pictoblox_lvl_1

pictoblox_lvl_1

2nd Grade - University

10 Qs

Los periféricos del computador

Los periféricos del computador

1st Grade - Professional Development

9 Qs

Objetos cotidianos del ayer

Objetos cotidianos del ayer

1st - 6th Grade

10 Qs

Python PRIMM L5

Python PRIMM L5

Assessment

Quiz

Computers

6th Grade

Practice Problem

Hard

Created by

Matthew Kelsall

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? ```python for i in range(3): print(i) ```

`0 1 2`

`1 2 3`

`0 1 2 3`

`1 2`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? ```python for i in range(1, 5): print(i * 2) ```

`2 4 6 8`

`1 2 3 4`

`2 3 4 5`

`4 6 8 10`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you iterate over a list of numbers from 0 to 9 using a for loop?

`for i in range(10):`

`for i in range(0, 9):`

`for i in range(1, 10):`

`for i in range(0, 10):`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? ```python for i in range(2, 10, 2): print(i) ```

`2 4 6 8`

`2 3 4 5`

`2 4 6 8 10`

`1 3 5 7 9`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to iterate backwards from 5 to 1 using a for loop, which of the following is correct?

`for i in range(5, 0, -1):`

`for i in range(5, 1, -1):`

`for i in range(5, -1, -1):`

`for i in range(5, 0):`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? ```python for i in range(0, 5, 2): print(i) ```

`0 1 2 3 4`

`0 2 4`

`1 3 5`

`2 4 6`

Access all questions and much more by creating a free account

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

Already have an account?