Download presentation
Presentation is loading. Please wait.
1
Midterm Exam Information
CS115 George Koutsogiannakis
2
Midterm Exam Date: 10/15/15 Time: Regular Class Time
Duration: I hour and 15 minutes. Format: Close book/Close notes No make ups unless you are sick and provide doctor’s note.
3
Midterm Exam Computers:
Must use station computer. No laptops allowed. Access to Notepad++ only to do programming. Access to MS Word to type answers to questions. It is worth 20 points (20% of your final grade).
4
Material To Study Text Go over Labs 1,2, 3, 4 (especially 3 and 4)
Chapter 1 Chapter 2 Chapter 3 up to page 145 Go over Labs 1,2, 3, 4 (especially 3 and 4) Go over Extra Credit Exercises 1 through 5 (Especially # 5). Go over any impromptu exercises and extra notes presented during lectures.
5
Material To Study Go over Lectures Lecture 1 Lecture 2 Lecture 3
Lecture 6 up to and including slides covering the String class only.
6
Type Of Possible Questions
Some multiple choice, similar to quiz. Create a template class (service class). Attributes (instance variables) Constructors Default Non Default (what is the difference?) Accessor methods for the attributes. Mutator methods for the attributes. Know how to add a method (other than accessor and mutator) to the service class that will do certain calculations (certain functionality) and return a value. Know how to add a toString method in the service class.
7
Type Of Possible Questions
Create a client class to the service class. Know how to create an object of the service (template) class. Know how to invoke a method (call a method) of the service class using the object you created. Know how to work with the API classes. The API classes are called library classes or pre defined classes. The classes that a programmer writes are called user-defined classes. Know how to work with the Math library class and its methods. Know how to work with the String library class and its methods.
8
Points of Interest There is a difference between a method call and a method invocation. Method Call A method call does not require an object. A method call can be made from within one method (like the main method for example) to another method as long as both methods are part of the same class.
9
Points of Interest Method Invocation
Although a method invocation is calling another method, the other method is usually (but not always) a member of another class. You need an object (identifier) of the class that the method belongs to, in order to invoke the method. The invocation is done via the dot operator i.e person1.getFirstName() invokes the method getFirstName() of People class using an object called person1 of People class.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.