EOY Test Flashcards

1
Q

what is meant by assignment?

A

Assignments are the inputs, processes, and outputs of a block of code

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

what are the three logical operators?

A

-and
-or
-not

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

what is meant by iteration?

A

repeating steps of the code to ensure it runs correctly

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

what is meant by selection?

A

the points where a decision must be made

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

what does it mean if a program is fit for purpose?

A

if it meets the requirements determined from the analysis stage

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

what does it mean if the program is efficient?

A

it means that the program runs faster, because it has less information to process, while still maintaining the same inputs and outputs

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

what are the 3 pre-defined functions?

A

-random
-length
-round

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

what does random do?

A

returns a random number from a range that you specify

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

what does length do?

A

returns the length of a string or the number of items in a list

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

what does round do?

A

returns a value that has been rounded to a decimal place that you specified

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

what is the pseudocode for input validation?

A

get input until input is correct

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

what is the pseudocode for running total?

A

get number then add number to total

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

what is the pseudocode for traversing an array?

A

display array[counter]

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