11
Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

Embed Size (px)

Citation preview

Page 1: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

Final Exam Review

Closed bookClosed laptop

One sheet of notes permitted

SE-0010 Dr. Mark L. Hornick

1

Page 2: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

SE-0010 Dr. Mark L. Hornick

2

General Study tips

Use past quizzes and labs as study guides Problems will be of a similar nature Know the material (code) you used in your labs

Review the code samples published on the website

Read the assigned material in the textbook (again)

Page 3: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

SE-0010 Dr. Mark L. Hornick

3

Object-Oriented Programming concepts

Explain the concepts of class and object, and how an object differs from a class.

Describe how classes and objects work in order to accomplish tasks in an object-oriented program.

Describe the relationship between methods and messages.

Page 4: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

SE-0010 Dr. Mark L. Hornick

4

Basic Java concepts Declare and instantiate objects of a given class Describe the structure of a simple Java program Explain the significance of the main method in a Java

program Create different types of comments in Java programs. Explain why you use comments in a Java program Describe the purpose of the import statement. Explain what is contained in a .class file as opposed to

a .java file Give examples of Java naming conventions for classes,

methods, attributes, objects, and variables Explain why you would structure a program to make use

of methods instead of putting all code in the main() method

Page 5: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

SE-0010 Dr. Mark L. Hornick

5

Basic Java datatypes Name the various datatypes that represent integer

values Name the various datatypes that represent real (or

floating-point) values Explain why certain datatypes (like byte) cannot

express numbers as large as others (like long) Explain the difference between a String and a char

datatype State the values that the boolean datatype can

represent Explain the void datatype, the value it represents, and

where it is typically used

Page 6: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

CS-1010Dr. Mark L. Hornick

6

Variables and Expressions

Determine the proper datatype to use to represent specific numerical values Declare and initialize various numeric variables

Write arithmetic expressions in Java

Write boolean expressions using relational and boolean expressions

Evaluate given boolean expressions correctly

Use the typecast operator (<datatype>) to do explicit type conversions on numeric data and expressions

Page 7: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

CS-1010Dr. Mark L. Hornick

7

Java Programming (1)

Be able to Implement repetition control in a program using while

statements.

Implement repetition control in a program using do-while statements.

Implement repetition control in a program using for statements.

Describe the difference between while and do-while statements

Describe the elements of a for statement

Page 8: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

SE-0010 Dr. Mark L. Hornick

8

Java Programming (2)

Know how to use DecimalFormat to convert numerical values to

String values of a specific precision Wrapper classes, such as Integer, Double, etc

for converting Strings to numeric values JOptionPane methods for

Prompting the user for a yes-no reply using the showConfirmDialog method of JOptionPane

Prompting the user to enter some input Presenting results to the user

Page 9: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

CS-1010Dr. Mark L. Hornick

9

Java programming (3)

Be able to write short methods that Accept arguments of specified datatypes Return a value of a specified datatype

Or not return anything at all

Review the work you did in past labs

Page 10: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

SE-0010Dr. Mark L. Hornick

10

Be able to describe the elements of a class:

Page 11: Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1

SE-0010 Dr. Mark L. Hornick

11

Be able to describe the elements of a method: