CS 2308 Exam II Review.

Slides:



Advertisements
Similar presentations
1 Structures. 2 User-Defined Types C provides facilities to define one’s own types. These may be a composite of basic types ( int, double, etc) and other.
Advertisements

Stacks CS-240 & CS-341 Dick Steflik. Stacks Last In, First Out operation - LIFO As items are added they are chronologically ordered, items are removed.
 200 Total Points ◦ 74 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 36 Points Short Answer ◦ 30 Points Multiple Choice.
Exam Format  130 Total Points  10 Points Short Answer  15 Points Fill in the Blank  25 Points T/F  60 Points Multiple Choice  20 Points Matching.
Exam Format  90 Total Points  60 Points Writing Programs  25 Points Tracing Code/Algorithms and determining results  5 Points Short Answer  Similar.
Exam 1 Review CS Total Points – 60 Points Writing Programs – 20 Points Tracing Algorithms, determining results, and drawing pictures – 40 Points.
Final Exam Review CS Total Points – 60 Points Writing Programs – 50 Points Tracing Algorithms, determining results, and drawing pictures – 50.
Exam Format  105 Total Points  25 Points Short Answer  20 Points Fill in the Blank  15 Points T/F  45 Points Multiple Choice  The above are approximations.
ICOM 4035 – Data Structures Dr. Manuel Rodríguez Martínez Electrical and Computer Engineering Department.
 140 Total Points ◦ 100 Points Writing Programs ◦ 24 Points Tracing Algorithms and determining results ◦ 16 Points Short Answer  Similar to quizzes.
 200 Total Points ◦ 75 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 35 Points Short Answer ◦ 30 Points Multiple Choice.
ENEE150 – 0102 ANDREW GOFFIN Project 4 & Function Pointers.
CS 1308 Exam 2 Review. Exam Format 110 Total Points 24 Points Short Answer 28 Points Fill in the Blank 16 Points T/F 36 Points Multiple Choice The above.
Final Exam Review CS Total Points – 20 Points Writing Programs – 65 Points Tracing Algorithms, determining results, and drawing pictures – 50.
Linked list: a list of items (nodes), in which the order of the nodes is determined by the address, called the link, stored in each node C++ Programming:
Exam 2 Review CS 3358 Data Structures. 90 Total Points – 50 Points Writing Programs – 25 Points Tracing Algorithms, determining results, and drawing pictures.
CS 1428 Exam I Review. Exam Format 130 Total Points – 40 Points Writing Programs – 30 Points Tracing Algorithms and determining results – 20 Points Short.
CS 1428 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
CMSC 202 Computer Science II for Majors. CMSC 202UMBC Topics Templates Linked Lists.
Final Exam Review CS 3358.
C++ Programming:. Program Design Including
Winter 2009 Tutorial #6 Arrays Part 2, Structures, Debugger
Copy Constructor / Destructors Stacks and Queues
Linked Lists Chapter 6 Section 6.4 – 6.6
Sequences 6/18/2018 8:51 PM C201: Linked List.
Data Structure and Algorithms
CS 1308 Exam I Review.
CS 1428 Exam I Review.
Chapter 4 Linked Lists.
Sequences 9/18/ :20 PM C201: Linked List.
CS 1428 Exam II Review.
LinkedList Class.
CS 1308 Exam 2 Review.
Exam 2 Review CS 3358 Data Structures.
Chapter 12: Pointers, Classes, Virtual Functions, and Abstract Classes
CS 2308 Final Exam Review.
CS 2308 Exam I Review.
CS 2308 Exam II Review.
CS 2308 Exam II Review.
Exam 2 Review CS 3358 Data Structures.
CS 1428 Exam I Review.
Basic C++ What’s a declaration? What’s a definition?
Exam 1 Review CS 3358.
CS 2308 Exam I Review.
CS 1428 Exam II Review.
CS 2308 Exam I Review.
Exam 1 Review CS 3358.
Exam 2 Review CS 3358 Data Structures.
CS 2308 Exam II Review.
CS 1428 Final Exam Review.
EE 312 Software Design and Implementation I
Indirection.
Linked Lists Chapter 4.
Chapter 17: Linked Lists.
Chapter 16 Linked Structures
CS 1428 Final Exam Review.
EE 312 Exam I Review.
Stacks CS-240 Dick Steflik.
Data Structures & Algorithms
CS148 Introduction to Programming II
Data Structures & Algorithms
EE 312 Final Exam Review.
EE 312 Software Design and Implementation I
Destructors, Copy Constructors & Copy Assignment Operators
EE 312 Exam I Review.
CS 1428 Exam I Review.
Destructors, Copy Constructors & Copy Assignment Operators
CS 1308 Exam 2 Review.
CS 2308 Final Exam Review.
EE 312 Exam I Review.
Presentation transcript:

CS 2308 Exam II Review

Exam Format 100 Total Points 50 Points Writing Programs 20 Points Tracing Algorithms and determining results 30 Points Short Answer Similar to quizzes and programming assignments

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

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;

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

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

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

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

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

Linked Lists 25 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

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

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

Questions