凹凸雅思
首页闪卡复习O-LEVELCOMPUTER-SCIENCE7 algorithm design and problem solving

algorithms

使用闪卡高效复习COMPUTER-SCIENCE科目知识点

共计闪卡

20

闪卡自测

进度: 1 / 20已掌握: 0 | 需要复习: 0
问题

Define "algorithm"

点击查看答案
请先阅读问题,然后点击卡片查看答案

所有闪卡

闪卡 1

问题

Define "algorithm"

查看答案

答案

An algorithm is a precise set of rules or instructions to solve a specific problem or task.

闪卡 2

问题

What are the three main ways to design an algorithm?

查看答案

答案

The three main ways to design an algorithm are structure diagrams, flowcharts, and pseudocode.

闪卡 3

问题

What is a structure diagram?

查看答案

答案

A structure diagram shows hierarchical top-down design in a visual form, dividing problems into sub-problems.

闪卡 4

问题

True or False? Flowcharts use shapes to represent different functions in an algorithm.

查看答案

答案

True. Flowcharts use shapes to represent different functions to describe an algorithm.

闪卡 5

问题

What does pseudocode use to describe an algorithm?

查看答案

答案

Pseudocode uses short English words/statements to describe an algorithm.

闪卡 6

问题

Define "flowchart"

查看答案

答案

A flowchart is a visual tool that uses shapes to represent different functions to describe an algorithm.

闪卡 7

问题

What do lines represent in a flowchart?

查看答案

答案

In a flowchart, lines represent the flow of control.

闪卡 8

问题

True or False? ** Pseudocode is less structured **than writing sentences in English.

查看答案

答案

False. Pseudocode is more structured than writing sentences in English but is very flexible.

闪卡 9

问题

What is the function of this shape in a flowchart?

查看答案

答案

Inputs and outputs.

闪卡 10

问题

What is the function of this shape in a flowchart?

查看答案

答案

Sub-process.

闪卡 11

问题

What are three ways algorithms can be written?

查看答案

答案

Algorithms can be written using flowcharts, pseudocode, or high-level programming language code such as Python.

闪卡 12

问题

True or False? ** A well-designed algorithm should be interpretable by a new user** who can explain what it does.

查看答案

答案

True. A well-designed algorithm should be interpretable by a new user who can explain what it does.

闪卡 13

问题

What is the purpose of an algorithm?

查看答案

答案

The purpose of an algorithm is to solve a problem.

闪卡 14

问题

Define "pseudocode"

查看答案

答案

Pseudocode is a method of writing algorithms using short English words/statements that is more structured than plain English but less formal than actual programming code.

闪卡 15

问题

What are three ways to understand a complex algorithm?

查看答案

答案

Three ways to understand a complex algorithm are: look for comments in the code, consider the context of where the algorithm is being used, and test the algorithm with different inputs.

闪卡 16

问题

What does the term "initialisation" mean in the context of algorithms?

查看答案

答案

Initialisation refers to setting initial values for variables at the beginning of an algorithm.

闪卡 17

问题

True or False? The purpose of an algorithm should always be explicitly stated at the beginning.

查看答案

答案

False. The purpose of an algorithm should become clear by following its instructions, even if not explicitly stated.

闪卡 18

问题

What is the function of an array in an algorithm?

查看答案

答案

An array in an algorithm is used to store multiple values under a single variable name, typically accessed by an index.

闪卡 19

问题

What does the term "REPEAT...UNTIL" represent in pseudocode?

查看答案

答案

In pseudocode, "REPEAT...UNTIL" represents a loop that continues to execute until a specified condition is met.

闪卡 20

问题

What is the purpose of the "IF...THEN...ELSE" structure in algorithms?

查看答案

答案

The "IF...THEN...ELSE" structure in algorithms is used for decision-making, allowing different actions to be taken based on whether a condition is true or false.