<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
// guest
▾
Login
Request Account
[ light ]
// Data Structures
Data Structures Quiz
// question 1 of 10
What does intersection() return?
Different values
All values
Common values
// question 2 of 10
What does len() return?
Number of items
Last item
First item
// question 3 of 10
What is printed? print([x for x in ""abc""])
abc
[""a"",""b"",""c""]
[""abc""]
// question 4 of 10
What is printed? print([x for x in range(5) if x%2==0])
[0,2,4]
[1,3,5]
[2,4]
// question 5 of 10
What is printed? print(len({1,2,3}))
1
2
3
// question 6 of 10
What does del do in dictionaries?
Removes a key
Sorts keys
Adds a key
// question 7 of 10
What is printed? print(set([1,1,2,3]))
{1,2,3}
[1,1,2,3]
Error
// question 8 of 10
What is printed? print({""a"":1}.get(""b""))
Error
None
0
// question 9 of 10
What is printed? print(len({""a"":1,""b"":2}))
2
Error
1
// question 10 of 10
What is a set?
A string method
An unordered collection of unique values
An indexed collection
Submit Answers →