
Python Programming Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Navitha Gunalan
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct extension for Python files?
.py
.python
.pyt
.pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid variable name in Python?
my_variable
2nd_variable
variable_2
_variable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which keyword is used to define a function?
define
def
function
func
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python expression? print(2 ** 3)
6
8
9
16
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a data type in Python?
int
float
real
str
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to remove the last item from a list?
remove()
pop()
delete()
discard()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? x = [1, 2, 3] y = x y.append(4) print(x)
[1, 2, 3]
[1, 2, 3, 4]
[1, 2, 4]
Error
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
15 questions
Computer and Other Human Inventions
Quiz
•
University
15 questions
Robotics Prelim
Quiz
•
University
17 questions
Archivos
Quiz
•
University
20 questions
Digital and Analog transmission
Quiz
•
University
15 questions
GIS Unit III
Quiz
•
University
20 questions
STS Informatika
Quiz
•
10th Grade - University
15 questions
ADB Quiz #1
Quiz
•
University
20 questions
Quiz Harian Gdevelop MPK
Quiz
•
University
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
