Computational Thinking Vocab

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

1/90

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:41 AM on 9/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

91 Terms

1
New cards

bug

An error in a program

2
New cards

central processing unit

The heart of any computer. It is what runs the software that we write; also called “CPU” or “the processor”.

3
New cards

compile

To translate a program written in a high-level language into a low-level language all at once, in preparation for later execution.

4
New cards

high-level language

A programming language like Python that is designed to be easy for humans to read and write.

5
New cards

interactive mode

A way of using the Python interpreter by typing commands and expressions at the prompt.

6
New cards

interpret

To execute a program in a high-level language by translating it one line at a time.

7
New cards

low-level language

A programming language that is designed to be easy for a computer to execute; also called “machine code” or “assembly language”.

8
New cards

machine code

The lowest-level language for software, which is the language that is directly executed by the central processing unit (CPU).

9
New cards

main memory

Stores programs and data. Main memory loses its information when the power is turned off.

10
New cards

parse

To examine a program and analyze the syntactic structure

11
New cards

portability

A property of a program that can run on more than one kind of computer.

12
New cards

print function

An instruction that causes the Python interpreter to display a value on the screen.

13
New cards

problem solving

The process of formulating a problem, finding a solution, and expressing the solution.

14
New cards

program

A set of instructions that specifies a computation

15
New cards

prompt

When a program displays a message and pauses for the user to type some input to the program.

16
New cards

secondary memory

Stores programs and data and retains its information even when the power is turned off. Generally slower than main memory. Examples of secondary memory include disk drives and flash memory in USB sticks.

17
New cards

semantics

The meaning of a program.

18
New cards

semantic error

An error in a program that makes it do something other than what the programmer intended.

19
New cards

source code

A program in a high-level language.

20
New cards

assignment

A statement that assigns a value to a variable.

21
New cards

concatenate

To join two operands end to end.

22
New cards

comment

Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.

23
New cards

evaluate

To simplify an expression by performing the operations in order to yield a single value.

24
New cards

expression

A combination of variables, operators, and values that represents a single result value.

25
New cards

floating point

A type that represents numbers with fractional parts.

26
New cards

integer

A type that represents whole numbers.

27
New cards

keyword

A reserved word that is used by the compiler to parse a program; you cannot use keywords like if, def, and while as variable names.

28
New cards

mnemonic

A memory aid. We often give variables mnemonic names to help us remember what is stored in the variable.

29
New cards

modulus operator

An operator, denoted with a percent sign (%), that works on integers and yields the remainder when one number is divided by another.

30
New cards

operand

One of the values on which an operator operates

31
New cards

operator

A special symbol that represents a simple computation like addition, multiplication, or string concatenation.

32
New cards

rules of precedence

The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.

33
New cards

statement

A section of code that represents a command or action. So far, the statements we have seen are assignments and print expression statement

34
New cards

string

A type that represents sequences of characters.

35
New cards

type

A category of values. The types we have seen so far are integers (type “int”), floating-point numbers (type “float”), and strings (type “str”).

36
New cards

value

One of the basic units of data, like a number or string, that a program manipulates.

37
New cards

variable

A that refers to a memory location where we store value.

38
New cards

body

The sequence of statements within a compound statement

39
New cards

boolean expression

An expression whose value is either True or False

40
New cards

branch

One of the alternative sequences of statements in a conditional statement

41
New cards

chained conditional

A conditional statement with a series of alternative branches.

42
New cards

comparison operator

One of the operators that compares its operands: ==, !=, >, <, >=, and <=.

43
New cards

conditional statement

A statement that controls the flow of execution depending on some condition.

44
New cards

condition

The boolean expression in a conditional statement that determines which branch is executed.

45
New cards

compound statement

A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header.

46
New cards

guardian pattern

Where we construct a logical expression with additional comparisons to take advantage of the short-circuit behavior

47
New cards

logical operator

One of the operators that combines boolean expressions: and, or, and not.

48
New cards

nested conditional

A conditional statement that appears in one of the branches of another conditional statement.

49
New cards

traceback

A list of the functions that are executing, printed when an exception occurs.

50
New cards

short circuit

When Python is part-way through evaluating a logical expression and stops the evaluation because Python knows the final value for the expression without needing to evaluate the rest of the expression.

51
New cards

algorithm

A general process for solving a category of problems

52
New cards

argument

A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.

53
New cards

body

The sequence of statements inside a function definition.

54
New cards

composition

Using an expression as part of a larger expression, or a statement as part of a larger statement.

55
New cards

deterministic

Pertaining to a program that does the same thing each time it runs, given the same inputs.

56
New cards

dot notation

The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name.

57
New cards

flow of execution

The order in which statements are executed during a program run.

58
New cards

fruitful function

A function that returns a value

59
New cards

function

A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.

60
New cards

function call

A statement that executes a function. It consists of the function name followed by an argument list.

61
New cards

function definition

A statement that creates a new function, specifying its name, parameters, and the statements it executes.

62
New cards

function object

A value created by a function definition. The name of the function is a variable that refers to a function object.

63
New cards

header

The first line of a function definition.

64
New cards

import statement

A statement that reads a module file and creates a module object.

65
New cards

module object

A value created by an import statement that provides access to the data and code defined in a module.

66
New cards

parameter

A name used inside a function to refer to the value passed as an argument.

67
New cards

pseudorandom

Pertaining to a sequence of numbers that appear to be random, but are generated by a deterministic program.

68
New cards

return value

The result of a function. If a function call is used as an expression, the return value is the value of the expression.

69
New cards

void function

A function that does not return a value.

70
New cards

Snakecase

word_word

71
New cards

Camelcase

wordWord

72
New cards

Escape characters

\(character)

73
New cards

accumulator

A variable used in a loop to add up or accumulate a result.

74
New cards

counter

A variable used in a loop to count the number of times something happened. We initialize a counter to zero and then increment the counter each time we want to “count” something.

75
New cards

decrement

An update that decreases the value of a variable.

76
New cards

initialize

An assignment that gives an initial value to a variable that will be updated.

77
New cards

increment

An update that increases the value of a variable (often by one).

78
New cards

infinite loop

A loop in which the terminating condition is never satisfied or for which there is no terminating condition.

79
New cards

iteration

Repeated execution of a set of statements using either a function that calls itself or a loop.

80
New cards

ASCII

Older model of character translation between languages from characters to values (7/8 bits) -

81
New cards

Unicode

Current model of character translation between languages from characters to values (16 bits) - 165,000 characters

82
New cards

IDLE Shell

The interactive screen of Python

83
New cards

2 parts of the interactive screen:

  1. shell/interpreter

  2. editor/compiler


84
New cards

Fuzzy Logic

Uncertain or imprecise info by assigning true (1) and false (0)

85
New cards

Guido van Rossum

Creator of the language of Python

86
New cards

Logic errors

Good syntax, but mistake in order or relation of statements

87
New cards

Syntax errors

Violation of “grammar rules” in Python

88
New cards

4 R’s of Debugging

  1. Reading

  2. Running

  3. Ruminating

  4. Retreating


89
New cards

Call

To invoke a function - the store and reuse pattern

90
New cards

3 Types of Structures

  1. Sequence

  2. Decision/Conditional/Selection

  3. Repition/Loops/Iteration


91
New cards

“debugging by bisection”

Break the program in half and print value near the middle of the program