
Output in Java

Flashcard
•
Computers
•
11th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

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
Similar Resources on Wayground
11 questions
Java ArrayLists

Flashcard
•
10th Grade
5 questions
Enhanced For Loops

Flashcard
•
10th - 12th Grade
14 questions
Halloween Java

Flashcard
•
12th Grade
16 questions
AP CSA Primitive Types Practice

Flashcard
•
11th Grade
14 questions
AP CS ArrayLists

Flashcard
•
12th Grade
9 questions
flashcard - 7(exceptions and file handling)

Flashcard
•
12th Grade - University
5 questions
Review Lists in Python (before Lab 8)

Flashcard
•
9th - 12th Grade
12 questions
Nervous System

Flashcard
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade