
Python Programming Quiz
Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Practice Problem
•
Hard
Fadi Fadi
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
COMPUTERIZED ACCOUNTING
Quiz
•
12th Grade
15 questions
Quiz sobre React Native
Quiz
•
12th Grade
10 questions
TẠO BIỂU MẪU TRONG HTML
Quiz
•
12th Grade
15 questions
Quiz sur le langage PHP
Quiz
•
12th Grade
20 questions
Proses Komputasional dan Pseudocode
Quiz
•
10th Grade - University
11 questions
Структурированный тип данных массив
Quiz
•
10th Grade - University
20 questions
Uji Pengetahuan Teknologi Informasi
Quiz
•
9th Grade - University
20 questions
Media and Information Literacy
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
