Gold University of Minnesota M. Skip to main content.University of Minnesota. Home page.
 
 
 

What's inside.

Ta Email

Day Class Notes

Download Compiler

Evening Class Notes

Lab Notes

Linux For Windows

Office Hours

Schedule

Syllabus

Announcements

Check Grades

 

CSci 1113 Home

 
 

Printer-friendly version

 
Midterm Exam Review - Fall 2008

Material covered: Savitch, Chapters 1-4

Introduction to Computers and C++ Programming

Know the basic principles of computers and computing, including hardware (i/o, memory, CPU) and software (machine, assembly, and high-level languages, compilers, operating systems).

Chapter 1 - C++ Basics

Know the basic components of a C++ program:

    header files (e.g., #include<iostream>)
    main() function
    I/O (cin and cout objects)
    // comment statements
    variables
    assignment statement
    data types
    arithmetic operators 
    formatting output with stream functions: precision() and setf() with flags ios::showpoint, ios::fixed and ios::scientific.
    formatting output with the stream manipulator setw().

Be able to define the following terms relating to representation of numbers in a computer:

    Precision (the number of digits in the mantissa of a floating point number)
    Range
    Exponent
    Roundoff and relative errors
    Underflow and overflow errors

Chapter 2 - Flow of Control

Know how to build boolean expressions using relational operators (<, ==, <=, etc.) and logical operators (&&, ||, !).

Know how and when to use the following control structures:

    Branching structures - if and if-else statements, switch statement
    Looping structures - while, do-while, and for loops

Be able to define the following terms:

    Pre- and post-test loops
    Fixed count loops (counter controlled repetition)
    Sentinel controlled loops

Chapters 3 & 4 - Functions

You will be asked to write a function to do some task.  You will have to provide the function's declaration, header, definition (header + body), and call.

Know the difference between parameters and arguments and their relationship.  Know what it means to call-by-value and to call-by-reference using reference parameters.  Know how to use the return statement to pass a value back to the calling program.

You should be able to define (and use, if appropriate) the following terms: global variable, local variable, scope.

Finally:

Be able to write a complete C++ program that includes these components.

There will not be any questions about: random numbers, Trapezoidal Rule, Newton-Raphson method, recursive functions.






 
The University of Minnesota is an equal opportunity educator and employer.
CSci 1113: C++ Programming