PLTW CSP Unit 1.1

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

1/48

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

49 Terms

1
New cards

Algorithm

A finite set of instructions that accomplish a specific task. An algorithm can be expressed in many kinds of notation, such as natural language, pseudocode, and flowcharts. Algorithms are essential to the way computers process data because they contain specific instructions for what a computer or program does.

2
New cards

Algorithmic Thinking

The process of solving problems by identifying the tasks required to solve a problem and using algorithms to clearly describe each task.

3
New cards

Program

A collection of program statements that performs a specific task when run by a computer. A program is often referred to as software.

4
New cards

Execute

To run a program or a single instruction.

5
New cards

Method

A predefined set of instructions that can be used to accomplish a task. It is available on a specific object. For example, a turtle object has a list of methods that can be used to manipulate the object, such as forward(), backward(), and so on.

6
New cards

Parameters

The input variables of a procedure. A set of information included to help a process or function operate as intended.

7
New cards

Input

Data that is given to an algorithm during the execution of a program and can affect the results of the algorithm.

8
New cards

Code Statement

A part of a program code that expresses an action to be carried out.

9
New cards

Output

Data or actions produced by an algorithm. Including any data sent from a program to a device. Program output can come in a variety of forms, such as tactile, audio, visual, or text.

10
New cards

Runtime

The duration of time a program is executing, from start to finish.

11
New cards

Program Input

Data sent to a computer for processing by a program. Input can come in a variety of forms, such as tactile, audio, visual, or text.

12
New cards

Python Terminal

The window that displays textual output generated by Python's print statement. The terminal also allows the user to type commands that are immediately executed upon pressing the Enter key.

13
New cards

Variable

An abstraction inside the program that can hold a value. Each variable has associated data storage that represents one value at a time, but that value can be a list or other collection that in turn contains multiple values.

14
New cards

Expression

A combination of variables, operators, or procedure calls that are evaluated and return a single value. The evaluation of expressions follows a set order of operations defined by the programming language.

15
New cards

Data Type

The kind of data being represented, such as a sequence of characters, an integer, or a true or false value, usually limiting the values allowed for the data.

16
New cards

Substring

part of an existing string

17
New cards

Code Segment

A collection of program statements that is part of a program.

18
New cards

Relational Operators

Used to test the relationship between two variables, expressions, or values. A comparison using a relational operator evaluates to a Boolean value. For example, a == b evaluates to true if a and b are equal; otherwise, it evaluates to false. Operators include: ==, !=, >, <, >=, and >=.

19
New cards

Boolean Expression

An expression that evaluates to either true or false; used in the conditional of an if structure.

20
New cards

Conditional Expression

A comparison, usually in a while or if statement, that evaluates to a Boolean value of True or False

21
New cards

Decidable Problem

A decision problem for which an algorithm can be written to produce correct output for all inputs (e.g., "Is the number even?").

22
New cards

Undecidable Problem

A decision problem for which no algorithm can be constructed that is always capable of providing a correct yes-or-no answer.

23
New cards

Arithmetic Operators

Mathematical processes that are part of most programming languages. They include addition, subtraction, multiplication, division, and modulus operators.

24
New cards

Zip File

A file that is stored in a compressed format, often containing multiple files

25
New cards

Compressed File

A file that is stored in a format that makes the file size smaller to save space on the computer.

26
New cards

Bug

Part of a program that causes an error or undesired output.

27
New cards

Debugging

The process of figuring out why code doesn't behave as expected and eliminating bugs to make it work as desired.

28
New cards

Sequential Statements

Code that executes in the order they appear in the code segment.

29
New cards

Initialize

When a variable is given a value for the first time. Until a variable is initialized, it is undefined.

30
New cards

Interpreter

A computer program that converts a program written in a higher-level language into a lower-level language and executes it, beginning execution before converting the entire program.

31
New cards

Block Strings

In Python, strings that begin with ''' and can span multiple lines. They are often used to temporarily deactivate code.

32
New cards

Incrementing Counter

A variable that stores an integer with increasing (or decreasing) value. For example, a common incrementing counter is a variable that starts at 0 and has 1 added to, resulting in subsequent values 1, 2, 3, etc.

33
New cards

Iteration

A repeating portion of an algorithm. Iteration repeats a specified number of times or until a given condition is met. Also used to refer to a single execution of that repetitive procedure.

34
New cards

List

An ordered collection of items or values. For example, [value1, value2, value3, ...] describes a list where value1 is the first element, value 2 is the second element, value 3 is the third element, and so on.

35
New cards

Array

An ordered collection of elements of the same type.

36
New cards

Literal

A literal is a fixed value in source code, such as 5 or "hello."

37
New cards

List Element

An individual value in a list that is assigned a unique index.

38
New cards

Loop Variable

In each iteration step, a variable set to a value in a sequence or other data collection.

39
New cards

Conditional Statement

A feature of a programming language that performs different computations or actions depending on whether a Boolean condition evaluates to true or false.

40
New cards

Selection

When parts of an algorithm are executed based on a condition being true or false.

41
New cards

Pseudocode

An outline of the basic ideas behind how algorithms will work.

42
New cards

Development Process

An iterative method that requires refinement and revision based on feedback, testing, or reflection throughout the process. This may require revisiting earlier phases of the process.

43
New cards

Requirements

Describes how a program should function and may include a description of user interactions that a program must provide.

44
New cards

Milestone

A task or other significant event in the development process. Milestones allow you to see the project achievements and to follow the development schedule.

45
New cards

Problem Decomposition

The process of breaking a complex problem or system into parts that are easier to conceive, understand, program, and maintain.

46
New cards

Incremental Development

A process that breaks the problem into smaller pieces and makes sure each piece works before adding it to the whole.

47
New cards

Design

Outline how to accomplish a given program specification.

48
New cards

Prototype

The first model of something.

49
New cards

Program Documentation

A written description of the function of a code segment, event, procedure, or program and how it was developed.