The Way of the Program Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

problem solving

A

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

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

high-level language

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
3
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
4
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
5
Q

interpret

A

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

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

compile

A

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

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

source code

A

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

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

executable

A

Another name for object code that is ready to be executed.

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

script

A

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

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

program

A

A set of instructions that specifies a computation.

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

algorithm

A

A general process for solving a category of problems.

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

bug

A

An error in a program.

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

syntax

A

The structure of a program.

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

syntax error

A

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

17
Q

runtime error

A

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

18
Q

exception

A

Another name for a runtime error.

19
Q

semantic error

A

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

20
Q

semantics

A

The meaning of a program.

21
Q

natural language

A

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

22
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.

23
Q

token

A

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

24
Q

parse

A

To examine a program and analyze the syntactic structure.

25
Q

print statement

A

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