Task 3 Flashcards

1
Q

State:

Assigns a value to a
variable

A

SET Variable TO value

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

Describe:

SET Variable TO
expression

A

Computes the value of an
expression and assigns to a
variable

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

State:

Assigns a value to an
element of a twodimensional array

A

SET Array [RowIndex,
ColumnIndex] TO value

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

State:

If statement with else

A

IF expression THEN
command ELSE
command END IF

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

State:

While loop

A

WHILE condition DO
command END WHILE

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

Describe:

REPEAT
command UNTIL
expression

A

Post-conditioned loop

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

State:

For loop

A

FOR id FROM
expression TO
expression STEP
expression DO
command END FOR

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

Describe:

FOR EACH id FROM
expression DO
command END FOREACH

A

Count controlled loop.
Executes for each element
of an array

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

State:

Sends output to the screen

A

SEND expression TO
DISPLAY

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

State:

Input from type of device

A

RECEIVE <identifier> FROM
(type)</identifier>

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

Describe:

READ file record

A

Reads in a record from a
file and assigns to a
variable.
Each READ statement reads
a record from the file

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

Describe:

WRITE file record

A

Writes a record to a file.
Each WRITE statement
writes a record to the file

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

Describe:

Defines a procedure

A

PROCEDURE id
(parameter, …) BEGIN
PROCEDURE
command END
PROCEDURE

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

Describe:

FUNCTION id
(parameter, …)

BEGIN FUNCTION

command RETURN
expression END
FUNCTION

A

Defines a function

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

Describe:

id (parameter, …)

A

Calls a procedure or a function

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