
Printing in Java
Authored by Patrick Bryar
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.print("apple ");
System.out.print("banana ");
System.out.println("cherry ");
System.out.println("date ");
What is printed as a result of executing the code segment?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.println("1");
System.out.print("2");
System.out.println("3");
What is printed as a result of executing the code segment?
1
23
12
3
1
2
3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.print("Sun ");
System.out.println("Moon ");
System.out.print("Star ");
System.out.println("Sky ");
What is printed as a result of executing the code segment?
Sun
Moon Star
Sky
Sun
Moon Star
Sky
Sun Moon
Star Sky
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.println("Monday");
System.out.println("Tuesday");
System.out.print("Wednesday");
System.out.print("Thursday");
What is printed as a result of executing the code segment?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.println("Red " + "Yellow " + "Green ");
System.out.print("Blue " + "Purple ");
What is printed as a result of executing the code segment?
Red
Yellow
Green Blue Purple
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.print("Rock ");
System.out.print("Paper ");
System.out.println("Scissors ");
What is printed as a result of executing the code segment?
Rock Paper
Scissors
Rock
Paper
Scissors
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.print("1");
System.out.println("2");
System.out.print("3");
System.out.println("4");
What is printed as a result of executing the code segment?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
வகுப்பு 12 - அடோப் இன்டிசைன் CC 2019
Quiz
•
12th Grade
13 questions
WJEC GCSE ICT Unit 1 E-Mail
Quiz
•
9th - 10th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
Network Security
Quiz
•
9th - 11th Grade
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
10 questions
Lesson 1 Introduction to Database System
Quiz
•
10th Grade
12 questions
أنظمة التشغيل
Quiz
•
9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade