HW 2 Reading Flashcards

1
Q

Syntax Rules of a Languages

A

Specify which strings of characters from the language’s alphabet are in the language.

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

Token of a Language

A

A category of it lexemes.

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

Lexemes

A

Lowest level syntactic units

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

What two ways can languages be formed?

A

Recognition and Generation

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

Lexical Analyzer

A

Pattern Matcher

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

What type of names did the earliest programming languages use?

A

Single-character names

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

What must all variables names in PHP start with?

A

$

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

Precision

A

Accuracy of the
fractional part of a value

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

Range

A

A combination of the range of fractions and, more important, the range of exponents.

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

Selection Statements

A

Provides the means of choosing between two or more execution paths in a program.

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

Types of Selection Statements

A

1.) Two-Way Selection Statements
2.) Multiple-Selection Statements

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

Two-Way Selection Statements

A

if control_expression
then clause
else clause

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

Two-Way Selection Statements Design Issues

A

1.) What is the form and type of the expression that controls the selection?
2.) How are the then and else clauses specified?
3.) How should the meaning of nested selectors be specified?

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

Subprogram Header

A

Specifies that the following syntactic unit is a subprogram definition of some particular kind

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

Parameter Profile

A

Contains the number, order, and
types of its formal parameters

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

Protocol of Subprogram`

A

Parameter profile plus, if it is a function, its return type.

17
Q

Activation Record

A

The format, or layout, of the noncode part of a subprogram

18
Q

Activation Record Instance

A

Example of an activation
record, a collection of data in the form of an activation record.