NEW
Font size
Worksheetsflowchart and pseudocode input output condition loop (IGCSE)
Total questions: 20
Worksheet time: 11mins
A diagram to show a process / steps is....
flowchart
pseudocode
python
data diagram
what is flowchart symbol for Start / Finish ?
rectangle
circle
oval / rounded rectangle
diamond
What is the flowchart symbol for a decision point?
rectangle
oval / rounded rectangle
diamond
parallelogram
In a flowchart, what does a parallelogram symbol represent?
Decision
Process
Input/Output
Start/End
Which one is NOT the rule of algorithm ?
algorithm conduct in daily language, such as daily English
algorithm has 1 activity per step
algorithm should contains more than 2 activities per step
algorithm should provide steps sequentially
Which pseudocode command used for printing an output ?
INPUT
DECLARE
OUTPUT
Which pseudocode command used for declaring variable ?
DECLARE
VAR
ASSIGN
OUTPUT
Which pseudocode line of code is correct to assigning variable ?
number <- 5
number = 5
number -> 5
number == 5
What is the primary purpose of an algorithm?
To create a flowchart
To write code in a programming language
To provide a solution to a problem
To visualize data
Which symbol in a flowchart represents a process step?
diamond
parallelogram
oval / rounded rectangle
rectangle
In pseudocode, which command is typically used to read input from the user?
RECEIVE
GET
INPUT
READ
Which of the following is a characteristic of a good algorithm?
It should be lengthy
It should be efficient
It should be complex
It should be ambiguous
Which of the following is NOT a flowchart symbol?
Circle
Hexagon
Diamond
Oval
In pseudocode, which command is used to end a program?
FINISH
STOP
EXIT
END
Which of the following best describes pseudocode?
A programming language
A way to visualize data
A method for writing algorithms in plain language
A type of flowchart
Which pseudocode used to make a condition ?
IF ....
IF ....
ELSE
....
IF ....
ELSE
....
ENDIF
IF .... THEN
....
ELSE
....
ENDIF
Which pseudocode below is not for looping ?
FOR ... TO ....
NEXT ...
WHILE ....
....
ENDWHILE
REPEAT .....
UNTIL ....
DO .....
WHILE .....
DECLARE no:INTEGER
no <- 5
no <- no - 1
OUTPUT no
What is the output of this pseudocode ?
5
4
ERROR
1
DECLARE bin:INTEGER
bin <- "5"
OUTPUT bin
why this output results an error ?
should be bin = "5"
should be PRINT bin
because "5" is not integer datatype
(it's character with quotation mark)
should be
INCLUDE bin:INTEGER
DECLARE candy_in_jar: INTEGER
candy_in_jar <- 3
WHILE candy_in_jar > 0
candy_in_jar ← candy_in_jar - 1
OUTPUT "candy"
ENDWHILE
What is the output of this program ?
candy
candy
candy
candy
0
candy_in_jar
