CS 170 Exam Three Terms and Concepts
Previous material
You are expected to remember and be able to use the concepts that
were covered on Exams 1 and 2, such as assignment statements, functions,
for and while loops, accumulation patterns and selection (if/else/elif)
statements, mod operation, functions
for manipulating strings, among other things.
Lists
- lists: know how to create lists, index list elements,
manipulate lists, change the contents of lists, know len, min
and max functions, concatenation, list accumulation loops,
list methods (such as append, remove, sort)
Files
- files: how to work with files including open
function, various ways to read data from files, especially f.read()
and using a for loop over a file line by line
- split: method for strings, including default empty argument
and using string delimiter arguments
Strings
- string methods: know how to use find, count, upper, lower,
replace methods on strings, know how to do multiple assignment and
return
Mutability
- mutable and immutable objects: understand what mutable and
immutable mean, know which data types fit into which category
Dictionaries
- dictionaries: know what Python dictionaries are, know how
to use them, know why/when to use them, know how to store values in
a dictionary, access values using a key, know the keys and values
methods for dictionaries, know how to use a for loop to loop
through dictionary items