Review%20for%20Exam%20I - PowerPoint PPT Presentation

About This Presentation
Title:

Review%20for%20Exam%20I

Description:

Basic ... Terms (and how to use) such as; Inheritance. Encapsulation. Mutator method ... Know how the computer does arithemetic try these for Practice! ... – PowerPoint PPT presentation

Number of Views:29
Avg rating:3.0/5.0
Slides: 15
Provided by: SBAIST
Category:

less

Transcript and Presenter's Notes

Title: Review%20for%20Exam%20I


1
Review for Exam I
  • INFSY 535

2
Review the following for Exam I
  • All material covered in class including software
    engineering principles, articles discusses, etc.
  • Text material assigned, primarily concepts that
    were covered in class!
  • Programming syntax
  • All labs and projects completed to date
  • Be able to trace output
  • Practice analyzing the problem and recoding

3
Background and Java Components
  • Basic Computer components
  • Concepts of compilers, source code, object code,
    byte code, field, method
  • Translation of ASCII into binary and vice versa
  • Object principles
  • Program design and coding principles

4
Knowledge
  • Terms (and how to use) such as
  • Inheritance
  • Encapsulation
  • Mutator method
  • Assessor method
  • Peer objects
  • Polymorphism
  • Signature
  • Parameters
  • Generalization
  • Association
  • . Aggregation

5
Sample Questions
  • Program that translates high-level language into
    machine-language is called _________?
  • ______________ directs all operations within the
    computer system.
  • Programmer input is called __________ code.
  • When Java is first compiled, the resulting code
    is called _____________________.

6
Java Syntax
  • Understand
  • Data types
  • Parameter passing
  • Variables/attributes
  • Naming conventions
  • Rules for formation
  • Syntax for known JAVA statements

7
Java Syntax
  • String class
  • Reference vs primitive types
  • Parameters and rules for passing parameters
  • Rules for forming identifiers
  • Variable vs constant
  • Concept of assignment of a value to a variable

8
More Sample Questions
  • Two reference types are __________ and
    ______________.
  • Typically, variable names begin with
    a____________ letter, method names with a
    ______________ and class names with a
    ____________________.
  • A concept in object oriented programming that
    describes the fact that the data and associated
    fields are hidden from users is called
    ______________.
  • A method that is automatically called when a
    class is instantiated is called a _____________.
  • Defining a variable at the class level defines
    its scope as ______________________________.

9
You should know exactly what these Java
statements do!
  • print and println
  • arithmetic statements
  • if statements
  • assignment statements
  • Be able to trace what happens in any of the code
    we have worked with

10
Know how the computer does arithemetic try
these for Practice!
  • (8 - 4) 3 2 _____________
  • 2 6 - 7 3 ______________
  • int a, b 2
  • double x, y 5.2
  • x y / 2
  • a y / 2
  • x _____________
  • y _____________

11
More sample questions
  • Using a JAVA statement, round a variable called
    realVar
  • if both variables in the equation are integer,
    the result will be _________.
  • If one variable in the equation is real, the
    result is _____________.

12
If statement Practice
  • A method is passed two parameters, an integer
    representing a student number and a char variable
    representing the students sex, i.e. F for
    female and M for male. Write the logic to
    output, via JOptionPane the student number and
    the word, female, if the student is a female and
    male if the student is male.

13
UML
  • Understand all concepts
  • Know the difference between the kinds of
    relationships
  • has-a
  • is-a
  • Practice construction of UML models

14
For Exam I you also must know how to
  • Write JAVA methods.
  • Be capable of tracing program execution
Write a Comment
User Comments (0)
About PowerShow.com