Full Transcript

## Copy and fill in the blanks questions 1. Pseudocode is an algorithm that models or resembles a real program written in a particular programming language for the computer. 2. A series of coded instructions for the computer to obey in order to solve a problem that can be executed by the computer i...

## Copy and fill in the blanks questions 1. Pseudocode is an algorithm that models or resembles a real program written in a particular programming language for the computer. 2. A series of coded instructions for the computer to obey in order to solve a problem that can be executed by the computer is called a computer program. ## True or false questions 1. A pseudocode is an algorithm. _**True**_ 2. A problem is a computer program. _**False**_ 3. One of the steps involved in solving a problem is analysing the problem. _**True**_ 4. We can use the 'Five Ws and How' question chart to define a problem. _**False**_ 5. After following an algorithm, we do not arrive at a solution to a problem. _**False**_ ## Multiple-choice questions Choose the best answer to each question. 1. We use the inverted triangle to: * a. analyse a problem. * **b. consider different ways of achieving the result.** * c. define a problem. * d. develop an algorithm. 2. The ingredients/item chart tool is used to: * a. analyse a problem. * **b. develop an algorithm.** * c. sequence a problem. * d. draw a conclusion. 3. A specific rule for writing a particular computer language is called: * a. an algorithm. * **b. syntax.** * c. program language. * d. a solution. 4. A pseudocode is: * a. a computer program. * **b. syntax.** * c. a problem. * d. an algorithm. 5. Steps in solving a problem include: * **a. defining the problem.** * **b. analysing the problem by determining what is needed to solve the problem.** * **c. deciding what results we want to achieve.** * **d. all of the above.** ## Explain how you can use the idea web tool to analyse a problem. The idea web tool allows us to list all the different options for a problem. ## State the steps in problem solving. 1. Start with a clear understanding of what the problem is. 2. Analyse the problem, that is, determine what we need to do to solve the problem. 3. Decide what results we want to achieve. 4. Consider different ways to achieve our result, and select the best option. 5. Develop a method or algorithm to solve the problem. ## Explain the difference between an algorithm and a pseudocode. * An algorithm (method) is a set of instructions that are used for solving a problem. A good algorithm is exact, with no uncertainty about what to do next. It has a logical sequence, with a fixed number of instructions to be carried out in a specific order. It has a finite number of inputs and one or more outputs. An algorithm is finite, so eventually comes to an end after a fixed number of steps. It is effective, with steps that are doable. It is efficient, meaning that the instructions or steps allow the algorithm to run in the minimum amount of time and space on the computer. * A pseudocode is an algorithm that models or resembles a real program written in a particular programming language for a computer. A pseudocode also cannot be executed by a computer.

Use Quizgecko on...
Browser
Browser