Python Programming Quiz

Python Programming Quiz

8th Grade

20 Qs

quiz-placeholder

Similar activities

G08- ICT Q1 Reviewer

G08- ICT Q1 Reviewer

8th Grade

20 Qs

Soal Latihan Blockly kelas 8

Soal Latihan Blockly kelas 8

8th Grade - University

23 Qs

INFORMATIKA KELAS VIII

INFORMATIKA KELAS VIII

8th Grade

25 Qs

Statements in Python

Statements in Python

8th Grade

20 Qs

LATIHAN SOAL KELAS VIII

LATIHAN SOAL KELAS VIII

8th Grade

20 Qs

Robotik Kodlama-Temel Bilgisayar Bilgisi

Robotik Kodlama-Temel Bilgisayar Bilgisi

6th - 8th Grade

15 Qs

Ulangan Harian Kelas XI

Ulangan Harian Kelas XI

2nd Grade - University

20 Qs

Tes Sumatif 2 informatika kls 8

Tes Sumatif 2 informatika kls 8

8th Grade - University

20 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

8th Grade

Practice Problem

Medium

Created by

Fadi Fadi

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code output? numbers = [1, 2, 3] for n in numbers: print(n + n)

1 2 3

2 4 6

1 4 9

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these correctly loops through a list called data?

loop data:

for data in i:

for item in data:

data for item:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed here? fruits = ["apple", "banana", "cherry"] print(fruits[-2])

apple

banana

cherry

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will this print "Hi"? for i in range(1, 5, 2): print("Hi")

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code? nums = [1, 3, 5] for n in nums: print(n * 2)

2 4 6

1 3 5

2 6 10

1 6 25

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this function return? def add(x, y=2): return x + y print(add(3))

Error

5

6

"x + y"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final value of total? numbers = [2, 4, 6] total = 1 for n in numbers: total *= n

12

48

0

1

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?