O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

cse quiz

Tyler Bond 7 perguntas

Fazer o quiz

Perguntas do 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

Informações

Descrição
Quiz sobre cse quiz, criado por Tyler Bond em 23-09-2015.
Idioma
English
Visualizações
1
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?