GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

cse quiz

Tyler Bond 7 Fragen

Quiz starten

Fragen in diesem Quiz (7)

  1. 1The keyword int is an example of:
    1. Aan operator
    2. Bhardware
    3. Ca variable
    4. Da type
    5. Enone of the above
  2. 2If you declare an array as char[] vals = {'a', 'b', 'c', 'd', 'e'}, then the array element vals[2] contains what value?
    1. A'a'
    2. B'b'
    3. C'c'
    4. D'd'
    5. E'e'
    6. FIt is impossible to tell
  3. 3The method declared with the header:
    public static ArrayList<String> foo (ArrayList<Integer> x)
    returns what?
    1. AAn integer value
    2. BA String value
    3. CAn Integer arraylist
    4. DA String arraylist
    5. ENo value
    6. FCan't tell
  4. 4The category of methods whose purpose is to retrieve a values from an object:
    1. Amutator methods
    2. Baccessor methods
    3. Cstatic methods
    4. Dconstructor methods
    5. Eprivate methods
    6. Fnone of the above
  5. 5For the loop given below, what will the final value of I be when the loop is finished?
    int i;
    int[] arr = {3, 5, 3, 3, 1};
    for (int j =1; j<arr.length; j++) {
    i = arr[j-1] - arr[j];
    }
    1. A0
    2. B1
    3. C2
    4. D3
    5. E4
    6. F5
    7. GNone of the above
  6. 6Consider the header:
    public static int bar (int j,ArrayList<String> arr).
    Which of the following could be a correct method call?
    1. Aint bar(j, arr)
    2. Bbar(int j, ArrayList<String> arr)
    3. Cint i = bar(j, arr)
    4. Dint bar(int j, ArrayList<String> arr)
    5. ENone are correct
  7. 7What value does the variable foo have at the end of this segment of code?
    ArrayList<Integer> bar = new ArrayList<Integer>();
    bar.add(1);
    while (bar.size() < 6
    1. A1
    2. B3

Informationen

Beschreibung
Quiz am cse quiz, erstellt von Tyler Bond am 23/09/2015.
Sprache
English
Aufrufe
1
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck