
Python Programming Quiz
Quiz
•
Computers
•
Professional Development
•
Medium
ERROL ANTONIO
Used 7+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to get user input in Python 3?
input()
raw_input()
scan()
read()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to check if x is equal to 10?
x = 10:
x == 10:
x := 10:
x === 10:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for exponentiation in Python?
^
**
pow
^^
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(5 // 2)?
2.5
2
3
2.0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will float(3) return?
"3.0"
3.0
"3"
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function converts a string "10" into an integer?
str("10")
int("10")
integer("10")
str(int("10"))
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to write a single-line comment in Python?
/* comment */
""" comment """
#comment
// comment //
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Chadev AI Coding Assistant
Quiz
•
Professional Development
15 questions
Python Skills
Quiz
•
1st Grade - Professio...
10 questions
02 - Python - Introduction & Installation
Quiz
•
University - Professi...
20 questions
Python QUIZ 02
Quiz
•
KG - Professional Dev...
12 questions
Neural Networks Basic with Python
Quiz
•
University - Professi...
15 questions
Fundamentals I. Final de módulo
Quiz
•
Professional Development
10 questions
Batch 1
Quiz
•
Professional Development
15 questions
Social Media Basics for Educators
Quiz
•
9th Grade - Professio...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
