Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 2308 Exam II Review.

Similar presentations


Presentation on theme: "CS 2308 Exam II Review."— Presentation transcript:

1 CS 2308 Exam II Review

2 Exam Format 80 Total Points
60 Points Writing Programs 20 Points Short Answer Similar to programming assignments and quizzes

3 Example Programming Problem
Given the TsuPod.h file at the end of the exam using the Linked List data representation write the method getRemainingMemory().

4 Example Tracing Problem
Draw and label the following struct Node { int data; Node *next; }; Node *head = NULL; Node *ptr = new Node; Node *temp; ptr->data = 42; temp = head; ptr->next = head; temp = ptr;

5 Example Short Answer Can we have more than one constructor for a class? If so, how would we know which one to use?

6 Linux 15 Points Know the basic commands you needed to complete the last program Know how to compile and run a C++ program in Linux Know how to create and move around the Linux file system

7 Structures 10 Points Declaration Use of the “.” operator
Arrays of structures tsuPod 2 Pointers to structures (*ptr).field ptr->field Structures used in Linked Lists

8 Classes and Objects 35 Points Fundamentals of class and objects
Declaration Constructors Destructors Instance variables Instance methods The “.” operator Objects as parameters to functions

9 Classes and Objects (cont.)
Overloading functions Constructors Operators Relational Other Using objects as data inside of linked lists

10 Linked Lists 30 Points Declaring a linked list
Adding a node to a linked list Removing a node from a linked list Traversing a linked list What is the order of magnitude of each of the above operations? Understand the tsuPod 3 linked list program

11 How to Study Rewrite all the programs.
Learn by doing and recognizing patterns. Don’t stay up late!! Get some sleep and eat a good breakfast.

12 What to bring Pencils and erasers We will provide scratch paper
No calculators

13 Questions


Download ppt "CS 2308 Exam II Review."

Similar presentations


Ads by Google