What is printed as a result of executing the code segment?

APCS Unit 2

Quiz
•
Computers
•
12th Grade
•
Easy
Maura Duffy
Used 7+ times
FREE Resource
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
12Z
3Z
12zee
3zee
onetwozee
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed as a result of executing the code segment?
8
08
008
0008
Nothing is printed, because numerical values cannot be added to a String object.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What, if anything, is printed when the code segment is executed?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of num when the code segment is executed?
3
4
5
6
7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed as a result of executing the code segment?
ABCD
BCDE
BCEF
BCDEF
ABCDEF
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed when the code segment is executed?
comp
c o m p
comp com co c
comp omp mp p
comp comp comp comp
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following could be used to replace /* missing code */ so that the code segment works as intended?
(int) (rn * max) + min
(int) (rn * max) + min - 1
(int) (rn * (max - min)) + min
(int) (rn * (max - min)) + 1
(int) (rn * (max - min + 1)) + min
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
Algorithms - python (GCSE)

Quiz
•
10th - 12th Grade
27 questions
AP CS A CH 1 Review

Quiz
•
10th - 12th Grade
24 questions
AGAD: UNIT 4_C# & UNITY

Quiz
•
9th - 12th Grade
25 questions
Feb 20, 2025 AP CompSci - 1st Period

Quiz
•
12th Grade - University
24 questions
Java Loops

Quiz
•
10th - 12th Grade
25 questions
Java Programming Quizz-GX

Quiz
•
9th - 12th Grade
30 questions
AP CS A Unit 3 2020-2021

Quiz
•
9th - 12th Grade
30 questions
AP CSA - Unit 6 Arrays Test Review

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade
45 questions
Week 3.5 Review: Set 1

Quiz
•
9th - 12th Grade