CS 115 QUIZ # 1 INFORMATION Scheduled for TUESDAY 9/22/15 1

Preview:

Citation preview

CS 115

QUIZ # 1 INFORMATION

Scheduled for TUESDAY 9/22/15

1

What to Study• Text:– Chapter 1– Chapter 2– Chapter 3 PAGES 100-144.

• Lectures– Lecture 1– Lecture 2– Lecture 3– Lecture 4 part 1 (up to slide 25)– Lecture 4 part 2– Lecture 4_3 Math class.– Lecture 4_4 Method Calls

2

What to Study

• Labs– Lab 1

• Practice Exercises 1, 2 , 3• (see posted answers of the above assignments).

3

Quiz Format

• Duration: Entire period• Closed book• Closed Notes• Computers: only WORD and Notepad++ can

be used!!!!!

4

Questions• Know how to use the API. Specifically the methods in Math

class. Try to use some methods on your own, like the max and min.

• Six questions– One multiple choice. Has to do with typecasting and/or

promotion rules.– One that has to do with how a method is called from the main

method .– Two that have to do with the usage of shortcut operators.– One that has to do with operator precedence and promotion in

an expression,– One where you have to use Math class methods to create a

method within a class and call that method from the main method.

5

Concepts to be tested

• Explicit and implicit type casting.• Operator precedence in calculating an

expression.• Shortcut operators.• Method calls.• Using the Math library class.

6

Grading

• 0.5 points for each of the first 5 questions. • 1.5 points for the sixth question.• Total 4 points towards your final grade.

7

Recommended