
Python Quiz
Quiz
•
Computers
•
1st Grade
•
Medium
Adham Elmuntser
Used 1+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add an element to the end of a list in Python?
add()
append()
insert()
extend()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: fruits = ['apple', 'banana', 'cherry']; print(fruits[3])?
apple
IndexError
None
cherry
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python module provides a basic implementation of arrays?
numpy
collections
array
sys
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the second element of a single-dimensional array defined as arr.array('i', [1, 2, 3, 4, 5])?
arr[2]
arr[1]
arr[0]
arr[-1]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: import numpy as np; multi_dim_array = np.array([[1, 2, 3], [4, 5, 6]]); print(multi_dim_array[1, 2])?
1
2
5
6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you represent a record in Python?
list
tuple
set
dictionary
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data structures in Python is unordered and does not allow duplicate values?
list
tuple
set
dictionary
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Python syntax quiz
Quiz
•
1st - 4th Grade
15 questions
Python Junior
Quiz
•
1st Grade
20 questions
Season 5 #Spaic Python Weekly Quiz
Quiz
•
KG - Professional Dev...
25 questions
Introduction to Python
Quiz
•
KG - University
20 questions
KSP-1
Quiz
•
1st Grade
15 questions
Python quiz
Quiz
•
1st - 3rd Grade
17 questions
Evaluación-1 de Python
Quiz
•
1st Grade - University
20 questions
ASK Form 2 : Persekitaran Kod Arahan
Quiz
•
1st - 5th Grade
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
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
18 questions
D189 1st Grade OG 1c Concept 37-38
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Force and Motion Concepts
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
5 questions
Sense and Response
Quiz
•
1st Grade