Chapter 1 Flashcards

1
Q

algorithm

A

A set of specific steps for solving a category of problems.

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

bug

A

An error in a program.

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

comment

A

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.

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

debugging

A

The process of finding and removing any of the three kinds of programming errors.

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

exception

A

Another name for a runtime error.

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

formal language

A

Any one of the languages that people have designed for specific purposes, such as representing mathematical ideas or computer programs; all programming languages are formal languages.

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

high-level langauge

A

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

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

immediate mode

A

A style of using Python where we type expressions at the command prompt, and the results are shown immediately. Contrast with script, and see the entry under Python shell.

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

interpreter

A

The engine that executes your Python scripts or expressions.

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

low-level language

A

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

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

natural language

A

Any one of the languages that people speak that evolved naturally.

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

object code

A

The output of the compiler after it translates the program.

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

parse

A

To examine a program and analyze the syntactic structure.

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

portability

A

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

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

print function

A

A function used in a program or script that causes the Python interpreter to display a value on its output device.

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

problem solving

A

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

17
Q

program

A

a sequence of instructions that specifies to a computer actions and computations to be performed.

18
Q

python shell

A

An interactive user interface to the Python interpreter. The user of a Python shell types commands at the prompt (»>), and presses the return key to send these commands immediately to the interpreter for processing. The word shell comes from Unix. In the PyScripter used in this RLE version of the book, the Interpreter Window is where we’d do the immediate mode interaction.

19
Q

rubntime error

A

An error that does not occur until the program has started to execute but that prevents the program from continuing.

20
Q

script

A

A program stored in a file (usually one that will be interpreted).

21
Q

semantic error

A

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

22
Q

semantincs

A

The meaning of a program.

23
Q

source code

A

A program in a high-level language before being compiled.

24
Q

syntax

A

The structure of a program.

25
Q

syntax error

A

An error in a program that makes it impossible to parse — and therefore impossible to interpret.

26
Q

token

A

One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.