25 questions · 30 minutes · Java

Core Java Basics 1 Quiz practice quiz

25 basic multiple-choice questions on core Java fundamentals (variables, primitive types, Scanner input, loops, conditionals, strings, arrays, operators).

Before you start

25 questions. 1 mark each. No negative marking. Time: 30 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
30 minutes
Marks
25
Subject
Java
Marking
Server-side

What it asks

The first few questions

  1. Which keyword is used to declare an integer variable in Java?
  2. Which primitive type stores a single character in Java?
  3. Which primitive type is used for single-precision floating-point numbers in Java?
  4. Which primitive type should you use for 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.