This quiz assesses knowledge on Python lists and dictionaries, covering creation, manipulation, and built-in functions. It is designed for learners to test their understanding of basic data structures in Python, crucial for programming and software development.
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘hello’]
[‘llo’]
[‘olleh’]
Rate this question:
5
4
None
Error
Rate this question:
2445
133
12454
123
Rate this question:
1
9
15
Error
Rate this question:
Error
None
25
2
Rate this question:
[2, 33, 222, 14]
Error
25
[25, 14, 222, 33, 2]
Rate this question:
[2, 6, 4]
[1, 3, 2, 1, 3]
[1, 3, 2, 1, 3, 2]
[1, 3, 2, 3, 2, 1]
Rate this question:
List1.add(5)
List1.append(5)
List1.addLast(5)
List1.addEnd(5)
Rate this question:
[3, 4, 5, 20, 5, 25, 1, 3]
[1, 3, 3, 4, 5, 5, 20, 25]
[25, 20, 5, 5, 4, 3, 3, 1]
[3, 1, 25, 5, 20, 5, 4, 3]
Rate this question:
[3, 4, 5, 20, 5, 25, 1, 3, 34, 5]
[1, 3, 3, 4, 5, 5, 20, 25, 34, 5]
[25, 20, 5, 5, 4, 3, 3, 1, 34, 5]
[1, 3, 4, 5, 20, 5, 25, 3, 34, 5]
Rate this question:
[3, 4, 5, 20, 5, 25, 1, 3]
[1, 3, 3, 4, 5, 5, 20, 25]
[3, 5, 20, 5, 25, 1, 3]
[1, 3, 4, 5, 20, 5, 25]
Rate this question:
[3, 4, 5, 20, 5, 25, 1]
[1, 3, 3, 4, 5, 5, 20, 25]
[3, 5, 20, 5, 25, 1, 3]
[1, 3, 4, 5, 20, 5, 25]
[“Welcome”, “to”, “Python”]
(“Welcome”, “to”, “Python”)
{“Welcome”, “to”, “Python”}
“Welcome”, “to”, “Python”
Rate this question:
[‘a’, ‘b’, ‘c’, ‘d’]
[‘a b c d’]
[‘a#b#c#d’]
[‘abcd’]
Rate this question:
Lists
Dictionary
Set
All of the mentioned
Rate this question:
2
4
5
8
Rate this question:
D = {}
D = {“john”:40, “peter”:45}
D = {40:”john”, 45:”peter”}
All of the mentioned
Rate this question:
“john”, 40, 45, and “peter”
“john” and “peter”
40 and 45
D = (40:”john”, 45:”peter”)
Rate this question:
True
False
None
Error
Rate this question:
The values of a dictionary can be accessed using keys
The keys of a dictionary can be accessed using values
Dictionaries aren’t ordered
Dictionaries are mutable
Rate this question:
{1: ‘A’, 2: ‘B’}
Dict([[1,”A”],[2,”B”]])
{1,”A”,2”B”}
{ }
Rate this question:
1 A 2 B 3 C
1 2 3
A B C
1:”A” 2:”B” 3:”C”
Rate this question:
1
A
4
Invalid syntax for get method
Rate this question:
Error, invalid syntax
A
5
4
Rate this question:
More than one key can have the same value
The values of the dictionary can be accessed as dict[key]
Values of a dictionary must be unique
Values of a dictionary can be a mixture of letters and numbers
Rate this question:
Method del doesn’t exist for the dictionary
Del deletes the values in the dictionary
Del deletes the entire dictionary
Del deletes the keys in the dictionary
Rate this question:
Removes an arbitrary element
Removes all the key-value pairs
Removes the key-value pair for the key given as an argument
Invalid method for dictionary
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.