Chapter 2 Flashcards

(15 cards)

1
Q

An error that causes a program to display an error message and exit.

A

runtime

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

An error that causes a program to do the wrong thing, but not to display an error message.

A

semantic

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

Perform the operations in an expression in order to compute a value.

A

evaluate

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

A special word used to specify the structure of a program.

A

keyword

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

One or more lines of code that represent a command or action.

A

statement

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

A name that refers to a value.

A

variable

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

A graphical representation of a set of variables and the values they refer to.

A

state diagram

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

The operator used to access a function or variable in another module.

A

dot operator

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

A file that contains Python code, including function definitions and sometimes other statements.

A

module

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

A value provided to a function when the function is called.

A

argument

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
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
12
Q

Run a statement and do what it says.

A

execute

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

An error that is detected while the program is running.

A

exception

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

Text included in a program that provides information about the program but has no effect on its execution.

A

comment

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

A statement that reads a module file so we can use the variables and functions it contains.

A

import

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