
AP CSA Unit 4 Review
Flashcard
ā¢
Computers
ā¢
11th Grade
ā¢
Practice Problem
ā¢
Hard
Wayground Content
FREE Resource
Student preview

40 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What will happen to the output of the code segment? Options: The output of the code segment will be unchanged. The string "Fun" will be printed more times because the outer loop will execute more times. The string "Fun" will be printed more times because the inner loop will execute more times in each iteration of the outer loop. The string "Fun" will be printed fewer times because the outer loop will execute fewer times. The string "Fun" will be printed fewer times because the inner loop will execute fewer times in each iteration of the outer loop.
Back
The string "Fun" will be printed more times because the outer loop will execute more times.
2.
FLASHCARD QUESTION
Front
Which of the following code segments could replace the while loop in the method digitSum without changing the value returned by the method? Options: I only, II only, III only, I and II, II and III
Back
III only
3.
FLASHCARD QUESTION
Front
Which of the following best explains how the difference in the two loop headers affects the output? Options: The output of the code segments is the same because the loops in each code segment terminate when i is 10. The output of the code segments is the same because the loops in both code segments iterate 10 times. The output of the code segments is different because code segment I iterates from i = 0 to i = 9 and code segment II iterates from i = 1 to i = 10. The output of the code segments is different because code segment I iterates from i = 0 to i = 10 and code segment II iterates from i = 1 to i = 11. Neither code segment produces output because both loop conditions are initially false.
Back
The output of the code segments is the same because the loops in both code segments iterate 10 times.
4.
FLASHCARD QUESTION
Front
Which of the following code segments will produce the same output as the code segment above?
Back
5.
FLASHCARD QUESTION
Front
What is the correct answer from the options: 100, 101, 160, 161, 321?
Back
161
6.
FLASHCARD QUESTION
Front
What is the correct condition for the loop? Options: while (k < 3), while (k < 4), while (k < 5), while (k <= 4), while (k <= 5)
Back
while (k < 4)
7.
FLASHCARD QUESTION
Front
How many times does the following method print a *?
Back
6
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
33 questions
Means of transport Flashcards
Flashcard
ā¢
10th Grade
35 questions
2425 F6 Mock P1A (Modified v1)
Flashcard
ā¢
12th Grade
38 questions
Theater and Film Vocabulary
Flashcard
ā¢
11th Grade
33 questions
CCEA GCSE Spanish Context 3 Vocabulary
Flashcard
ā¢
10th Grade
26 questions
Biomolecules
Flashcard
ā¢
12th Grade
29 questions
Setting Goals for Success
Flashcard
ā¢
12th Grade
27 questions
Stakeholder Theory and Stakeholders
Flashcard
ā¢
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
ā¢
3rd Grade
20 questions
Equivalent Fractions
Quiz
ā¢
3rd Grade
25 questions
Multiplication Facts
Quiz
ā¢
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
ā¢
9th Grade
22 questions
fractions
Quiz
ā¢
3rd Grade
11 questions
FOREST Effective communication
Lesson
ā¢
KG
20 questions
Main Idea and Details
Quiz
ā¢
5th Grade
20 questions
Context Clues
Quiz
ā¢
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
ā¢
10th - 12th Grade
22 questions
El Imperfecto
Quiz
ā¢
9th - 12th Grade
15 questions
ACT Reading Practice
Quiz
ā¢
11th Grade
20 questions
SSS/SAS
Quiz
ā¢
9th - 12th Grade
20 questions
verbos reflexivos en espaƱol
Quiz
ā¢
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
ā¢
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
ā¢
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
ā¢
9th - 12th Grade