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); 11 8 0 10 9 11 8 0 10 9 ANSWER DOWNLOAD EXAMIANS APP
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); }} 10 9 11 None of these 20 10 9 11 None of these 20 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control In java, ............ can only test for equality, where as .......... can evaluate any type of the Boolean expression. if, break switch, if continue, if if, switch if, break switch, if continue, if if, switch ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the output of the following program?public class Test{ public static void main(String args[]){ int i = 0, j = 5 ; for( ; (i < 3) && (j++ < 10) ; i++ ){ System.out.print(" " + i + " " + j ); } System.out.print(" " + i + " " + j ); }} 0 6 1 7 2 8 3 9 Compilation Error 0 6 1 5 2 5 3 5 0 6 1 7 2 8 3 8 0 6 1 7 2 8 3 9 Compilation Error 0 6 1 5 2 5 3 5 0 6 1 7 2 8 3 8 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); }} 3 5 2 4 6 3 5 2 4 6 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the value of y after execution of switch statement?public class Test{ public static void main(String[] args){ int x = 3, y = 4; switch(x + 3){ case 6: y = 0; case 7: y = 1; default: y += 1; } }} 1 0 3 4 2 1 0 3 4 2 ANSWER DOWNLOAD EXAMIANS APP