unit 2 test vocab AP COMP SCI

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

1/39

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:53 AM on 9/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

40 Terms

1
New cards

Move

A Karel program uses the command ____ to move Karel forward one space.

2
New cards

turn left();

The command ____ is used to turn Karel to the left.

3
New cards

Command

A Karel function is a group of commands that can be used to perform a specific ____.

4
New cards

Defining

We can teach Karel new commands by ____ a new function.

5
New cards

Defined

A function must be ____ before Karel can use it.

6
New cards

Called

When a function is used in a program

7
New cards

Smaller parts

The purpose of using functions is to break a program into ____.

8
New cards

Read

Functions can help make a program easier to ____.

9
New cards

If statement

An ____ is used when we want Karel to make a decision based on whether a condition is true.

10
New cards

Condition

ballsPresent() is an example of a ____ that can be used with an if statement.

11
New cards

Current location

noBallsPresent() checks whether there are no balls at Karel's ____.

12
New cards

While loop

A ____ is used to repeat commands while a condition remains true.

13
New cards

For loop / Fixed number

A ____ is used to repeat something a ____ of times.

14
New cards

For loop

If Karel needs to put down 300 tennis balls, use a ____

15
New cards

Repeat / Fixed

The purpose of a for loop is to ____ something a ____ number of times.

16
New cards

Semi colons

The three main parts of a for loop are separated by ____.

17
New cards

Comment

The symbols // are used to create a single-line ____ in Karel code.

18
New cards

Syntax error

A mistake in the structure or rules of code can cause a ____.

19
New cards

Semicolon

Karel commands such as move must include parentheses and a ____.

20
New cards

Left / L

turnleft() is not a valid Karel command because the word ____ must use a capital ____.

21
New cards

Indentation

Proper ____ helps show the structure of a program and makes code easier to understand.

22
New cards

Pre condition

A ____ is information that describes what must be true before a function runs.

23
New cards

Post condition

A ____ describes what should be true after a function finishes running.

24
New cards

Top down design

____ is a way of designing a program by starting with the largest problem and breaking it into smaller problems.

25
New cards

Smaller parts

Breaking a large problem into ____ makes the problem easier to solve.

26
New cards

Loop

A program can often be improved by using a ____ instead of writing the same command many times.

27
New cards

Super karel

____ has additional abilities that allow Karel to perform commands such as turning right.

28
New cards

Move

A condition such as frontIsClear() can be used to determine whether Karel can safely ____.

29
New cards

Valid

When code is written correctly and follows the rules of the programming language

30
New cards

If statement

____ makes a decision based on a condition

31
New cards

While loop

____ repeats while a condition is true

32
New cards

For loop

____ repeats a fixed number of times

33
New cards

Function

____ groups commands into a reusable unit

34
New cards

Precondition

____ what is true before a function runs

35
New cards

Postcondition

____ what is true after a function runs

36
New cards

Indentation

____ shows the structure of code

37
New cards

Syntax error

____ an error in the rules/structure of code

38
New cards

Comment

____ explains code and is not executed

39
New cards

Super Karel

____ provides additional Karel commands

40
New cards

Calling a function

____ using a function that has already been defined