
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
21 questions
CPA MS-Office Hotkeys Quiz
Quiz
•
8th Grade - Professio...
16 questions
Algo Quiz
Quiz
•
University
20 questions
UNIT IV Normalization
Quiz
•
University
19 questions
Informatika Kelas 5 Bab 2
Quiz
•
5th Grade - University
18 questions
Quiz on Misinformation and Bias
Quiz
•
10th Grade - University
20 questions
DI (EM24) - Diseño de Contenidos (T8)
Quiz
•
University - Professi...
20 questions
The Internet
Quiz
•
University
20 questions
COA_QUIZ_UNIT I
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
