Docsity

Programming I - Exam 1 Review Sheet | EECS 168, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
EECS 168 - Fall 2008
Review Material for Exam 1
Administrative
• When: October 3, 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 1-4 of Savitch.
• Material covered in text, lectures, labs, and assignments.
Topic Review
• Chapter 1: Introduction
o Know the basic concepts of computer and information processing.
o Know the software and hardware components, and their functions, of a
computer system.
o Understand algorithmic problem solving using computer.
o Understand languages and translation, compilation and execution of programs.
o Understand software life cycle.
o Understand basic C++ program structure and different types of program
errors.
o Understand the general approach in testing and debugging a program.
• Chapter 2: Basic C++ Constructs
o Variables and constant identifiers.
o Declaration, initialization, and assignment statements.
o Executable and non-executable statements.
o Simple interactive I/O using cin and cout.
o Include and using directives.
o Data types, type compatibilities and type casting, and expressions.
o Arithmetic, relational, and logical operators; operator hierarchy and evaluation
of expressions.
o Understand flow of control and the basic concepts of selection and looping.
o Simple branching using if-else statements.
pf2

Partial preview of the text

Download Programming I - Exam 1 Review Sheet | EECS 168 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

EECS 168 - Fall 2008

Review Material for Exam 1

Administrative

  • When: October 3, 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 1-4 of Savitch.
  • Material covered in text, lectures, labs, and assignments.

Topic Review

  • Chapter 1: Introduction o Know the basic concepts of computer and information processing. o Know the software and hardware components, and their functions, of a computer system. o Understand algorithmic problem solving using computer. o Understand languages and translation, compilation and execution of programs. o Understand software life cycle. o Understand basic C++ program structure and different types of program errors. o Understand the general approach in testing and debugging a program.
  • Chapter 2: Basic C++ Constructs o Variables and constant identifiers. o Declaration, initialization, and assignment statements. o Executable and non-executable statements. o Simple interactive I/O using cin and cout. o Include and using directives. o Data types, type compatibilities and type casting, and expressions. o Arithmetic, relational, and logical operators; operator hierarchy and evaluation of expressions. o Understand flow of control and the basic concepts of selection and looping. o Simple branching using if-else statements.

o Repetition using while- and do-while- loops. o Be able to identify and correct errors in programs. o Be able to execute and generate correct output for programs. o Be able to design and implement C++ programs for various applications.

  • Chapter 3: Flow of Control o Boolean expressions and their applications in branching. o Selection using if-else, nested if-else, and switch statements. o While-, do-while-, and for- loops for repetition. o Nested loop structures. o Designing and debugging loop structures. o Be able to design, implement, and execute codes containing if-else, nested if- else, switch, while-loop, do-while loop, for loop, and nested loop structures.
  • 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.

Hints

  • Be sure to read and study the Chapter Summary , Self-Test Exercises , and Programming projects throughout the chapter. (The Programming Problems are usually less helpful when studying for exams, however.)
  • Read, execute, and be sure you understand Savitch's code.