wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

flowchart and pseudocode input output condition loop (IGCSE)

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.

A diagram to show a process / steps is....

a)

flowchart

b)

pseudocode

c)

python

d)

data diagram

2.

what is flowchart symbol for Start / Finish ?

a)

rectangle

b)

circle

c)

oval / rounded rectangle

d)

diamond

3.

What is the flowchart symbol for a decision point?

a)

rectangle

b)

oval / rounded rectangle

c)

diamond

d)

parallelogram

4.

In a flowchart, what does a parallelogram symbol represent?

a)

Decision

b)

Process

c)

Input/Output

d)

Start/End

5.

Which one is NOT the rule of algorithm ?

a)

algorithm conduct in daily language, such as daily English

b)

algorithm has 1 activity per step

c)

algorithm should contains more than 2 activities per step

d)

algorithm should provide steps sequentially

6.

Which pseudocode command used for printing an output ?

a)

PRINT

b)

INPUT

c)

DECLARE

d)

OUTPUT

7.

Which pseudocode command used for declaring variable ?

a)

DECLARE

b)

VAR

c)

ASSIGN

d)

OUTPUT

8.

Which pseudocode line of code is correct to assigning variable ?

a)

number <- 5

b)

number = 5

c)

number -> 5

d)

number == 5

9.

What is the primary purpose of an algorithm?

a)

To create a flowchart

b)

To write code in a programming language

c)

To provide a solution to a problem

d)

To visualize data

10.

Which symbol in a flowchart represents a process step?

a)

diamond

b)

parallelogram

c)

oval / rounded rectangle

d)

rectangle

11.

In pseudocode, which command is typically used to read input from the user?

a)

RECEIVE

b)

GET

c)

INPUT

d)

READ

12.

Which of the following is a characteristic of a good algorithm?

a)

It should be lengthy

b)

It should be efficient

c)

It should be complex

d)

It should be ambiguous

13.

Which of the following is NOT a flowchart symbol?

a)

Circle

b)

Hexagon

c)

Diamond

d)

Oval

14.

In pseudocode, which command is used to end a program?

a)

FINISH

b)

STOP

c)

EXIT

d)

END

15.

Which of the following best describes pseudocode?

a)

A programming language

b)

A way to visualize data

c)

A method for writing algorithms in plain language

d)

A type of flowchart

16.

Which pseudocode used to make a condition ?

a)

IF ....

b)

IF ....

ELSE

   ....

c)

IF ....

ELSE

   ....

ENDIF

d)

IF .... THEN

 ....

ELSE

   ....

ENDIF


17.

Which pseudocode below is not for looping ?

a)

FOR ... TO ....

NEXT ...

b)

WHILE ....

....

ENDWHILE

c)

REPEAT .....

UNTIL ....

d)

DO .....

WHILE .....

18.

DECLARE no:INTEGER

no <- 5

no <- no - 1

OUTPUT no

What is the output of this pseudocode ?

a)

5

b)

4

c)

ERROR

d)

1

19.

DECLARE bin:INTEGER

bin <- "5"

OUTPUT bin

why this output results an error ?

a)

should be bin = "5"

b)

should be PRINT bin

c)

because "5" is not integer datatype

(it's character with quotation mark)

d)

should be

INCLUDE bin:INTEGER

20.

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 ?

a)

candy

candy

candy

b)

candy

c)

0

d)

candy_in_jar