Font size
WorksheetsChapter 3 : Flowchart & Pseudocode
Total questions: 20
Worksheet time: 12mins
What does sequential mean?
Instructions are executed in the order of importance
Instructions are executed when activated by the user
Instructions are executed when the computer requires them to execute
Instructions are executed one after another from beginning to end
Which of these are examples of Selection?
for(x=0; x<5; x++)
//do stuff
if (x > 0)
//do stuff
while(x < 5)
//do stuff
switch(x)
case(0): //do stuff
Which of these are examples of Iteration?
for(x=0; x<5; x++)
//do stuff
while(x < 5)
//do stuff
if (x > 0)
//do stuff
switch(x)
case(0): //do stuff
Which of the following best describes an Algorithm?
A specific piece of code that does a specific function
A well-defined step-by-step procedure to solve a problem
An outline for a solution to solve a given problem
A step-by-step procedure to code a computer program
What are the characteristics of a Flowchart?
It flows from top to bottom
It is easy to translate into programming language
It represents an algorithm, workflow or process in a diagram
It shows steps as boxes of various kinds
What are some of the benefits of a Flowchart?
Makes logic clear
Communication
Easy to translate into programming language
Easy to modify
What does this symbol represent in a Flowchart?
Show order of operation
A conditional operation
Input and output of data
Beginning or Ending of the program
Processes that change value/form/location of data
What does this symbol represent in a Flowchart?
Show order of operation
A conditional operation
Input and output of data
Beginning or Ending of the program
Processes that change value/form/location of data
What does this symbol represent in a Flowchart?
Show order of operation
A conditional operation
Input and output of data
Beginning or Ending of the program
Processes that change value/form/location of data
What does this symbol represent in a Flowchart?
Show order of operation
A conditional operation
Input and output of data
Beginning or Ending of the program
Processes that change value/form/location of data
How would you represent this operation in a flowchart?
x = x + 1
Decision
Process
Input/Output
How would you represent this operation in a flowchart?
var a = prompt("Please enter your Name");
Decision
Process
Input/Output
How would you represent this operation in a flowchart?
if (isRaining)
Decision
Process
Input/Output
What is the purpose of writing Pseudocode?
Helps programmers develop algorithms informally
Allows programmers to develop software quickly
Gives programmers a artificial, text-based design tool
Gives programmers another way to develop their software
What is a benefit of using Pseudocode?
Language independent
Visualises the flow of the program
Allows programmers to start coding
What is NOT a disadvantage of writing Pseudocode
Cannot be compiled or executed
No real formatting or syntax rules
Can only be used in creating Websites
No accepted standard styles of writing pseudocode
Does not provide visual representation of the program logic
Which one of these rules where not followed in the following pseudocode:
Indent to show hierarchy
Capitalize initial keywords
End multiline structures
Write only one statement per line
Which one of these rules where not followed in the following pseudocode:
Indent to show hierarchy
Capitalize initial keywords
End multiline structures
Write only one statement per line
What operation is shown in the pseudocode?
Selection
Iteration
Sequential
What operation is shown in the pseudocode?
Selection
Iteration
Sequential
