CS 115 QUIZ # 2 INFORMATION 1
When TUESDAY 11/10 Worth: 8 points 2
What to Study Text: – Chapter 3 – Chapter 7 – Pages (up to section 7.12) – Chapter 5 – Pages
What to Study Lectures – Lecture 5 – Lecture 6 – Lecture 7 – Lecture 8 – Lecture 9 4
What to Study Labs – Lab 4 – Lab 5 – Lab 6 Practice Exercises: 4, 5, 6, 7 5
Topics to concentrate Creating Service and Client Classes. – Understand how to create an equals method in the service that would allow objects of the same class to be compared for equality. – Usage of the equals method in the client class to compare two objects of the service class. How to receive input from user – Command line – Scanner (keyboard input) How to use the API (import statements where needed) 6
Topics to concentrate Static variables and methods. Specifically know how to use a static variable to create a current id for an object every time you call the constructor of the class. Usage of a static variable to track the total values of a quantity for all instantiated objects of a service class. Study the if selection structures. If and else selections If and if/else selections Equality between two objects!!!! 7
Topics to concentrate Boolean expressions and their evaluation – Understand how to set up your own logic to be evaluated. 8
Quiz Format Duration: class period Closed book Closed Notes Computers: No access to anything but Notepad++ – You are not allowed to use your laptop. You have to use your station computer. – No flash drives are allowed. 9
Questions Three programs to be written. – Service class – Client class – A program that involves Boolean logic conditions to be evaluated. Each program is worth : – Program 1: 3.5 points – Program 2: 4.5 points. 10