Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Python Lists.docx
1. 1/25/23, 8:21 AM Python Lists
https://quizizz.com/print/quiz/634fea5328d616001d5fd848 1/6
1. Data Structures are used to group multiple items?
A False B T rue
2. How many values can a variable store?
A 1 B 456743
C 11 D 4
3. Why would you use lists ina program instead of variables?
NAME :
CLASS :
Python Lists
15 Questions
DAT E :
2. 1/25/23, 8:21 AM Python Lists
https://quizizz.com/print/quiz/634fea5328d616001d5fd848 2/6
D
D
4. Which brackets are used to create Lists?
A {} B []
C ()
5. Spot the error in this program:
friends = Alice", "Bob","Liz"]
A friends = B "Bob",
C "Liz"] D Alice"
6. What does .append () do?
To add a new item to a specified position
in thelist.
T o delete the item specified.
To find the index of a specific item. To add a new item to the end of the list.
7. What does .insert() do?
T o find the index of aspecific item.
T o add a new item to a specified position
in the list.
T o delete theitem specified. To find the index of a specific item.
A B
C
A B
C
3. 1/25/23, 8:21 AM Python Lists
https://quizizz.com/print/quiz/634fea5328d616001d5fd848 3/6
B
D
B
8. what does .remove() do?
To find the index of a specific item. To delete the item specified.
To add a new item to a specified position
in thelist.
T o add a new item to a specified position
in the list.
9. What is a Variable
Represents a particular value held inthe
memory.
T akes and input from a user.
Displays the results.
10. What is a syntaxerror?
Part of the code breaks the rules of the
programming language.
A sequence of characters.
Asequenceof lines. A type ofencryption.
11. What is String in Python?
T/F Whole numbers only
Decimal numbers.
A sequence of characters. they can be
letters, numbers, symbols, punctuation
marks or spaces.
A
C D
A B
C
A B
C
A
C D
4. 1/25/23, 8:21 AM Python Lists
https://quizizz.com/print/quiz/634fea5328d616001d5fd848 4/6
B
12. What is Input inPython?
Data sent to a computer for processing. Decimalnumbers.
A sequence of characters. they can be
letters, numbers, symbols, punctuation
marks or spaces.
T /F
13. What is Integer inPython?
Decimal numbers.
A sequence of characters. they can be
letters, numbers, symbols, punctuation
marks or spaces.
Part of the code breaks the rules of the
programming language.
Anorganisedcollectionofrelated
elements.
A
C D
A
Whole numbers both positive and
negative.
B
C Data sent to a computerfor processing. D
14.
A
What is a Data structure?
A sequence of lines. B
C A type of encryption. D
5. 1/25/23, 8:21 AM Python Lists
https://quizizz.com/print/quiz/634fea5328d616001d5fd848 5/6
Holds a single value.
Is used to output information on the
user's screen.
15. What does Print () do?
A Acts as a guide B
C Helps people understand code. D
6. 1/25/23, 8:21 AM Python Lists
https://quizizz.com/print/quiz/634fea5328d616001d5fd848 6/6