JAVA Flow Control Determine output:public class Test{ public static void main(String args[]){ int i, j; for(i=1, j=0;i<10;i++) j += i; System.out.println(i); }} 11 9 None of these 20 10 11 9 None of these 20 10 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); 8 0 9 11 10 8 0 9 11 10 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control Determine output:public class Test{ public static void main(String args[]){ int i; for(i = 1; i < 6; i++){ if(i > 3) continue ; } System.out.println(i); }} 4 5 2 3 6 4 5 2 3 6 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the result?1. int i = 10;2. while(i++ <= 10){3. i++;4. }5. System.out.print(i); 10 13 Line 5 will be never reached. 11 12 10 13 Line 5 will be never reached. 11 12 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the result of the following code?public class Test{ static public void main(String args[]){ //line 2 int i, j; for(i=0; i<3; i++){ for(j=1; j<4; j++){ i%=j;System.out.println(j); } } }} 1 2 3 1 Repeatedly print 1 2 3 and cause infinite loop. None of these 1 2 3 2 Compilation fails because of line 2 1 2 3 1 Repeatedly print 1 2 3 and cause infinite loop. None of these 1 2 3 2 Compilation fails because of line 2 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the output?public class Test{ public static void main(String[] args){ int x=10, y=0; if(x && y){ System.out.print("TRUE"); } else{ System.out.print("FALSE"); } }} FALSE Runtime Error TRUE Compilation Error FALSE Runtime Error TRUE Compilation Error ANSWER DOWNLOAD EXAMIANS APP