1.1.2 Printing in Java

1.1.2 Printing in Java

Assessment

Interactive Video

Computers

11th Grade

Hard

Created by

Catherine Henderson

FREE Resource

4 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This won’t print anything.

It will only print the first line as ***** since only one print statement can be used.

Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code segment will print “Hello Karel” to the screen in Java?

System.out.printLine("Hello Karel");

print "Hello Karel";

System.out.println("Hello Karel");

System.println("Hello Karel");

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for writing the main method in Java?

public void main() { }

public static void main() { }

public static void main(String[] args) { }

public static void String(main) { }

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?