Search Header Logo

AP CSP Unit 6 Review

Authored by Shane Chavez

Computers

12th Grade

Used 60+ times

AP CSP Unit 6 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A school is developing a program to keep track of information about students and their class schedules. In which of the following instances would a data abstraction be most helpful?

The program includes individual variables to store the names of each student rather than a single list of students.


A program includes multiple comments that could be combined into a single comment

A program includes repeated programming statements that could be moved inside a loop

A program includes repeated code that could be moved inside a function.

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which of the following will result in ONLY all the items in numbers being printed to the console if placed where the program reads <INSERT CODE> and the program is run?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

thingList is a list of words that currently contains the values ["rock", "paper", "scissors"]

Which of the following lines will result in the list containing the values ["scissors", "paper", "scissors"]

removeItem(thingList,0)

insertItem(thingList, 0, "scissors")

thingList[2] = thingList[0]

thingList[0] = thingList[2]

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be displayed in the console when this program runs?

2

3

12

14

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be displayed when this program finishes running?

3

6

7

5

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be displayed in the console when the following program runs?

0 4 8 12

0 4 8

4 8 12

The program will result in an infinite loop

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will the following program display in the console?

0 1 2 3 4 5 6 7

1 2 3 4 5 6 7

1 2 3 4 5 6

0 1 2 3 4 5 6

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?