wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PSP Week 5

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.
Sequences can have duplicates, while sets cannot.
a)
True
b)
False
2.

In Python, the frist element of a list is at position 1.

a)
True
b)
False
3.
A sequence is a collection of elements with no ordering.
a)
True
b)
False
4.
In Python, the last element of a list is at position len(nameList). (the nameList is a python list)
a)
True
b)
False
5.
In Python, indexing of lists is one-based.
a)
True
b)
False
6.
The length of an empty list in Python is 0.
a)
True
b)
False
7.
The append method in Python adds an item to the beginning of the list.
a)
True
b)
False
8.
The while loop in linear search terminates when the condition is false.
a)
True
b)
False
9.
Assert statements are used for debugging.
a)
True
b)
False
10.
Insertion sort has a time complexity of O(n^2).
a)
True
b)
False