Skip to content
KALANBLON
Show contents

Chapter 4 of 4 · 10 min

Quiz: your first steps in Java

JDK, JVM, display, variables and types: let's check that the basics of Java are in place. You need 70% correct answers.

Quiz

6 questions · pass mark: 70%

  1. 1.What is the role of the JVM?

    One answer

  2. 2.What does this program display?

    One answer

    void main() {
        IO.println("Result: " + 4 + 1);
    }
  3. 3.What does IO.println(17 / 5); display?

    One answer

  4. 4.Which declarations compile? (several answers)

    Several answers possible

  5. 5.Fill in the keyword that makes a variable unchangeable.

    Complete the code

    ____ double PI = 3.14159;
  6. 6.On a computer set to French, what does IO.println(String.format("%.1f", 2.25 * 2)); display?

    One answer

Your progress is saved on this device. Create a free account to keep your progress on all your devices.