AP CSP daily Q quiz

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:25 PM on 10/1/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

31 Terms

1
New cards

Why would you use a for loop in a program?

To loop a block of code for a fixed number of times.

2
New cards

Which code correctly uses a for loop to have Tracy draw a square?

pendown(); for i in range(4): forward(100); right(90)

3
New cards

What is the correct Python inline comment?

# This is a comment

4
New cards

How do you properly call the function four_squares?

four_squares()

5
New cards

How does computing empower creativity?

By enabling new forms of digital art, media, and interaction.

6
New cards

What is the main purpose of a simulation?

To replace real experiments with a safe, cost-effective model.

7
New cards

What does scalability mean in computing?

A system's ability to handle increased workload or users.

8
New cards

What is digital equity?

Everyone has equal access to computing tools and opportunities.

9
New cards

What is an important benefit of computational thinking?

Breaking complex problems into smaller parts.

10
New cards

What is a good example of top-down decomposition for a Karel hurdle program?

Create functions for major subtasks: run to a hurdle, jump a hurdle, run to the end, and place a ball tower.

11
New cards

If a robot faces north and ROTATE_LEFT() is executed 3 times, which direction does it face?

East.

12
New cards

What loop is used for iterating over a sequence?

for loop

13
New cards

What loop executes statements as long as a condition is true?

while loop

14
New cards

What is top-down design?

Breaking a big problem into smaller pieces.

15
New cards

What is a function?

A command you invent and name that breaks a program into smaller, easier-to-understand parts.

16
New cards

Why is documentation important in computing projects?

It explains how systems work and supports maintenance.

17
New cards

Why is binary important in computing?

Computers process two possible states: on and off.

18
New cards

What is the purpose of encryption?

To scramble information so only authorized users can read it.

19
New cards

How do you create a function in Python?

def myFunction():

20
New cards

What is a network?

A group of computers connected to share resources.

21
New cards

George goes to a movie if there is a 4 PM or 7 PM showing AND he has more than $14. When will he go?

If he has $15 and there is a showing at 7 PM.

22
New cards

What is the binary number system made up of?

0s and 1s. Example: 1010.

23
New cards

How can programmers evaluate whether an algorithm is good?

Check its speed and correctness.

24
New cards

What is a computing system?

A mix of hardware and software that works together.

25
New cards

Give an example of a morning routine function.

def morning_routine(): wake_up(); get_dressed(); brush_teeth(); eat_breakfast(); get_in_car()

26
New cards

Why are functions helpful?

They clean up code, avoid repetition, and simplify problem solving.

27
New cards

How many bits are in a byte?

8 bits.

28
New cards

What is a benefit of using a library created by another programmer?

You can use existing functionality without writing all the code from scratch.

29
New cards

How is a computer program typically developed?

Through repeated testing and refinement.

30
New cards

What demonstrates effective collaboration when developing an app?

Team members share ideas, divide responsibilities, and give feedback on each other's work.

31
New cards

What is pseudocode?

A set of instructions written in plain language or English.