Question: 17. The following algorithm displays the numbers 110, but there is important missing operation (shown by dots). Which of these is the missing operation? for(intc=1;c=10;...............)coutcendl;


17. The following algorithm displays the numbers 110, but there is important missing operation (shown by dots). Which of these is the missing operation? for(intc=1;c=10;...............)coutcendl; A) x=x1 B) x=x+1 C) x=10 D) x=1 18. The following algorithm displays the numbers 110, but the condition of the for loop is missing (shown by dots). Which of these is the missing condition? for ( int c=1; cout c endl; A) x=10 B) x10 D) x=10;c=c1)coutcendl; A) The loop prints the numbers inversed (10-1) B) The loop prints more than 10 numbers C) The loop is infinite D) None of the Choices 21. What is the output of the following algorithm? intx=5,y=30;while(x=5;x++)y=x+1 A) 0 B) 1 C) 5 D) None of the Choices 24. What is the output of the following algorithm? int x=5,y=30; while (x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
