// Data Structures

Data Structures Quiz

// question 1 of 10
What is printed? print(""x"" in {""x"":1,""y"":2})
// question 2 of 10
What does close() do?
// question 3 of 10
What mode opens a file for reading?
// question 4 of 10
What is printed? with open(""a.txt"",""w"") as f: print(f.mode)
// question 5 of 10
What does values() return?
// question 6 of 10
Which brackets create a set?
// question 7 of 10
What does sort() do?
// question 8 of 10
What is printed? print((1,2)+(3,4))
// question 9 of 10
What is a tuple?
// question 10 of 10
What is printed? print([x for x in ""abc""])