What's the output?
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
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 Quizizz
15 questions
Python - Loops, Patterns & List manipulations

Quiz
•
11th Grade
15 questions
KS4 - Python Turtle

Quiz
•
9th - 11th Grade
11 questions
J277 Programming - Data Types

Quiz
•
9th - 11th Grade
10 questions
Python Flow Control

Quiz
•
9th - 12th Grade
8 questions
Robotics Quiz

Quiz
•
1st - 12th Grade
10 questions
Pseudocode - OCR ERL

Quiz
•
9th - 12th Grade
10 questions
conditional and iterative statements

Quiz
•
11th Grade
10 questions
AP CSA 4.2 (For Loops)

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University