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

Quiz

Untitled

ljh hlk 5 questions

Take the quiz

Questions in this quiz (5)

  1. 1Which of the following is NOT a primitive data type in Java?
    1. Achar
    2. Bdouble
    3. Cint
    4. Dnumber
  2. 2Which of the following lines declares a constant holding the value 42 in Java?
    1. A[A] static final int ANSWER = 42;
    2. B[B] static const int ANSWER = 42;
    3. C[C] static final ANSWER = 42;
    4. D[D] static const ANSWER = 42;
  3. 3Which of the following is NOT a java.util.Scanner method?
    1. A[A] getNext
    2. B[C] next
    3. C[B] hasNext
    4. D[D] nextDouble
  4. 4What output will be produced by the following Java program?
    boolean a = true;
    boolean b = false;
    a = a && b;
    b = ! b;
    System.out.println(a + " " + b);
    1. Afalse false
    2. Bfalse true
    3. Ctrue false
    4. Dtrue true
  5. 5What output will be produced by the following Java program?
    int a = 1;
    int b = 1;
    while (a * b < 10) {
    a += b;
    if (a == 4)
    continue;
    b++;
    }
    System.out.println(a + b);
    1. A7
    2. B8
    3. C9
    4. D10

Information

Description
Quiz on Untitled, created by ljh hlk on 31/05/2017.
Author
ljh hlk
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?