WorksheetsUnderstanding Algorithms and Flowcharts
Total questions: 19
Worksheet time: 10mins
What is the main purpose of an algorithm in computer science?
To store data
To provide a step-by-step solution to a problem
To display graphics
To connect to the internet
Which of the following best describes pseudocode?
A programming language
A way to write code that only computers can understand
A simplified, human-readable description of an algorithm
A type of flowchart
In a flowchart, which shape is typically used to represent a decision or branching point?
Rectangle
Diamond
Oval
Parallelogram
Which model of software development is known for its linear and sequential approach?
Iterative and incremental model
Waterfall model
Agile model
Spiral model
Fill in the blank: The process of keeping a running total in an algorithm is called __________.
Sorting
Accumulation
Selection
Branching
Which of the following is NOT typically considered a stage in the Systems Development Life Cycle (SDLC)?
Analysis
Design
Implementation
Marketing
Testing
What is the main difference between the iterative and incremental model and the waterfall model?
Waterfall is faster
Iterative and incremental allows for repeated improvements
Waterfall uses pseudocode
Iterative and incremental does not use flowcharts
Which tool is commonly used to visually represent the flow of an algorithm?
Spreadsheet
Flowchart
Database
Text editor
In an IPO chart, what does IPO stand for?
Input, Processing, Output
Internet, Protocol, Output
Input, Program, Output
Increment, Process, Organise
Which of the following is an example of an accumulation algorithm in Python?
`total = total + number`
`if number > 10: print(number)`
`for i in range(10): print(i)`
`number = input("Enter a number: ")`
What is the formula for calculating the mean of a list of numbers?
Mean=Maximum−Minimum
Mean=Number of numbersSum of all numbers
Mean=Sum of all numbers×Number of numbers
Mean=Sum of all numbers+Number of numbers
Which of the following is used to find the minimum value in a list in Python?
`max(list)`
`min(list)`
`sum(list)`
`mean(list)`
Which stage of the SDLC involves gathering requirements and understanding the problem?
Analysis
Design
Implementation
Testing
Fill in the blank: A flowchart uses __________ to show the direction of flow.
Circles
Arrows
Squares
Stars
What is the main advantage of using pseudocode before writing actual code?
It is faster to run
It helps plan and organise logic without worrying about syntax
It uses more memory
It is only for advanced programmers
Which of the following best describes the output stage in an IPO chart?
The data entered by the user
The result produced after processing
The steps taken to process data
The tools used to create the chart
In a flowchart, what does a parallelogram typically represent?
Start/End
Input/Output
Decision
Process
Which of the following is an example of pseudocode for finding the maximum value in a list?
Set max to first item; For each item, if item > max, set max to item; End loop
Print all items in the list
Add all items together
Set min to first item; For each item, if item < min, set min to item; End loop
Which of the following statements about algorithms is TRUE?
Algorithms are only used in mathematics
Algorithms must always be written in code
Algorithms can be represented using flowcharts, pseudocode, or code
Algorithms are not useful in computer science
