wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Beginner's Guide to Pseudocode Structure

Total questions: 50

Worksheet time: 26mins

Name
Class
Date
1.

Which option shows the correct high-level structure of a simple pseudocode program?

a)

Start → Steps → End

b)

Steps → Start → End

c)

Start → End → Steps

d)

End → Steps → Start

2.

In pseudocode, what does the Start keyword indicate?

a)

The program stops running

b)

Where the program begins

c)

A loop will repeat steps

d)

An error has occurred

3.

You are asked to write pseudocode to greet a user on screen. Which sequence best fits the idea of steps between Start and End?

a)

Start → Display 'Hello' → End

b)

Start → End → Display 'Hello'

c)

Display 'Hello' → Start → End

d)

Start → Display 'Hello' → Display 'Hello' → End only if error

4.

In pseudocode, which statement best describes the role of the Start keyword?

a)

It marks where user input is displayed on the screen.

b)

It indicates the beginning of the pseudocode or program.

c)

It performs calculations on the input values.

d)

It signifies the end of the program.

5.

A pseudocode step says: "Ask the user for their age, add 1, then show the result." Which sequence labels matches these steps?

a)

Output → Processing → Input

b)

Start → Output → End

c)

Input → Processing → Output

d)

Processing → Output → Start

6.

Which pseudocode best follows the guideline for adding two numbers with clear user prompts?

a)

Input Number1; Input Number2; Sum ← Number1 + Number2; Display Sum

b)

Display "Enter first number"; Input Number1; Display "Enter second number"; Input Number2; Sum ← Number1 + Number2; Display Sum

c)

Input Name; Display "Enter age"; Input Age; Display Name

d)

Display Sum; Input Number1; Input Number2

7.

What is the primary purpose of the If … Then … Else … EndIf structure in pseudocode?

a)

Repeating steps until a condition is false

b)

Making decisions by checking a condition and choosing what to do

c)

Storing data in variables

d)

Displaying output on the screen only

8.

According to the explanation of If … Then … Else … EndIf, which sequence best describes how it works?

a)

Check a condition; if true do one set of instructions; else do something different; end with EndIf

b)

Start with Else; then If; repeat steps forever

c)

Run both instruction sets regardless of the condition; stop without EndIf

d)

Only act when the condition is false; otherwise skip everything

9.

Which pseudocode action happens when the condition "it is raining" is false in an IF/ELSE choice?

a)

Take an umbrella

b)

Wear a cap

c)

Stay indoors

d)

Check the weather again

10.

A program asks for age and uses: If Age >= 18 Then Display "You can vote" Else Display "You cannot vote". What output appears for an input age of 17?

a)

You can vote

b)

You cannot vote

c)

Invalid age

d)

Enter your age

11.

What best describes a While...EndWhile loop in pseudocode?

a)

It repeats steps a fixed number of times regardless of any condition.

b)

It repeats steps as long as a condition remains true.

c)

It executes only once if a condition is true, otherwise skips.

d)

It repeats until the user presses a key.

12.

Which statement best describes a For...EndFor loop?

a)

It repeats steps until a condition becomes false, with no fixed count.

b)

It repeats steps a fixed number of times, using a counter to iterate.

c)

It runs steps only once, then stops.

d)

It selects between two paths based on a condition.

13.

What does the SET/ASSIGN (=) operator do in pseudocode?

a)

Compares two values to see if they are equal

b)

Stores a value in a variable

c)

Deletes a variable from memory

d)

Displays a value on the screen

14.

Given the pseudocode: Set Total = 0; Total = Total + 5. What is the final value stored in Total?

a)

0

b)

5

c)

10

d)

Undefined

15.

In the pseudocode example for adding two numbers, which step correctly computes the result after both inputs are received?

a)

Display "Enter first number"

b)

Input Number1

c)

Sum = Number1 + Number2

d)

Display "The total is " + Sum

16.

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

a)

flowchart

b)

pseudocode

c)

python

d)

data diagram

17.

what is flowchart symbol for Start / Finish ?

a)

rectangle

b)

circle

c)

oval / rounded rectangle

d)

diamond

18.

What is the flowchart symbol for a decision point?

a)

rectangle

b)

oval / rounded rectangle

c)

diamond

d)

parallelogram

19.

In a flowchart, what does a parallelogram symbol represent?

a)

Decision

b)

Process

c)

Input/Output

d)

Start/End

20.

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

21.

Which pseudocode command used for printing an output ?

a)

PRINT

b)

INPUT

c)

DECLARE

d)

OUTPUT

22.

Which pseudocode command used for declaring variable ?

a)

DECLARE

b)

VAR

c)

ASSIGN

d)

OUTPUT

23.

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

24.

Which pseudocode line of code is correct to assigning variable ?

a)

number <- 5

b)

number = 5

c)

number -> 5

d)

number == 5

25.

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

26.

Which of the following is NOT a flowchart symbol?

a)

Circle

b)

Hexagon

c)

Diamond

d)

Oval

27.

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

a)

FINISH

b)

STOP

c)

EXIT

d)

END

28.

Which pseudocode used to make a condition ?

a)

IF ....

b)

IF ....

ELSE

   ....

c)

IF ....

ELSE

   ....

ENDIF

d)

IF .... THEN

 ....

ELSE

   ....

ENDIF


29.

Which pseudocode below is not for looping ?

a)

FOR ... TO ....

NEXT ...

b)

WHILE ....

....

ENDWHILE

c)

REPEAT .....

UNTIL ....

d)

DO .....

WHILE .....

30.

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

31.

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

32.

What is a network in computing terms?

a)

A collection of computers connected to share resources

b)

A single computer with multiple programs

c)

A type of programming language

d)

A mathematical algorithm

33.

Which of the following best describes a LAN (Local Area Network)?

a)

A network that connects computers across the world

b)

A network that connects computers in a limited area like a school or home

c)

A network that only connects two computers

d)

A network that requires satellite connection

34.

What is a pseudocode?

a)

A programming language used only by beginners

b)

An informal, human-readable description of an algorithm

c)

A code that requires special software to run

d)

A secret code used to protect data

35.

Which of the following is NOT typically included in pseudocode?

a)

Input and output statements

b)

Exact programming syntax with semicolons and brackets

c)

Decision structures (if-then statements)

d)

Loop structures (for, while)

36.

What is the main purpose of an IP address?

a)

To identify a user's personal information

b)

To uniquely identify devices on a network

c)

To store website data

d)

To encrypt network communications

37.

Which of the following best describes the Internet?

a)

A global network of interconnected networks

b)

A programming language

c)

A type of computer hardware

d)

A software application

38.

What is a variable in programming?

a)

A mathematical equation

b)

A storage location with a name that contains data

c)

A type of network connection

d)

A hardware component

39.

Which loop structure would you use when you don't know in advance how many times the loop will be executed?

a)

FOR loop

b)

WHILE loop

c)

REPEAT loop

d)

SEQUENCE loop

40.

What is the purpose of a flowchart in algorithm design?

a)

To create a visual representation of the steps in an algorithm

b)

To test if the algorithm works correctly

c)

To convert the algorithm into machine code

d)

To identify security vulnerabilities

41.

What does WWW stand for in a web address?

a)

World Wide Web

b)

Web World Window

c)

Wide Web Window

d)

World Web Window

42.

What is the correct pseudocode for a simple program that displays "Hello" five times?

a)

FOR count = 1 TO 5 PRINT "Hello" END FOR

b)

IF count < 5 THEN PRINT "Hello" END IF

c)

WHILE count = 5 PRINT "Hello" END WHILE

d)

PRINT "Hello" PRINT "Hello" PRINT "Hello" PRINT "Hello" PRINT "Hello"

43.

Which of these is an example of a computational thinking skill?

a)

Typing quickly

b)

Memorizing facts

c)

Breaking down problems into smaller parts

d)

Building physical computers

44.

What is the main difference between the Internet and the World Wide Web?

a)

They are different names for the same thing

b)

The Internet is a global network of networks, while the Web is a service that uses the Internet

c)

The Web is faster than the Internet

d)

The Internet is wireless while the Web requires cables

45.

What is the purpose of decomposition in computational thinking?

a)

To destroy old computers

b)

To break down complex problems into smaller, more manageable parts

c)

To combine small problems into larger ones

d)

To translate code from one language to another

46.

An algorithm is a set of steps to solve a problem. Why is it important?

a)

It provides a clear method to solve problems efficiently.

b)

It makes problems more complicated.

c)

It is only used in mathematics.

d)

It is not useful in real life.

47.

Which of the following is a simple pseudocode for brushing your teeth?

a)

1. Pick up toothbrush. 2. Apply toothpaste. 3. Brush teeth. 4. Rinse mouth.

b)

1. Pick up fork. 2. Eat food. 3. Wash hands. 4. Go to bed.

c)

1. Turn on computer. 2. Open browser. 3. Search for videos. 4. Watch movie.

d)

1. Wear shoes. 2. Tie laces. 3. Walk outside. 4. Run.

48.

Programmers might use pseudocode before writing actual code because:

a)

It helps plan the logic before coding.

b)

It makes the code run faster.

c)

It automatically generates code.

d)

It is required by all programming languages.

49.

Programmers might use pseudocode before writing actual code because:

a)

It helps plan the logic before coding.

b)

It makes the code run faster.

c)

It automatically generates code.

d)

It is required by all programming languages.

50.

Which of the following is the correct pseudocode for a program that asks the user to enter a number, checks if the number is even or odd, and displays “Even Number” if it is even, otherwise displays “Odd Number”?

a)

Input number If number % 2 == 0 then Display "Even Number" Else Display "Odd Number"

b)

Input number If number % 2 == 1 then Display "Even Number" Else Display "Odd Number"

c)

Input number If number > 0 then Display "Even Number" Else Display "Odd Number"

d)

Input number If number < 0 then Display "Even Number" Else Display "Odd Number"