high-level programming constructs Flashcards

2
Q

‘number_of_mixers * rate_per_mixer’ is an example of an

A

arithmetic expression

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

The name for a memory location where a value will be stored during a program.

A

variable

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

In Scratch, this statement prompts the user for keyboard input.

A

ask

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

In Scratch, this blue system variable stores what has just been keyed in at the keyboard.

A

answer

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

‘17 - age’ is an example of an

A

arithmetic expression

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

To put a value inside a variable

A

assign

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

The statement used in Scratch to assign a value to a variable

A

set

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

The command used in Scratch to output values onto the stage.

A

say

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

The name for a statement like:’if age < 17 then’

A

conditional statement

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

The structure of a simple conditional statement looks like this:

A

if (test) then (statement)

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

The structure of a complex conditional statement looks like this:

A

if (test) then (statement) else (statement)

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

The name for a construct which causes a statement or block of statements to be carried out more than once.

A

iteration

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

The name of an iteration construct which should be used when the number of repetitions is known in advance.

A

fixed loop

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

The name of an iteration construct used when the number of repetitions cannot be known in advance.

A

conditional loop

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

A fixed loop in Scratch is called a

A

repeat loop

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

A conditional loop in Scratch is called a

A

repeat until loop