Python For

Python For

University

10 Qs

quiz-placeholder

Similar activities

Quiz 8: Arrays&Vector

Quiz 8: Arrays&Vector

University

10 Qs

Loops

Loops

University

9 Qs

8D.1 Intro to Python Exit

8D.1 Intro to Python Exit

7th Grade - University

6 Qs

Python Basics

Python Basics

1st Grade - University

9 Qs

Soal MS Excel

Soal MS Excel

11th Grade - University

10 Qs

HTML beginners quiz

HTML beginners quiz

9th Grade - Professional Development

13 Qs

Debugging-Duel-CodeUp'25

Debugging-Duel-CodeUp'25

University

10 Qs

Input and Output

Input and Output

University

10 Qs

Python For

Python For

Assessment

Quiz

Computers

University

Medium

Created by

Tasanawan Soonklang

Used 51+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the syntax for a "for" loop in Python?

for i in range(5):

for i = 1 to 5:

for i in 0..4:

for (i=0; i<5; i++):

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Which variable that use to access the current element of a "for" loop?

fruit

x

i

fruits

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

How many lines that this program prints?

1

2

3

0

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this program?

3

4

5

6

7

3

4

5

6

1

2

3

4

5

6

7

1

3

5

7

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

how many lines that this program prints?

2

10

3

4

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this program?

2

6

9

2

5

8

3

6

9

3

5

7

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which range function give the same list of

range(0, 5, 1)

range(0, 5)

range(5)

range(5, 1)

range(1, 5)

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?