Docsity

Structures of the Data Types - Study Guide | CS 112, Study notes of Computer Science

Toggle sidebar
bg1
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.
pf2

Partial preview of the text

Download Structures of the Data Types - Study Guide | CS 112 and more Study notes Computer Science in PDF only on Docsity!

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.
  • Built-in Functions โ€“ which ones have we discussed/used in lecture and lab/project exercises, how do they work, how are they used, what can they do for you, in which reference documentation can you learn more about them, etc.
  • References/Documentation โ€“ what are the available references for Python, where can they be found, how are they used, what does each contain, what is BNF, etc.
  • User Interface (CLI) โ€“ what constitutes a user interface, how is it implemented, what kinds of things should be considered when implementing a user interface in a command line environment, etc.
  • Menu โ€“ where should a menu be placed in the code and why, what things should be considered when designing a menu in a command line environment, what does a menu represent to potential users of the system, etc.
  • Standard I/O โ€“ what Python functions perform standard I/O, what type of data is provided by each of the basic input mechanisms, what are formatted print functions, how do formatted print statements work, etc.
  • Code Formatting โ€“ what kinds of information should be provided in files (e.g., headers, comments, etc.), what are the rules for creating variable names, how do you implement code so that output is formatted properly when printed, what is meant by appropriate use of white space, what is meant by making the code readable, what is meant by the term self-documenting code, etc.
  • Data Types/Structures โ€“ what are the different data types/structures discussed in lecture, what limitations are placed on the different types, what is meant by mutable/immutable, what is a sequence, what is a mapping, etc.
  • Program/Logical Flow โ€“ how does control flow through the code, what types of structures impact the normal sequential flow, what is meant by tracing the logical flow of the code, etc.
  • Errors โ€“ what are the three common types of errors involved in programming, which are easier/harder to detect and why, how are they detected, etc.
  • Error Messages โ€“ how are they interpreted, how are they used to find problems in the code, what types of errors do they signify, etc.