Topics Covered:
Programming
- Programming in Java notes including:
- objects & attributes
- run-time, logic, syntax errors
- comments
- simple programs (e.g. 4 step method)
- keywords
- primary math operators (e.g. + / * - )
- special printing characters (e.g. \t for tab)
- variable types (i.e. int, double, boolean)
- naming conventions (e.g. Class names start with capital letter)
- Keyboard input:
- standard input object - code to connect to keyboard
- sending a stream to a string object
- import statement for keyboard input
- "throws IOException" required
- converting from one type to another
- Selection
- Boolean expressions - used in if and while loop structures
- Boolean logic (e.g. !=, ==, < <=, etc.)
- compound Boolean
expression - using && for and - using || for or
- Repetition
- Common programming errors
(hidden)
- Good programming practices
(hidden)
- Using pre-defined methods
- Creating your own
methods INCLUDING random numbers
- Arrays
- Declaring
- Add elements to the array INCLUDING random numbers
- Finding the number of elements in an array
- Display the array elements
- Sum elements
- Select elements based on a criteria (e.g. items greater than 7)
- Related arrays (hidden)
- Creating your own classes
- define & give example of: extending a class (as with Robots) you do not have to program it, just understand the concept
- define & give example of: overriding a method (as with Robots) you do not have to program it, just understand the concept
- not for this year's exam: class diagram
- attributes, methods (as with Robots, in the Dog
class, your HTSB class) you will have to program it and understand the concept
- constructor (as with Robots, in the Dog
class, your HTSB class) you will have to program it and understand the concept
- Programming questions
|
Exam Format:
| True or False |
10 |
marks |
| Fill in the blanks |
10 |
|
| Multiple Choice |
10 |
|
| Short answer |
75 |
|
| Long answer |
20 |
|
|
Total: |
125 |
marks |
Exam Sample |