int i-6 int d-6 do d-d*2 System.out.println (d), How many times the loop is executed and what is the output?

ICSE X - Online Exam Test Papers | ICSE X - MCQs[multiple choice questions and answers ] | ICSE X - Mock Test Papers | ICSE X - Practice Papers | ICSE X - Sample Test Papers |

Question:
 int i-6
int d-6
do
d-d*2
System.out.println (d),
How many times the loop is executed and what is the output?

1.Loop is not executed any time and the output is 6.

2.Loop is executed once and the output is 12.

3.Loop is executed 2 times and the output is 24.

Posted Date:-2022-01-19 09:10:05


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!