Question: answer question 9-12 question 9&10 question 11& 12 What will be the values of x and y as a result of the following code? Intx=25inty=4;x+y+t;

What will be the values of x and y as a result of the following code? Intx=25inty=4;x+y+t; x=33,y=9x=25,y=8x=34,y=9x=33,y=8 Question 10 How many times will the following do-while loop be executed? Int value =11; do \{ value +=20; \}while (value; 100); System.out.println(value); Select only the answers that apply. Which of the following steps is normally performed by a for loop? Choosing all answers is not the correct answer. update the loop control variable during each iteration terminate when the loop control variable reaches a different value for each execution test the loop control variable by comparing it to a maximum value when it enters the loop the first time. initialize the loop control variable to a starting value Question 12 Given the following code snippet: int num =10; for (int i=5;i>0;i){ num =(++ num) (++ num); if (num =1){ \} break; \} System,out.println(num); a. how many times would the loop be executed? b. What is the value of num when the loop completes execution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
