
APCS UNIT 1

Quiz
•
Computers
•
12th Grade
•
Easy
Maura Duffy
Used 20+ times
FREE Resource
39 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
What is printed as a result of executing the code segment?
Hello!!!
Hello System.out.println!!!
Hello
!!!
Hello System.out.println
!!!
Nothing is printed because the text "System.out.println" cannot appear inside a print statement.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following changes can be made so that the code segment produces the intended output?
Changing print to println in line 1 only
Changing print to println in line 2 only
Changing print to println in line 3 only
Changing print to println in lines 2 and 3 only
Changing print to println in lines 1, 2, 3, and 4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code, if any, causes an error?
Line 1
Line 2
Line 3
Line 4
The segment works as intended
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed as a result of executing the code segment?
APCSA
APCS
A
AP
CSA
AP
CS
A
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which change, if any, can be made so that the code segment produces the intended output?
In line 1, print should be changed to println.
In lines 2 and 3, println should be changed to print.
The statement System.out.println() should be inserted between lines 2 and 3.
In lines 1, 2, and 3, the text that appears in parentheses should be enclosed in quotation marks.
No change is needed; the code segment works correctly as is.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed as a result of executing the code segment?
*
**
***
****
*
**
*******
*
*****
****
***
***
****
***
*******
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following variable declarations are most appropriate to replace
/* missing declarations */ in this code segment?
int pi = 3.14159;
int d = 1.5;
final int c;
final int pi = 3.14159;
int d = 1.5;
int c;
final double pi = 3.14159;
double d = 1.5;
double c;
double pi = 3.14159;
double d = 1.5;
final double c = 0.0;
final double pi = 3.14159;
final double d = 1.5;
final double c = 0.0;
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
latihan soal Informatika

Quiz
•
12th Grade
40 questions
Higher Software Development

Quiz
•
10th - 12th Grade
35 questions
Unit 1 Exam

Quiz
•
12th Grade
39 questions
untitled

Quiz
•
12th Grade - University
34 questions
Day 4 - Basics of Python

Quiz
•
12th Grade
35 questions
Robotics Final Exam Study Guide Part II

Quiz
•
9th - 12th Grade
40 questions
Python

Quiz
•
8th - 12th Grade
36 questions
PEKAN ULANGAN HARIAN RPL

Quiz
•
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