WorksheetsBeginner's Guide to Pseudocode Structure
Total questions: 50
Worksheet time: 26mins
Which option shows the correct high-level structure of a simple pseudocode program?
Start → Steps → End
Steps → Start → End
Start → End → Steps
End → Steps → Start
In pseudocode, what does the Start keyword indicate?
The program stops running
Where the program begins
A loop will repeat steps
An error has occurred
You are asked to write pseudocode to greet a user on screen. Which sequence best fits the idea of steps between Start and End?
Start → Display 'Hello' → End
Start → End → Display 'Hello'
Display 'Hello' → Start → End
Start → Display 'Hello' → Display 'Hello' → End only if error
In pseudocode, which statement best describes the role of the Start keyword?
It marks where user input is displayed on the screen.
It indicates the beginning of the pseudocode or program.
It performs calculations on the input values.
It signifies the end of the program.
A pseudocode step says: "Ask the user for their age, add 1, then show the result." Which sequence labels matches these steps?
Output → Processing → Input
Start → Output → End
Input → Processing → Output
Processing → Output → Start
Which pseudocode best follows the guideline for adding two numbers with clear user prompts?
Input Number1; Input Number2; Sum ← Number1 + Number2; Display Sum
Display "Enter first number"; Input Number1; Display "Enter second number"; Input Number2; Sum ← Number1 + Number2; Display Sum
Input Name; Display "Enter age"; Input Age; Display Name
Display Sum; Input Number1; Input Number2
What is the primary purpose of the If … Then … Else … EndIf structure in pseudocode?
Repeating steps until a condition is false
Making decisions by checking a condition and choosing what to do
Storing data in variables
Displaying output on the screen only
According to the explanation of If … Then … Else … EndIf, which sequence best describes how it works?
Check a condition; if true do one set of instructions; else do something different; end with EndIf
Start with Else; then If; repeat steps forever
Run both instruction sets regardless of the condition; stop without EndIf
Only act when the condition is false; otherwise skip everything
Which pseudocode action happens when the condition "it is raining" is false in an IF/ELSE choice?
Take an umbrella
Wear a cap
Stay indoors
Check the weather again
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?
You can vote
You cannot vote
Invalid age
Enter your age
What best describes a While...EndWhile loop in pseudocode?
It repeats steps a fixed number of times regardless of any condition.
It repeats steps as long as a condition remains true.
It executes only once if a condition is true, otherwise skips.
It repeats until the user presses a key.
Which statement best describes a For...EndFor loop?
It repeats steps until a condition becomes false, with no fixed count.
It repeats steps a fixed number of times, using a counter to iterate.
It runs steps only once, then stops.
It selects between two paths based on a condition.
What does the SET/ASSIGN (=) operator do in pseudocode?
Compares two values to see if they are equal
Stores a value in a variable
Deletes a variable from memory
Displays a value on the screen
Given the pseudocode: Set Total = 0; Total = Total + 5. What is the final value stored in Total?
0
5
10
Undefined
In the pseudocode example for adding two numbers, which step correctly computes the result after both inputs are received?
Display "Enter first number"
Input Number1
Sum = Number1 + Number2
Display "The total is " + Sum
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
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 pseudocode line of code is correct to assigning variable ?
number <- 5
number = 5
number -> 5
number == 5
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 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
What is a network in computing terms?
A collection of computers connected to share resources
A single computer with multiple programs
A type of programming language
A mathematical algorithm
Which of the following best describes a LAN (Local Area Network)?
A network that connects computers across the world
A network that connects computers in a limited area like a school or home
A network that only connects two computers
A network that requires satellite connection
What is a pseudocode?
A programming language used only by beginners
An informal, human-readable description of an algorithm
A code that requires special software to run
A secret code used to protect data
Which of the following is NOT typically included in pseudocode?
Input and output statements
Exact programming syntax with semicolons and brackets
Decision structures (if-then statements)
Loop structures (for, while)
What is the main purpose of an IP address?
To identify a user's personal information
To uniquely identify devices on a network
To store website data
To encrypt network communications
Which of the following best describes the Internet?
A global network of interconnected networks
A programming language
A type of computer hardware
A software application
What is a variable in programming?
A mathematical equation
A storage location with a name that contains data
A type of network connection
A hardware component
Which loop structure would you use when you don't know in advance how many times the loop will be executed?
FOR loop
WHILE loop
REPEAT loop
SEQUENCE loop
What is the purpose of a flowchart in algorithm design?
To create a visual representation of the steps in an algorithm
To test if the algorithm works correctly
To convert the algorithm into machine code
To identify security vulnerabilities
What does WWW stand for in a web address?
World Wide Web
Web World Window
Wide Web Window
World Web Window
What is the correct pseudocode for a simple program that displays "Hello" five times?
FOR count = 1 TO 5 PRINT "Hello" END FOR
IF count < 5 THEN PRINT "Hello" END IF
WHILE count = 5 PRINT "Hello" END WHILE
PRINT "Hello" PRINT "Hello" PRINT "Hello" PRINT "Hello" PRINT "Hello"
Which of these is an example of a computational thinking skill?
Typing quickly
Memorizing facts
Breaking down problems into smaller parts
Building physical computers
What is the main difference between the Internet and the World Wide Web?
They are different names for the same thing
The Internet is a global network of networks, while the Web is a service that uses the Internet
The Web is faster than the Internet
The Internet is wireless while the Web requires cables
What is the purpose of decomposition in computational thinking?
To destroy old computers
To break down complex problems into smaller, more manageable parts
To combine small problems into larger ones
To translate code from one language to another
An algorithm is a set of steps to solve a problem. Why is it important?
It provides a clear method to solve problems efficiently.
It makes problems more complicated.
It is only used in mathematics.
It is not useful in real life.
Which of the following is a simple pseudocode for brushing your teeth?
1. Pick up toothbrush. 2. Apply toothpaste. 3. Brush teeth. 4. Rinse mouth.
1. Pick up fork. 2. Eat food. 3. Wash hands. 4. Go to bed.
1. Turn on computer. 2. Open browser. 3. Search for videos. 4. Watch movie.
1. Wear shoes. 2. Tie laces. 3. Walk outside. 4. Run.
Programmers might use pseudocode before writing actual code because:
It helps plan the logic before coding.
It makes the code run faster.
It automatically generates code.
It is required by all programming languages.
Programmers might use pseudocode before writing actual code because:
It helps plan the logic before coding.
It makes the code run faster.
It automatically generates code.
It is required by all programming languages.
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”?
Input number If number % 2 == 0 then Display "Even Number" Else Display "Odd Number"
Input number If number % 2 == 1 then Display "Even Number" Else Display "Odd Number"
Input number If number > 0 then Display "Even Number" Else Display "Odd Number"
Input number If number < 0 then Display "Even Number" Else Display "Odd Number"
