Python For

Python For

University

10 Qs

quiz-placeholder

Similar activities

Day 1 Quiz

Day 1 Quiz

11th Grade - University

12 Qs

Machine Learning and Python.

Machine Learning and Python.

University

10 Qs

Python

Python

University

10 Qs

while loop

while loop

University

15 Qs

Python Quiz

Python Quiz

9th Grade - Professional Development

10 Qs

Java Programming Structures

Java Programming Structures

University

9 Qs

Phyton-1

Phyton-1

University

12 Qs

Java Static

Java Static

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?