Output in Java

Output in Java

Assessment

Flashcard

Computers

11th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What does the following code print?
System.out.print( "1" );
System.out.print( "3" );
System.out.print( "5" );
System.out.print( "7" );
System.out.println( "9" );

Back

13579

2.

FLASHCARD QUESTION

Front

What does the following code print?
System.out.print( "1" );
System.out.println( "3" );
System.out.println( "5" );
System.out.print( "7" );
System.out.println( "9" );

Back

13579

3.

FLASHCARD QUESTION

Front

What is the output of the following statements?
System.out.print( "Hello");
System.out.println( "World" );

Back

HelloWorld

4.

FLASHCARD QUESTION

Front

Which of the following statements will print a single line containing
"hello there"?

Back

System.out.print( "hello" );
System.out.println( " there" );

5.

FLASHCARD QUESTION

Front

Which of the following does not contain a syntax error? Options: System.out.println( 'Hello world!' ) :, System.out.println( Hello world! ) ;, System.out.println( "Hello world!" );

Back

System.out.println( "Hello world!" );

6.

FLASHCARD QUESTION

Front

What is at the end of a line of code? Options: #, ;, ), >

Back

;

7.

FLASHCARD QUESTION

Front

Where a java program should be written? Options: class, source file, main method, object

Back

main method

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?