AP CSP Chapter 2 Test

0.0(0)
studied byStudied by 5 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/25

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

Computation, Input, and Output

3 Basic Sequential Operations in pseudocode

2
New cards

Input and Output

What communicates with the outside world pertaining to Sequential Operations

3
New cards

If/than/else

the most common conditional statement

4
New cards

Loop

repetition of a block of instructions

5
New cards

Finite Loop

The loop repeats the instructions until the continuation condition is false, where the loop terminates

6
New cards

infinite loop

A loop in which the terminating condition is never satisfied, and the loop repeats forever

7
New cards

natural language

a complex, but structured language, both written and spoken, that has evolved naturally in humans through use, repetition, and adaptation.

8
New cards

What algorithms can construct

Searching lists, finding maxima and minima, and pattern matching

9
New cards

Pseudocode

A set of English language constructs designed to more or less resemble statements in a programming language but that do not actually run on a computer

10
New cards

Sequential Flow Control in an Algorithm

The algorithm goes from top to bottom (top-down design)

11
New cards
  1. Input 2. Computation 3. Output

How does sequential algorithm execute its instructions

12
New cards

High level instructions

Complex instructions composed of many primitives that allow abstraction to occur and can let the programmer focus on other parts of the algorithm

13
New cards

What notation should be used to express algorithms so that they're clear, precise, and unambiguous

What should be considered during the initial phase of design

14
New cards

Abstraction

The separation of the high-level view of an entity from the low-level details of its implementation

15
New cards

pretest loop

a loop whose condition is evaluated before the instructions in its loop body are processed (While/Do statement)

16
New cards

posttest loop

a loop whose condition is evaluated after the instructions in its loop body are processed (Do/While Loop)

17
New cards

Variable

a named storage location that can hold a data value.

18
New cards

High-level programming languages

What kind of languages are Java and C++

19
New cards

Sequential algorithm

An algorithm that executes its operations in a straight line, from top to bottom, without any branching (Straight-line algorithm)

20
New cards

Library

A collection of useful prewritten algorithms that can be used during problem solving

21
New cards

Control operation

Conditional and iterative statements, allow us to alter the normal sequential flow of control in an algorithm

22
New cards

If the continuation condition never becomes false

When can an algorithm fall into an infinite loop

23
New cards

Top-down design

viewing an operation at a high level of abstraction and fleshing out the details of its implementation at a later time

24
New cards

conditional statement

What type of loop is an if/than/else

25
New cards

Counter loop

a loop that uses a counter variable to process the loop instructions a precise number of times

26
New cards

Pattern matching

Process of searching for a special pattern of symbols within a larger collection of information