
Python Quiz

Quiz
•
Computers
•
1st Grade
•
Medium
Adham Elmuntser
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
25 questions
Analisis Data

Quiz
•
1st - 5th Grade
15 questions
array

Quiz
•
1st - 5th Grade
20 questions
Язык программирования Python

Quiz
•
1st - 10th Grade
15 questions
iav ML Study Group Pop Quiz 3

Quiz
•
1st - 2nd Grade
15 questions
PYTS

Quiz
•
1st Grade
20 questions
National 5 Programming (VB and Theory)

Quiz
•
1st - 11th Grade
15 questions
FinalTest

Quiz
•
1st - 2nd Grade
24 questions
Kata JS

Quiz
•
1st Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade