JAVA Flow Control In java, ............ can only test for equality, where as .......... can evaluate any type of the Boolean expression. switch, if continue, if if, switch if, break switch, if continue, if if, switch if, break 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 Runtime Error FALSE TRUE Compilation Error Runtime Error FALSE TRUE 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 = 11; int y = 12; None of these int y = x; int y = 10; int y = 11; int y = 12; None of these int y = x; int y = 10; ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control Which of the following for loops will be an infinite loop? for(i=0; ; i++) for(; ;) All of these for(i=0 ; i<1; i--) for(i=0; ; i++) for(; ;) All of these for(i=0 ; i<1; i--) 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); 11 Line 5 will be never reached. 13 10 12 11 Line 5 will be never reached. 13 10 12 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? Error NumberSeven NotSeven NumberSeven 7 NotSeven Error NumberSeven NotSeven NumberSeven 7 NotSeven ANSWER DOWNLOAD EXAMIANS APP