APCSA Semester Review
Quiz
•
Computers
•
9th - 12th Grade
•
Medium

Madison Kothari
Used 3+ times
FREE Resource
Enhance your content
61 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
> public class MyClass
> {
> public static void main(String[] args)
> {
> String.out.Println("Hi there!")
> }
> }
a.
Change String to System
b.
Change Println to println
c.
Remove the ! exclamation mark.
d.
Add a semi-colon to the end of the Println statement.
e.
Remove the quotations around Hi there!
a
b
c
d
e
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
> System.out.println("Hello World!");
> System.out.println("I ");
> System.out.print("like");
> System.out.print("pie");
a.
Hello World!
I
like
pie
b.
Hello World!
I
likepie
c.
Hello
World!
I like pie
d.
Hello World!
I like
pie
e.
Compiler Error
a
b
c
d
e
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
> System.out.print("AP");
> System.out.println();
> System.out.print("CS");
> System.out.print("A");
What is printed as a result of executing the code segment?
a.
APCSA
b.
APCS
A
c.
AP
C
SA
d.
AP
CS
A
e.
AP
CSA
a
b
c
d
e
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
> System.out.print("Java is ");
> System.out.println("fun ");
> System.out.println("and awesome!");
What is printed as a result of executing the code segment?
a.
Java is fun and awesome!
b.
Java isfun
and awesome!
c.
Java is
fun
and awesome!
d.
Java is fun
and
awesome!
e.
Java is fun
and awesome!
a
b
c
d
e
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
> System.out.print("*");
> System.out.print("**");
> System.out.println("***");
> System.out.print("****");
What is printed as a result of executing the code segment?
a.
******
****
b.
*
**
*******
c.
*
*****
****
d.
*
**
***
****
e.
***
*******
a
b
c
d
e
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
> System.out.println("What's up ");
> System.out.println("doc!");
> System.out.print("Howdy");
a.
What's up
doc! Howdy
b.
What's up doc!
Howdy
c.
What's up
doc!
Howdy
d.
What's
up
doc! Howdy
e.
Compiler Error.
a
b
c
d
e
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
> System.out.println("Roses are red, "); // Line 1
> System.out.println("Violets are blue, "); // Line 2
> System.out.print("You got this, "); // Line 3
> System.out.print("I know you do!"); // Line 4
The code segment is intended to produce the following output but may not work as intended.
> Roses are red,
> Violets are blue,
> You got this, I know you do!
Which change, if any, can be made so that the code segment produces the intended output?
a.
Replacing print with println on lines 3 and 4.
b.
Replacing println with print on lines 1 and 2.
c.
Putting a space before the I on line 4.
d.
Changing the println on line 1 to a print and changing the print on line 3 and a println.
e.
The code segment works as intended.
a
b
c
d
e
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
60 questions
Dasar-Dasar PPLG - Percabangan
Quiz
•
10th Grade
63 questions
IST Final Exam Review Tindall
Quiz
•
9th Grade - University
60 questions
Java Day Two
Quiz
•
9th - 12th Grade
60 questions
ECDL Python Lesson 14 recap
Quiz
•
5th - 12th Grade
64 questions
Arduino Basic Programming
Quiz
•
11th Grade
66 questions
Đề cương tin học 11GK2
Quiz
•
11th Grade
63 questions
Bài Tin học 10
Quiz
•
10th Grade
56 questions
J277/02 Computational thinking, algorithms and programming
Quiz
•
9th Grade - University
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