
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
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"
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Teste Diagnóstico 11º TI

Quiz
•
11th Grade
15 questions
Python Battle Royale: Who Will Survive in the End?❤️🤔

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

Quiz
•
9th Grade
20 questions
Питон П411

Quiz
•
9th - 12th Grade
16 questions
Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Quiz
•
11th Grade - University
18 questions
Python Library Routines Quiz

Quiz
•
10th Grade - University
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
11 questions
ОГЭ 4 урок. Системы счисления и типы данных.

Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade