Introduction to Algorithms
Questions 10
The answer key is shown to signed-in teachers.
-
Definition of an algorithm
Which of the following best describes an algorithm?
A programming language used only for websites
A finite, ordered set of clear steps that solves a problem
A random collection of computer instructions
A type of computer hardware used for storage
Think about what a recipe does: it lists steps in a specific order to reach a result. -
Purpose of a flowchart
What is the main purpose of a flowchart in software development?
To compile source code into machine code
To test the speed of an internet connection
To show the steps of a process visually using standard symbols
To store data in a database
A flowchart uses shapes like ovals, rectangles, and diamonds to draw how a process moves from start to finish. -
-
Purpose of a loop
Which statement best describes the purpose of a loop in a program?
To permanently delete unused variables from memory
To repeat a block of instructions while a condition is met or for a set number of times
To connect two separate computers over a network
To skip all instructions in a program
Consider a task you repeat many times, such as counting from 1 to 10 or walking until you reach a door. -
Conditional statements
Consider the statement: if the temperature is above 30, print 'Hot'; otherwise, print 'Not hot'. What kind of control structure is this?
A loop structure
A variable declaration
A condition (selection) structure
A file storage command
The program chooses one of two outputs depending on whether a statement is true or false. -
-
-
-
-
About
- Subjects
- software
- Audience
- Junior High School · Grades 8–9
- Difficulty
- 4 out of 10
- Language
- English
- Who can see it
- Everyone
- Written by AI
- Claude Haiku 5.5
- Created
Comments