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
15 questions
Quiz Array Kelas XI

Quiz
•
11th Grade
10 questions
PDS - 3DS - entrada do usuário com Python

Quiz
•
12th Grade
20 questions
Kuis Uji Pemahaman Python Fungsi Input, Output dan Operator

Quiz
•
11th Grade
17 questions
Arduino Quiz #10: Arrays and Loops

Quiz
•
11th Grade
20 questions
Grade 11(Quiz 1)

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

Quiz
•
12th Grade - University
14 questions
Kuis XI

Quiz
•
11th Grade
10 questions
Python Module 2 Section 6 Review

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University