COMPUTER SCIENCE AND ENGINEERING
ALGORITHMS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Each step of the algorithm is written on a line of its own, in sequence
|
|
Each step of the algorithm is explained in a diagram
|
|
All the steps of the algorithm is written on the same line
|
|
None of the above
|
Detailed explanation-1: -Representing sequencing in pseudocode Writing in pseudocode is rather like writing in a programming language . Each step of the algorithm is written on a line of its own, in sequence. Consider this simple algorithm for calculating how old a dog is in dog years.
Detailed explanation-2: -Writing in pseudocode is similar to writing in a programming language. Each step of the algorithm is written on a line of its own in sequence. Usually, instructions are written in uppercase, variables in lowercase and messages in sentence case.
Detailed explanation-3: -Sequencing is the specific order in which instructions are performed in an algorithm. For example, a very simple algorithm for brushing teeth might consist of these steps: put toothpaste on toothbrush. use toothbrush to clean teeth.