COMPUTER SCIENCE AND ENGINEERING
ALGORITHMS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Nothing
|
|
Prints the word “Hello” to the output
|
|
hello is print in pseudocode
|
|
The code won’t work
|
Detailed explanation-1: -Pseudocode. writeln ("Hello World"); count := count + 1; until (count = 10);
Detailed explanation-2: -Common pseudocode notation OUTPUT – indicates that an output will appear on the screen. WHILE – a loop (iteration that has a condition at the beginning) FOR – a counting loop (iteration) REPEAT – UNTIL – a loop (iteration) that has a condition at the end.
Detailed explanation-3: -Definition: Pseudocode is an informal way of programming description that does not require any strict programming language syntax or underlying technology considerations. It is used for creating an outline or a rough draft of a program. Pseudocode summarizes a program’s flow, but excludes underlying details.
Detailed explanation-4: -Some common loops are for loops and while loops, both of which can be written in pseudocode. This algorithm is for a program that will print “Hello” 12 times, which is a bit excessive but shows how simple it is to write a loop in pseudocode. Another pretty simple algorithm using a while loop to print “Hello".