Python For

Python For

University

10 Qs

quiz-placeholder

Similar activities

Quiz - Control Structure in C programming

Quiz - Control Structure in C programming

University

15 Qs

Quiz 5: Loops

Quiz 5: Loops

University

10 Qs

Lists and Loops

Lists and Loops

University

9 Qs

Java Control Flow statements

Java Control Flow statements

University

10 Qs

Java Loops

Java Loops

University

10 Qs

Technical Quiz - Round 2

Technical Quiz - Round 2

University

15 Qs

Conditional and Iterative Statements

Conditional and Iterative Statements

University

10 Qs

for---Loop

for---Loop

3rd Grade - University

13 Qs

Python For

Python For

Assessment

Quiz

Computers

University

Medium

Created by

Tasanawan Soonklang

Used 30+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 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

30 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

30 sec • 1 pt

Media Image

How many lines that this program prints?

1

2

3

0

4.

MULTIPLE CHOICE QUESTION

30 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

30 sec • 1 pt

Media Image

how many lines that this program prints?

2

10

3

4

6.

MULTIPLE CHOICE QUESTION

30 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?