Printing in Java
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Patrick Bryar
Used 2+ times
FREE Resource
Enhance your content
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?
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
System.out.println("A " + "B");
System.out.println("C");
System.out.print("D " + "E ");
What is printed as a result of executing the code segment?
A B
C
D E
A BCD E
A B
CD E
Similar Resources on Wayground
5 questions
AP Computer Science Unit 6 Arrays Pt. 3
Quiz
•
10th - 12th Grade
10 questions
Pemrograman berorientasi objek
Quiz
•
11th Grade
11 questions
Casting in Java
Quiz
•
9th - 12th Grade
13 questions
APCSA Unit 3 Review
Quiz
•
9th - 12th Grade
10 questions
Quiz 15 - Array Basics
Quiz
•
11th Grade
10 questions
STRING HANDLING
Quiz
•
10th Grade
13 questions
Unit 4 AP CSA Review
Quiz
•
12th Grade
10 questions
Functions and Parameters Summative preview
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
15 questions
MLA Formatting
Quiz
•
9th Grade
20 questions
Typing Practice
Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro
Lesson
•
5th - 9th Grade
20 questions
Google Sheets Quiz
Quiz
•
9th Grade