NEW
Font size
WorksheetsProblem Solving and Program Design Final Quiz
Total questions: 40
Worksheet time: 3hrs 20mins
What is an algorithm?
Patterns and trends used to solve a problem
A set of step-by-step instructions to resolve a problem
A programming language
What are algorithms used for?
To plan out the solution to a problem
As a platform to program a solution
To test a solution to a problem
When can an algorithm be used?
Only with computers
For programming
To design a solution to any problem
If it is AFTER 7am, what do you need to do?
Take the bus
Take the subway
Check the time
Leave home
What should be considered when designing an algorithm?
If there is more than one way to solve the problem
If the correct hardware is being used
If the correct software is being used
You are at the yellow arrow, pointing in the direction indicated. How would you move to fill in the 2 black squares?
Straight, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square
Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square
Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn right, Straight x 1, Fill Square
Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 2, Fill Square
What is the correct symbol for a process instruction in a flowchart?
A rectangle
A parallelogram
A square
In a flow chart what is this symbol used for?
Start/End
Process
In programming, what is iteration?
The repetition of instructions within a program
The order in which instructions are carried out
A decision point in a program
Testing a program to make sure it works
FOR loops are
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
A condition is
a statement that is either True or False
a string
an integer
a list
Which kind of loop would be used?
I need a program that will keep letting me add a monthly payment for 12 months.
FOR Loop
WHILE Loop
Which kind of loop would be used?
I need a revision program that will run through revision questions 4 times.
FOR Loop
WHILE Loop
Look at the following code snippet, what will it generate?
1,2,3,4,5,6,7,8,9,10,11,12
0,1,2,3,4,5,6,7,8,9,10,11,12
1,2,3,4,5,6,7,8,9,10,11,12,13
0,1,2,3,4,5,6,7,8,9,10,11,12,13
Look at the following code snippet, what will it generate?
1,2,3,4
what is the name of the variable used in the following code snippet?
counter
for
do
When a dual option selection statement is needed. The program uses an:
If Then Else
If Then
Nested If
None of these are correct
When a single option selection statement is needed, it would be best to use an:
IF-THEN-ELSE
IF-THEN
Nested IF
None of the above
Where more than two options are required in a selection statement, the best approach would be to use a:
IF-THEN-ELSE
IF-THEN
Nested IF
None of the above
What signifies then end of a program?
end
end.
end;
Exit
How many "if" statements can a single program have?
<10
<20
<30
As many as is needed
What does sequence mean?
To create a pattern
To do something in order
To do something randomly
To repeat something over and over again
Yes
19
In this flowchart, r ...
is the radius of a circle
stands for random number
represents a running total
is a miscellaneous variable
This flowchart is made to ...
find out which of two numbers is the biggest
add two numbers together and output the larger result
input two numbers and expand them
This flowchart has a major flaw. It is
Not using diamonds for decisions
Asking too many questions
Being illegible for horses
Helping people who think they are horses realise they are not
"D"
What is a Constant?
A storage location of memory which does not change
A random area to store things in.
Something that changes
Something that can only store numbers
Flowcharts and Algorithms are the same
TRUE
FALSE
In the following Flowchart example; the most appropriate symbol/shape that completes the sequence should be:
Process
Input/Output
Start/End
Decision
Given the flowchart below, what will be output if the mark inputted is 12%?
Distinction
Merit
Pass
Level 1
Unclassified
What is wrong about the following flowchart?
The decision box has two output connectors but should have two input connectors instead.
There is a process box where there should be a data i/o box.
The terminators at the beginning and end should be rectangles.
The flowchart doesn't have any output.
