Python Programming Quiz

Python Programming Quiz

8th Grade

•

40 Qs

quiz-placeholder

Similar activities

Final Exam Review (CA)

Final Exam Review (CA)

KG - University

•

38 Qs

Unit 1 Quiz

Unit 1 Quiz

8th Grade

•

40 Qs

Python Programming

Python Programming

5th - 9th Grade

•

37 Qs

ICR - Data Types & Flowcharts

ICR - Data Types & Flowcharts

6th - 8th Grade

•

41 Qs

Unit 9.1 - Textual Programming

Unit 9.1 - Textual Programming

8th Grade - University

•

35 Qs

Chį»§ đề 1: CĂN Bįŗ¢N VỀ CƔNG NGHỆ (GS6 Spark LV2_2024)

Chį»§ đề 1: CĂN Bįŗ¢N VỀ CƔNG NGHỆ (GS6 Spark LV2_2024)

1st Grade - University

•

38 Qs

Year 8 - Computer Systems - Topic Test

Year 8 - Computer Systems - Topic Test

8th Grade

•

41 Qs

6. SINIF 2022 2. DƖNEM 1. SINAV ƇALIŞMA SORULARI

6. SINIF 2022 2. DƖNEM 1. SINAV ƇALIŞMA SORULARI

5th - 10th Grade

•

44 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

•

Computers

•

8th Grade

•

Practice Problem

•

Easy

Created by

HoangViet Phannguyen

Used 176+ times

FREE Resource

AI

Enhance your content in a minute

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

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if a while loop's condition is never false?

It stops after 10 iterations

It throws an error

It runs infinitely

It runs once

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does len(my_list) return for my_list = [1, 2, 3]?

2

3

1

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the error in this code?

4 should be in brackets [4]

my_list[3] should be my_list(3)

Index 3 is out of range

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does range(1, 4) generate in a for loop?

4, 3, 2, 1

0, 1, 2, 3

1, 2, 3

1, 2, 3, 4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code below in Python?

5.77

5.76543

5.76

5.765

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code below in Python?

2

2.5

1

10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is wrong with this code?

The second condition will never execute

elif should be else if

num is not defined

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?