CS112 Mid-Term Exam Study Guide โ all 2010
The mid-term exam will integrate all topics addressed in lecture, lab, and the text reading
assignments. Following is a general (i.e., non-exhaustive) list of topics addressed in these
resources:
โข Pseudocode โwhat is its purpose, why is it important, are there any syntactical
requirements, etc.
โข Indentation โ why is it important in Python, how does it define the concept of a logical
code block, which code should be indented, how does it indicate association, etc.
โข Identifiers โ what do they represent, where are they used, what are the syntactical
requirements governing their creation, what are reserved/key words, etc.
โข Variables โ what are they, what do they reference, what data types can they represent, in
what contexts can they be used, what general conventions are used in selecting their
names, how are they declared and initialized, etc.
โข Expression โ what is an expression, where are they used, what does it mean to resolve an
expression, etc.
โข Statement โ what is a statement, where are they used, how are they different from an
expression, can logical statement lines be extended across physical lines, etc.
โข Operators โ what types of operators are available in Python, what is meant by operator
precedence, what is an overloaded operator, etc.
โข Conditional Operators โ what is their purpose, how are they used in conjunction with
control structures, etc.
โข Boolean operators โ how do they work, how are they used in conjunction with control
structures, how are they used in conjunction with conditional operators to create complex
boolean expressions for use with control structures, how can they be used to implement
decisions, etc.
โข Control structures (Conditional Branching) โ if statements, if-elif statements, if-elif-
else statements: how do these structures work, what types of decisions are involved in
their proper operation, how do they alter the natural sequential flow of the code, etc.
โข Control structures (Looping) โ for statements, while statements: how do these
structures work, what types of decisions are involved in their proper operation, how do
they alter the natural sequential flow of the code, how can for statements be used with
iterable data types, etc.