Simple Quiz

Candidate Name:
Time remaining: 5:00
  1. Question 1: What is the correct way to print "Hello, World!" to the console in Java?

    a) print("Hello, World!");
    b) System.print("Hello, World!");
    c) System.out.println("Hello, World!");
    d) console.log("Hello, World!");
  2. Question 2: What is the correct way to print "Hello, World!" to the console in Java?

    a) System.out.println("Hello, World!");
    b) System.print("Hello, World!");
    c) println("Hello, World!");
    d) console.log("Hello, World!");
  3. Question 3: What is the correct way to print "Hello, World!" to the console in Java?

    a) print("Hello, World!");
    b) System.out.println("Hello, World!");
    c) SystemOutPrintln("Hello, World!");
    d) console.log("Hello, World!");
  4. Question 4: What is the correct way to print "Hello, World!" to the console in Java?

    a) print("Hello, World!");
    b) System.print("Hello, World!");
    c) System.out.println("Hello, World!");
    d) console.log("Hello, World!");
  5. Question 5: What is the correct way to print "Hello, World!" to the console in Java?

    a) print("Hello, World!");
    b) System.print("Hello, World!");
    c) System.out("Hello, World!");
    d) System.out.println("Hello, World!");