MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In pseudo code what does the IF statement relate to in flowcharts?
A
Decision
B
Terminator
C
Process
D
None of the above
Explanation: 

Detailed explanation-1: -An IF statement starts with a condition which is tested. If the condition evaluates as TRUE then the THEN code block will be run. If the condition evaluates as false then the ELSE block will run. In the following example “Hello” will be printed if x = 1, otherwise “Good night” will be printed.

Detailed explanation-2: -If-else Flowchart. The if-else statement executes a set of commands, called the “if” part, when a certain condition is met. If that condition evaluates to false, the “else” part will be executed instead.

Detailed explanation-3: -Pseudocode flowchart helps people involved in a project understand, explain, and communicate what they have in mind for the algorithm. Proper use of these tools will ensure ideas are translated into cipher correctly and reduce potential flaws.

Detailed explanation-4: -Flowcharts typically use the following main symbols: A process step, usually called an activity, is denoted as a rectangular box. A decision is usually denoted as a diamond.

There is 1 question to complete.