exam 1 vocab ch 1-6 Flashcards

1
Q

an error in a program

A

bug

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

the heart of any computer, runs the software we write; also called the ‘CPU’ or ‘the processor’

A

Central Processing Unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

to translate a program written in a high level language into a low level language all at once, in preparation for latee execution

A

compile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

High Level Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

Interactive Mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

Interpret

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

Low-Level Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

Machine Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

Main Memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

To examine a program and analyze the syntactic structure.

A

Parse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

Portability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

Print Function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

Problem Solving

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A set of instructions that specifies a computation.

A

Program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

Prompt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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.

A

Secondary Memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

The meaning of a program.

A

Semantics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

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

A

Semantic Error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

A program in a high-level language.

A

Source Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

A statement that assigns a value to a variable.

A

Assignment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

To join two operands end to end.

A

Conceatenate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

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.

A

Comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

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

A

Evaluate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

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

A

Expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
A type that represents numbers with fractional parts.
Floating Point
26
A type that represents whole numbers.
Integer
27
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.
Keyword
28
A memory aid. We often give variables mnemonic names to help us remember what is stored in the variable.
Mnemonic
29
An operator, denoted with a percent sign (%), that works on integers and yields the remainder when one number is divided by another.
Modulus Operator
30
One of the values on which an operator operates.
Operand
31
A special symbol that represents a simple computation like addition, multiplication, or string concatenation.
Operator
32
The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.
Rules of Precedence
33
A section of code that represents a command or action. So far, the statements we have seen are assignments and print expression statement.
Statement
34
A type that represents sequences of characters.
String
35
A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).
Type
36
One of the basic units of data, like a number or string, that a program manipulates.
Value
37
A name that refers to a value.
Variable
38
An error in the syntax of your program (like a grammar error)
Parse Error
39
an error that occurs when you try to combine two objects that are not compatible
TypeError ex. combining str and int
40
an error that occurs when you use a variable before it has a value
Name Error
41
The sequence of statements within a compound statement.
Body
42
An expression whose value is either True or False.
Boolean Expressions
43
One of the alternative sequences of statements in a conditional statement.
Branch
44
A conditional statement with a series of alternative branches.
Chained Conditional
45
One of the operators that compares its operands: ==, !=, >, <, >=, and <=.
Comparison Operator
46
A statement that controls the flow of execution depending on some condition.
Conditional Statement
47
The boolean expression in a conditional statement that determines which branch is executed.
Condition
48
A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header.
Compound Statement
49
Where we construct a logical expression with additional comparisons to take advantage of the short-circuit behavior.
Guardian pattern
50
One of the operators that combines boolean expressions: and, or, and not.
Logical Operator
51
A conditional statement that appears in one of the branches of another conditional statement.
Nested Conditional
52
A list of the functions that are executing, printed when an exception occurs.
Traceback
53
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.
Short Circuit
54
A general process for solving a category of problems.
Algorithim
55
A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
Argument
56
The sequence of statements inside a function definition.
Function Body
57
Using an expression as part of a larger expression, or a statement as part of a larger statement.
Composition
58
Pertaining to a program that does the same thing each time it runs given the same inputs.
Deterministic
59
The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name.
Dot Notation
60
The order in which statements are executed during a program run.
Flow of Execution
61
A function that returns a value.
Fruitful Function
62
A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not return a value.
Function
63
A statement that executes a function. It consists of the function name followed by an argument list.
Function Call
63
A statement that executes a function. It consists of the function name followed by an argument list.
Function Call
64
A value created by a function definition. The name of the function is a variable that refers to a function object.
Function Object
65
The first line of a function definition.
Header
66
A statement that reads a module file and creates a module object.
Import Statement
67
A value created by an import statement that provides access to the data and code defined in a module.
Module Object
68
A name used inside a function to refer to the value passed as an argument.
Parameter
69
Pertaining to a sequence of numbers that appear to be random, but are generated by a deterministic program.
Pseudorandom
70
The result of a function. If a function call is used as an expression, the return value is the value of the expression.
Return Value
71
A function that does not have a return value.
Void Function
72
A variable used in a loop to add up or accumulate a result.
Accumlator
73
A variable used in a loop to count the number of times something happened. We initialize a counter to zero then increment the counter each time we want to “count” something.
Loop Counter
74
To decrease the value of a variable (often by one).
Decrement
75
To give an initial value to a variable that will be updated.
Initialize
76
To increase the value of a variable (often by one).
Increment
77
A loop in which the terminating condition is never satisfied or for which there is no terminating condition.
Infinte Loop