
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
20 questions
Python Proficiency for College Students

Quiz
•
Professional Development
10 questions
Macro Quizz

Quiz
•
Professional Development
10 questions
Bonnes pratiques de la boite mail

Quiz
•
Professional Development
15 questions
PYTHON INTRODUCTION

Quiz
•
Professional Development
15 questions
coding

Quiz
•
KG - Professional Dev...
20 questions
Fundamentals I. Principio de módulo

Quiz
•
Professional Development
11 questions
Sécurité en ligne

Quiz
•
Professional Development
10 questions
Python Jetcode

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade