JAVA Flow Control What will be the result?1. int i = 10;2. while(i++ <= 10){3. i++;4. }5. System.out.print(i); 12 Line 5 will be never reached. 10 11 13 12 Line 5 will be never reached. 10 11 13 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control Which of the following for loops will be an infinite loop? for(; ;) All of these for(i=0; ; i++) for(i=0 ; i<1; i--) for(; ;) All of these for(i=0; ; i++) for(i=0 ; i<1; i--) ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control Consider the following program written in Java.class Test{ public static void main(String args[]){ int x=7; if(x==2); // Note the semicolon System.out.println("NumberSeven"); System.out.println("NotSeven"); }}What would the output of the program be? NotSeven NumberSeven Error NumberSeven NotSeven 7 NotSeven NumberSeven Error NumberSeven NotSeven 7 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control In java, ............ can only test for equality, where as .......... can evaluate any type of the Boolean expression. continue, if if, switch if, break switch, if continue, if if, switch if, break switch, if ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control 1. public class Test{2. public static void main(String [] args){3. int x = 0;4. // insert code here5. do{ } while(x++ < y);6. System.out.println(x);7. }8. }Which option, inserted at line 4, produces the output 12? int y = x; int y = 11; int y = 12; int y = 10; None of these int y = x; int y = 11; int y = 12; int y = 10; None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control How many times will the following code print "Welcome to Examveda"?int count = 0;do { System.out.println("Welcome to Examveda"); count++;} while (count < 10); 9 11 10 8 0 9 11 10 8 0 ANSWER DOWNLOAD EXAMIANS APP