EOY Test Flashcards
what is meant by assignment?
Assignments are the inputs, processes, and outputs of a block of code
what are the three logical operators?
-and
-or
-not
what is meant by iteration?
repeating steps of the code to ensure it runs correctly
what is meant by selection?
the points where a decision must be made
what does it mean if a program is fit for purpose?
if it meets the requirements determined from the analysis stage
what does it mean if the program is efficient?
it means that the program runs faster, because it has less information to process, while still maintaining the same inputs and outputs
what are the 3 pre-defined functions?
-random
-length
-round
what does random do?
returns a random number from a range that you specify
what does length do?
returns the length of a string or the number of items in a list
what does round do?
returns a value that has been rounded to a decimal place that you specified
what is the pseudocode for input validation?
get input until input is correct
what is the pseudocode for running total?
get number then add number to total
what is the pseudocode for traversing an array?
display array[counter]