Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Link to Full Review: http://www.laughton.com/obrien/sjsu/cs46a/CRT_lessons/exam2_review/exam2_review.html#(4)
- Date & Time: 4/25/2017 @ 1:30 PM - 2:45 PM PST
- Number of Expected Problems: 4
- Topics Covered:
- ∙Topics covered in Exam 1
- Nested Branches
- Boolean Variables and Operators
- While Loops
- For Loops
- Do Loops
- Sum and Average Value
- Counting Matches
- Finding the First Match
- Maximum and Minimum
- Comparing Adjacent Values
- Nested Loops
- Arrays
- Arrays With Methods
- 2D Arrays
- Array Lists
- ∙Tell if a number is evenly divisible by another
- x % y ==0 means x is divisible by y (or said another way, x is a multiple of y)
- ∙Use loops
- ∙Use loop algorithms to process arrays and array lists
- ∙know how to use the graphics package
- ∙know how to generate random numbers
- ∙know how to construct and process a 2D array
- ∙Type[][] arrayName = new Type[rows][columns]
- ∙find how many rows. find how many columns
- ∙find the sum, average, maximum, minimum, does it contain the number 100. How many times does it contain 100?
- ∙get the last element
- ∙nested loops to process a 2D array
- ∙Understand pseudocode.
- ∙be able to write code from psuedocode
- ∙Know how to declare an array list of some specific type. For example, to declare an array list of Strings
- ArrayList<String> list;
- If it is an instance variable, it should be private.
- ∙Given an ArrayList of objects, be able to call the methods of the objects.
- ∙For an ArrayList of Rectangle objects called list
- int w = list.get(i).getWidth();
- ∙if it were an array of Rectangles called list
- int w = list[i].getWidth();
- ∙With the enhanced for loop for both
- for (Rectangle r : list)
- {
- int w = r.getWidth();
- ...
- }
- ∙Use the debugger [BlueJ]
- ∙Be able to use string methods
- ∙indexOf
- ∙substring
- ∙length
- ∙replace
- Everything we have covered up to arrays and array lists (no static methods)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement