GoConqr has a new look! Let us know what you think.

Quiz

Untitled

Jon Ziemann 55 questions

Take the quiz

Questions in this quiz (55)

  1. 1Java arrays can store primitive types and Strings, but cannot store any other type of Object other
    than Strings.
    1. ATrue
    2. BFalse
  2. 2A Java main method uses the parameter (String[ ] variable) so that a user can run the program
    and supply "command-line" parameters. Since the parameter is a String array, however, the
    user does not have to supply any parameters
    1. ATrue
    2. BFalse
  3. 3An array index cannot be a float, double, boolean or String.
    1. ATrue
    2. BFalse
  4. 4If the following statement is performed: CD[ ] mycollection = new CD[200]; where CD is a
    previously defined class, then mycollection[5] is a CD object.
    1. ATrue
    2. BFalse
  5. 5It is possible to sort an array of int, float, double or String, but not an array of an Object class
    such as a CD class.
    1. ATrue
    2. BFalse
  6. 6To swap the 3 rd and 4th elements in the int array values, you would do:
    values[3] = values[4];
    values[4] = values[3];
    1. ATrue
    2. BFalse
  7. 7 In a two-dimensional array, both dimensions must have the same number of elements, as
    in[10][10].
    1. ATrue
    2. BFalse
  8. 8An array, when instantiated, is fixed in size, but an ArrayList can dynamically change in size
    when new elements are added to it.
    1. ATrue
    2. BFalse
  9. 9Just as arrays can only have a fixed number of elements, set at the time the array is declared, a
    parameter list also can only have a fixed number of elements, set at the time the method is
    declared
    1. ATrue
    2. BFalse
  10. 10Interface classes cannot be extended but classes that implement interfaces can be extended.
    1. ATrue
    2. BFalse

Information

Description
Quiz on Untitled, created by Jon Ziemann on 14/12/2016.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?