Docsity

Review Material for Exam 2 | Programming I | EECS 168, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
EECS 168 - Fall 2008
Review Material for Exam 2
Warning: This Exam Review Guide is for Professor Kong’s EECS168 only.
Administrative
• When: November 7, Friday, 10:00-10:50am.
Read carefully all of the following items....
• Bring your KUID. You will not be allowed to take the exam without your KUID.
• The exam will be closed book, closed notes, and will be held in our regular
classroom.
• No calculators, cell phones, head phones, or electronic devices of any sort will be
allowed. No such devices should be out in the open.
• Once you start the exam, you will not be excused from the room for any reason
unless you turn in your exam. Once it is turned in, you cannot come back and
continue working on it.
Exam Coverage
• Chapters 4, 5, 6, 10, and 14 of Savitch.
• Material covered in text, lectures, labs, and assignments.
• Although emphasis will be on the materials covered after the first exam, you must
also review and acquire a working knowledge of all basic C++ language
constructs covered in our lectures and Chapters 1-4 of Savitch.
Topic Review
• Chapter 4: Procedural Abstraction and Functions
o Understand and be able to use top-down design with module programming in
program development.
o Understand and be able to use step-wise refining in modules development.
o Understand and be able to use predefined Functions in C++.
o Understand and be able to implement function declaration (prototype) and
function definition of programmer-defined functions in C++.
o Understand the difference between formal and actual parameters, calling and
called functions.
o Understand and be able to determine and use the scope of a variable and its
containing block.
o Understand and be able to define and use local and global variables.
o Understand and be able to pass parameters using call-by-value.
o Understand and be able to use function overloading.
o Understand and be able to use procedural abstraction and information hiding.
pf3

Partial preview of the text

Download Review Material for Exam 2 | Programming I | EECS 168 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

EECS 168 - Fall 2008

Review Material for Exam 2

Warning: This Exam Review Guide is for Professor Kong’s EECS168 only.

Administrative

  • When: November 7, Friday, 10:00-10:50am.

Read carefully all of the following items....

  • Bring your KUID. You will not be allowed to take the exam without your KUID.
  • The exam will be closed book, closed notes, and will be held in our regular classroom.
  • No calculators, cell phones, head phones, or electronic devices of any sort will be allowed. No such devices should be out in the open.
  • Once you start the exam, you will not be excused from the room for any reason unless you turn in your exam. Once it is turned in, you cannot come back and continue working on it.

Exam Coverage

  • Chapters 4, 5, 6, 10, and 14 of Savitch.
  • Material covered in text, lectures, labs, and assignments.
  • Although emphasis will be on the materials covered after the first exam, you must also review and acquire a working knowledge of all basic C++ language constructs covered in our lectures and Chapters 1-4 of Savitch.

Topic Review

  • Chapter 4: Procedural Abstraction and Functions o Understand and be able to use top-down design with module programming in program development. o Understand and be able to use step-wise refining in modules development. o Understand and be able to use predefined Functions in C++. o Understand and be able to implement function declaration (prototype) and function definition of programmer-defined functions in C++. o Understand the difference between formal and actual parameters, calling and called functions. o Understand and be able to determine and use the scope of a variable and its containing block. o Understand and be able to define and use local and global variables. o Understand and be able to pass parameters using call-by-value. o Understand and be able to use function overloading. o Understand and be able to use procedural abstraction and information hiding.

o Understand and be able to design, implement, and execute functions.

  • Chapter 5: More on Function and Parameter Passing o Understand and be able to implement void and value-returning functions. o Understand and be able to use call-by-value and call-by-reference in parameter passing. o Understand and be able to define and use pre- and post- conditions of functions. o Be able to design, implement, test and debug functions. o Understand functional abstraction and be able to use functions in problems solving. o Given a program with several functions, be able to execute the functions/program.
  • Chapter 14: Recursive Definition and Recursive Function o Understand the relation between recursive definitions and recursive functions. o Understand and be able to implement recursive function based on recursive definition. o Understand the four characteristics of recursive programs. o Be able to write simple recursive functions according to a given specification. o Understand activation record and stack and their usage in executing recursive function. o Understand the structure of recursion trees and be able to trace through recursive functions using recursion trees. o Understand different performance issues when designing iterative and recursive functions.
  • Chapter 6: Formatted and File I/O o Understand the basic characteristics of interactive and file I/O. o Understand I/O streams and be able to use stream objects. o Be able to declare and connect a stream object to an I/O file. o Understand and be able to open and close a file. o Understand and be able to use the fail and exit functions. o Understand and be able to pass stream objects and use file I/O in program development. o Understand the basic concepts of objects and classes, class structure including data member variables and member function, and the three basic OOP principles. o Understand and be able to use formatted output. o Understand and be able to use I/O manipulators to control output format. o Understand and be able to use character I/O using get and put member functions. o Understand and be able to use eof member function. o Understand and be able to develop and execute program using formatted and file I/O.
  • Chapter 10: Structs and classes o Know the difference between structs and classes in C++. o Understand and be able to define a struct/class type in C++. o Understand and be able to declare and initialize a struct/class object.