Basic Python data structures assessment

Jun 12, 2013 • Philipp Bayer

Designed to split into “novice” and “intermediate/expert”

Novice: Which of these basic data structures are ordered? (Mark all that apply)

A) List
B) Dictionary
C) Set
D) Tuples

Intermediate: You have many users and you need to store their passwords so that when they log in, you can tell whether the entered password is correct in the fastest way possible. Which is the appropriate data-structure for that? (Mark one)

A) Tuples
B) Dictionary
C) Set
D) List