CS 210  Initial Assessment

fall 2007     David Levine          5 Sept 2007

This is to help both of us determine what you know already coming into the course.
It will not count towards the final grade!

1.  Here is a portion of a Java class, which contains an array A.  Write a method, isInOrder, to check whether the elements of the array are in ascending order.  Have it report true or false.
   Please write in correct Java as much as you can.  If you don't remember something, make a good guess.
   Assume that the array has been created and given values by someone else's code.
class simple {
    int[]A;
 }


2.  Here are some Java keywords and other concepts that you might know.  Check off how well you know each.  (There is not a "right answer" at this point... though by the end of this course, things should be different!)

  Java keyword or term
Never heard
of it
Seen it used
(but couldn't
explain it)
OK, I could use it
in a program
class


extends


interface


this



static


try


String vs char[]


private


import


indexOf



Integer vs int


  --- this is not a Java kw---



invaniant




2b.  Pick one and describe it, briefly.  (or give a short example;  or explain its properties)



3. 
  a. What does it mean to "sort an array"?  (answer in "25 words or less"). 


  b. Could you write a program to do that?  __________  (yes/no)
  c. Can you name the algorithm that you'd use?  _________________