
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
14 questions
Elementos da Programação em Quiz

Quiz
•
12th Grade - University
10 questions
Post Test VLOOKUP dan HLOOKUP

Quiz
•
10th Grade
17 questions
Quiz sobre Vetores em Programação

Quiz
•
12th Grade
20 questions
Java Programming Quiz

Quiz
•
10th Grade
20 questions
Quizizz Pemograman Dasar

Quiz
•
10th Grade
15 questions
Quiz sobre el ornitorrinco y la programación

Quiz
•
8th Grade - University
15 questions
C++ Quiz 1

Quiz
•
12th Grade
10 questions
Asesmen Algoritma dan Pemogramanan

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
20 questions
Biomolecules

Quiz
•
9th Grade
21 questions
Lab Safety

Quiz
•
10th Grade