Carefully view this flowchart. Which of the operations IS NOT a part of the flow chart?
START
I=1,
M=5
NO
YES
Is
I>M
Input value for
List[I),
I=I+1
M=I-1,
I=2,
Val-List[i-1]
YES
Val-List[1]
NO
YES
Is
I>M
Is
List[I] >
Val
Answers
Answered by
0
Answer:
Hygxdfggvhhhhhbbbvbbbbbhgccfcvggbbbhhbnkkkmm
Answered by
0
The correct question: Study the flow chart shown below to answer the following questions.
Which among the following operations is not performed as per the process of the flow chart?
a. Take exactly 5 values as input.
b. Sort the list in descending order.
c. Print all 5 values which were given as input.
d. Never get into the "Is List > Val" loop.
The correct answer is option (c). Print all 5 values which were given as input.
- The operation "print all 5 values which were given as input" is not performed as per the process of the flow chart that is given.
- As the flowchart starts with , it indicates that the process or the programme will take exactly five values as input.
- When and , then the list is sorted in descending order.
- If the condition is not true, then the programme is set up in such a way that it gets in to the "Is List > Val" loop which in turn gets back to the step even if the given statement is true or false.
- Hence, the given programme never gets into the "Is List > Val" loop.
#SPJ3
Attachments:
Similar questions