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 = 12; int y = 10; int y = 11; int y = x; None of these int y = 12; int y = 10; int y = 11; int y = x; None of these 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"); } }} Compilation Error TRUE Runtime Error FALSE Compilation Error TRUE Runtime Error FALSE 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, break switch, if if, switch continue, if if, break switch, if if, switch ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What is the printout of the following switch statement?char ch = 'a'; switch (ch){ case 'a': case 'A': System.out.print(ch); break; case 'b': case 'B': System.out.print(ch); break; case 'c': case 'C': System.out.print(ch); break; case 'd': case 'D': System.out.print(ch);} ab abcd a abc aa ab abcd a abc aa ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control Which of the following for loops will be an infinite loop? for(i=0 ; i<1; i--) All of these for(i=0; ; i++) for(; ;) for(i=0 ; i<1; i--) All of these for(i=0; ; i++) for(; ;) 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); 0 9 11 10 8 0 9 11 10 8 ANSWER DOWNLOAD EXAMIANS APP