
Python Quiz
Authored by Adham Elmuntser
Computers
1st Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
Loops
Quiz
•
KG - 4th Grade
25 questions
Introduction to Python
Quiz
•
KG - University
20 questions
ASK Form 2 : Persekitaran Kod Arahan
Quiz
•
1st - 5th Grade
15 questions
AWS Cloud Practitioner RELX Quiz 3
Quiz
•
1st Grade
20 questions
SC025 - Topic 1 (Introduction to Programming
Quiz
•
KG - 12th Grade
20 questions
Programming Quiz
Quiz
•
1st - 10th Grade
15 questions
Ipad
Quiz
•
1st Grade - Professio...
20 questions
วิทยาการคำนวณ ม.3
Quiz
•
1st Grade
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
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade