25 questions · 40 minutes · Java

Core Java - Practice Quiz 1 practice quiz

Basic Core Java: variables, data types, System.out.println, if/else, comparisons — 25 questions.

Before you start

25 multiple choice questions. 1 mark each. No negative marking. Time: 40 minutes.

You can take this without an account and you will still get the full marked review. Only signed-in attempts are saved — sign in first if you want this one kept in your history.

Questions
25
Time
40 minutes
Marks
25
Subject
Java
Marking
Server-side

What it asks

The first few questions

  1. Which of the following is the correct way to print "Hello" to the console in Java?
  2. Which keyword declares a variable that cannot be reassigned?
  3. What is the default value of an uninitialized instance int field in Java?
  4. Which primitive type stores true/false values in Java?

21 more once you begin. Options are withheld until the attempt starts — the answer key never reaches the browser before you have been marked.