AP CSA Unit 4 Review

AP CSA Unit 4 Review

11th Grade

10 Qs

quiz-placeholder

Similar activities

PR 4 - Loops

PR 4 - Loops

KG - University

8 Qs

python (loops)

python (loops)

11th Grade

10 Qs

Computer Science 2: Control Structures

Computer Science 2: Control Structures

8th - 12th Grade

11 Qs

AP CSA 4.2 (For Loops)

AP CSA 4.2 (For Loops)

10th - 12th Grade

10 Qs

Review activity Fernandes & Do

Review activity Fernandes & Do

9th - 12th Grade

10 Qs

Robotics Quiz

Robotics Quiz

1st - 12th Grade

8 Qs

29W Quiz 1 - PLTW

29W Quiz 1 - PLTW

8th - 12th Grade

15 Qs

Flowcharts

Flowcharts

KG - Professional Development

10 Qs

AP CSA Unit 4 Review

AP CSA Unit 4 Review

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Lauren Wheelwright

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What's the output?

012345

0123456

0000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

(Infinite loop)

12345

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What's the output?

1

12

01

12345

3.

OPEN ENDED QUESTION

2 mins • 1 pt

Media Image

Re-write this for-loop as a while loop

Evaluate responses using AI:

OFF

Answer explanation

Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of these nested loops will print out the following output?

Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

7.

OPEN ENDED QUESTION

3 mins • 1 pt

Media Image

Complete this code so that it prints a triangle as follows:

0

01

012

0123

Evaluate responses using AI:

OFF

Answer explanation

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?