Chapter One - Way of Program Flashcards

Intro Chapter on Python

1
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
2
Q

Low-level Language/Machine Language/Assembly Language

A

A programming language that is designed to be easy for computers to execute

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

Portability

A

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

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

Source Code

A

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

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

Prompt

A

Characters displayed by the interpreter to indicate that it is ready to take input from the user

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

Interactive Mode

A

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

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

Script Mode

A

A way of using the Python interpreter to read and execute statements in a script

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

Bug

A

An error in a program

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

Syntax

A

The structure of a program

17
Q

Syntax Error

A

An error in a program that makes it impossible to parse (thus impossible to interpret)

18
Q

Exception

A

An error that is detected while the program is running

19
Q

Semantics

A

The meaning of a program

20
Q

Semantic Error

A

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

21
Q

Natural Language

A

Any one of the spoken languages 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