¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

cse quiz

Tyler Bond 7 preguntas

Hacer el test

Preguntas del test (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

Información

Descripción
Test sobre cse quiz, creado por Tyler Bond el 23/09/2015.
Idioma
English
Visitas
1
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?