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

Python Programming Quiz

Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Hard
Fadi Fadi
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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"
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Питон П411

Quiz
•
9th - 12th Grade
15 questions
Kuis Pemrograman Python: Kalkulator Sederhana

Quiz
•
11th Grade
18 questions
Python Library Routines Quiz

Quiz
•
10th Grade - University
15 questions
แข่งขันcodingม.ต้น

Quiz
•
12th Grade - University
15 questions
Pemrograman Terstruktur Semester 2 (1) Fungsi

Quiz
•
10th Grade
10 questions
Teste Diagnóstico 11º TI

Quiz
•
11th Grade
10 questions
Python Variables Quiz

Quiz
•
12th Grade
20 questions
Python Basics Quiz for Year 9

Quiz
•
9th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Information Technology (IT)
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
24 questions
LSO - Virus, Bacteria, Classification - sol review 2025

Quiz
•
9th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade