Computer · Algorithms and Flowcharts
Consider the following pseudocode: Start Read n1, n2 If n1 > n2 then Print n1 Else Print n2 End if Stop What will be the functional output of this algorithm if we change the condition from 'n1 > n2' to 'n1 < n2'?
- 1n1 will always be displayed
- 2The largest of the two numbers will be displayed
- 3The smallest of the two numbers will be displayed✓
- 4n2 will always be displayed
Correct answer
The smallest of the two numbers will be displayed
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Algorithms and Flowcharts?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer · Algorithms and Flowcharts