Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. Link to Full Review: http://www.laughton.com/obrien/sjsu/cs46a/CRT_lessons/exam2_review/exam2_review.html#(4)
  2. Date & Time: 4/25/2017 @ 1:30 PM - 2:45 PM PST
  3. Number of Expected Problems: 4
  4.  
  5. Topics Covered:
  6.  
  7. ∙Topics covered in Exam 1
  8.  
  9. Nested Branches
  10. Boolean Variables and Operators
  11. While Loops
  12. For Loops
  13. Do Loops
  14. Sum and Average Value
  15. Counting Matches
  16. Finding the First Match
  17. Maximum and Minimum
  18. Comparing Adjacent Values
  19. Nested Loops
  20. Arrays
  21. Arrays With Methods
  22. 2D Arrays
  23. Array Lists
  24.  
  25. ∙Tell if a number is evenly divisible by another
  26. x % y ==0 means x is divisible by y (or said another way, x is a multiple of y)
  27.  
  28. ∙Use loops
  29. ∙Use loop algorithms to process arrays and array lists
  30. ∙know how to use the graphics package
  31. ∙know how to generate random numbers
  32.  
  33. ∙know how to construct and process a 2D array
  34. ∙Type[][] arrayName = new Type[rows][columns]
  35. ∙find how many rows. find how many columns
  36. ∙find the sum, average, maximum, minimum, does it contain the number 100. How many times does it contain 100?
  37. ∙get the last element
  38. ∙nested loops to process a 2D array
  39.  
  40. ∙Understand pseudocode.
  41. ∙be able to write code from psuedocode
  42.  
  43. ∙Know how to declare an array list of some specific type. For example, to declare an array list of Strings
  44. ArrayList<String> list;
  45. If it is an instance variable, it should be private.
  46.  
  47. ∙Given an ArrayList of objects, be able to call the methods of the objects.
  48. ∙For an ArrayList of Rectangle objects called list
  49. int w = list.get(i).getWidth();
  50. ∙if it were an array of Rectangles called list
  51. int w = list[i].getWidth();
  52.  
  53. ∙With the enhanced for loop for both
  54.  
  55. for (Rectangle r : list)
  56. {
  57. int w = r.getWidth();
  58. ...
  59. }
  60.  
  61. ∙Use the debugger [BlueJ]
  62.  
  63. ∙Be able to use string methods
  64. ∙indexOf
  65. ∙substring
  66. ∙length
  67. ∙replace
  68.  
  69. Everything we have covered up to arrays and array lists (no static methods)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement