AP CSA Unit 4 Review

Quiz
•
Computers
•
11th Grade
•
Easy
Lauren Wheelwright
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's the output?
012345
0123456
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
(Infinite loop)
12345
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's the output?
1
12
01
12345
3.
OPEN ENDED QUESTION
2 mins • 1 pt
Re-write this for-loop as a while loop
Evaluate responses using AI:
OFF
Answer explanation
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these nested loops will print out the following output?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What prints when we run the main method?
AP
CSA
CSA
AP
AP
CSA
CSA
CSA
AP
AP
AP
CSA
CSA
CSA
CSA
APAPCSACSACSA
6.
OPEN ENDED QUESTION
3 mins • 1 pt
Complete the code so that it prints every third character in String s, starting at the 1st character.
Ex: If s="ABCDEF", print "AD"
Evaluate responses using AI:
OFF
Answer explanation
7.
OPEN ENDED QUESTION
3 mins • 1 pt
Complete this code so that it prints a triangle as follows:
0
01
012
0123
Evaluate responses using AI:
OFF
Answer explanation
The length of each line is determined by the variable i.
The length of each line should increase from 0 to 3.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
TEST - Trace table exercise 1

Quiz
•
11th Grade
10 questions
APCSA Unit 4

Quiz
•
9th - 12th Grade
15 questions
Lesson 9

Quiz
•
11th Grade - University
15 questions
Basic elements of computer programming

Quiz
•
9th - 12th Grade
13 questions
Python while loop

Quiz
•
8th Grade - University
10 questions
Q&A – Repetition Makes Algorithms Concise (Primary 4 – 4CT.03)

Quiz
•
4th Grade - University
10 questions
Q&A – Repetition & Indefinite Loops (Primary 4 – 4CT.01)

Quiz
•
4th Grade - University
15 questions
Java Beginners

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade