Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Algoritma dalam Kehidupan Sehari-hari

Algoritma dalam Kehidupan Sehari-hari

11th Grade

10 Qs

Quiz sobre React Native

Quiz sobre React Native

12th Grade

15 Qs

TẠO BIỂU MẪU TRONG HTML

TẠO BIỂU MẪU TRONG HTML

12th Grade

10 Qs

Quiz sur le langage PHP

Quiz sur le langage PHP

12th Grade

15 Qs

Proses Komputasional dan Pseudocode

Proses Komputasional dan Pseudocode

10th Grade - University

20 Qs

Uji Pengetahuan Teknologi Informasi

Uji Pengetahuan Teknologi Informasi

9th Grade - University

20 Qs

COMPUTERIZED ACCOUNTING

COMPUTERIZED ACCOUNTING

12th Grade

20 Qs

Ujian Sumatif Informatika

Ujian Sumatif Informatika

10th Grade

20 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Practice Problem

Hard

Created by

Fadi Fadi

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? python Copy x = 5 y = 10 z = x + y print(z)

15

5

10

50

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements correctly assigns the value 10 to a variable a?

a = 10

10 = a

a := 10

a < 10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of input() function's return value?

int

str

float

bool

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function would you use to convert a string "123" into an integer in Python?

float("123")

int("123")

str("123")

eval("123")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? python Copy x = "5" y = int(x) + 10 print(y)

15

"510"

5

"15"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following code will convert the user input into a floating-point number?

float(input())

int(input())

str(input())

eval(input())

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of x after executing the following code? python Copy x = "10" x = int(x) + 5

15

"105"

10

"15"

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?