CompSci Y08 Aut1 Flashcards

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

What is selection?

A

Selection is where a program checks a criteria, and the program responds accordingly.

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

What is a criteria?

A

The criteria is the check which the program performs.

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

What does the word criteria mean?

A

The criteria is what the program checks to see if it is the case. For example: score > 10

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

What does the command “ElseIf” do?

A

Allows additional criteria to be checked.

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

How would you make a program show “Well done” if the variable score is above 10?

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

What does “Else” do?

A

This tells the program what to do if none of the criteria have been met.

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

What is a variable?

A

In a computer program, a variable is used to store data.

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

How do you create a variable?

A

In the ‘data’ draw, click ‘Make a Variable’.

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

How do you output the contents of a variable?

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

What is iteration?

A

Iteration is makes commands repeat.

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

What are the two types of iteration?

A

Definite iteration and indefinite iteration.

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

What is definite iteration?

A

Definite iteration repeats lines of code for a fixed number of times.

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

How would you make the program output “Hello!” 5 times?

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

What is indefinite iteration?

A

Indefinite iteration repeats lines of code while a criteria is met.

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

How would you make the program run while lives are greater than 0?

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