Python Quiz (Loops)

Python Quiz (Loops)

KG - 6th Grade

5 Qs

quiz-placeholder

Similar activities

G7_ICT_1.1_Digital Data

G7_ICT_1.1_Digital Data

7th Grade

10 Qs

Sharing Santai #5 OJS & ABC

Sharing Santai #5 OJS & ABC

1st - 3rd Grade

10 Qs

استعني علي الشقا بالله

استعني علي الشقا بالله

University

10 Qs

тест про компьютер

тест про компьютер

5th Grade

10 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

KUIZ ICT ONLINE TAHUN 2

KUIZ ICT ONLINE TAHUN 2

2nd Grade

10 Qs

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

11th - 12th Grade

10 Qs

Bài 6_Lớp 11_Tại lớp

Bài 6_Lớp 11_Tại lớp

12th Grade

10 Qs

Python Quiz (Loops)

Python Quiz (Loops)

Assessment

Quiz

Computers

KG - 6th Grade

Practice Problem

Medium

Created by

Jerry Xiao

Used 43+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

True or False: Reducing the duplication of code is one of the advantages of using a loop structure.

True

False

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

True or False: The output of the following code is “cat”


pets = ["cat", "dog"]

print(pets[0][0])

True

False

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

True or False: The output of these two loops is the same


for num in range(4):ㅤㅤ

print(num)


for num in range(1, 5):ㅤㅤ

print(num)

True

False

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What’s the output of the following code


for num in range(2, 9, 2):

print(num)

2 4 6 8

2 5 8

1 3 5 7 9

2 3 4 5 6 7 8 9

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

When will the following loop terminate?


while keep_on_going != 999:

When keep_on_going is greater than 999

When keep_on_going is not equal to 999

When keep_on_going is equal to 999

When keep_on_going is less than 999

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?