
Warm Up FRF
Authored by Margaret DeRidder
Computers
12th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code segment.
System.out.println("W");
System.out.println("X");
System.out.print("Y");
System.out.print("Z");
What is printed as a result of executing the code segment?
WXYZ
W
XYZ
WX
YZ
W
X
YZ
W
X
Y
Z
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code segment.
System.out.print("cat ");
System.out.println("dog ");
System.out.println("horse ");
System.out.print("cow ");
What is printed as a result of executing the code segment?
cat dog horse cow
cat dog
horse
cow
cat dog
horse cow
cat
dog
horse cow
cat
dog
horse
cow
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code segment.
System.out.print("Hello!");
System.out.println("How ");
System.out.print("are ");
System.out.print("you?");
What is printed as a result of executing the code segment?
Hello!Howareyou?
Hello!How are you?
Hello!
How are you?
Hello!How
are you?
Hello!
How
are
you?
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code segment.
System.out.println(hello); // Line 1
System.out.print(world); // Line 2
The code segment is intended to produce the following output but does not work as intended.
hello
world
Which of the following changes can be made so that the code segment produces the intended output?
Inserting System.out.print(); between lines 1 and 2
Inserting System.out.println(); between lines 1 and 2
Changing println in line 1 to print
Changing print in line 2 to println
Enclosing hello in line 1 and world in line 2 in quotation marks
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code segment.
System.out.print("Ready"); // Line 1
System.out.print("Set"); // Line 2
System.out.print("Go!"); // Line 3
The code segment is intended to produce the following output but may not work as intended.
Ready
Set
Go!
Which change, if any, can be made so that the code segment produces the intended output?
Changing print to println in lines 1 and 2
Changing print to println in line 3
Interchanging lines 1 and 3
Replacing all three lines with the single statement System.out.println("Ready Set Go!");
No change is needed; the code segment works correctly as is.
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
10 questions
Scratch
Quiz
•
KG - Professional Dev...
9 questions
CBD2234 Week 2
Quiz
•
12th Grade - University
10 questions
Microsoft Windows
Quiz
•
4th Grade - University
10 questions
Soal Latihan 2 - Scratch
Quiz
•
8th - 12th Grade
10 questions
Computer Software
Quiz
•
8th - 12th Grade
10 questions
Computer Languages
Quiz
•
6th - 12th Grade
10 questions
Premiere Pro
Quiz
•
10th - 12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade