1. What will be the output of the program? int I = 0; outer: while (true) { I++; inner: for (int j = 0; j < 10; j++) { I += j; if (j == 3) continue inner; break outer; } continue outer; } System.out.println(I);





Write Comment

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Tags
Show Similar Question And Answers
QA->The purpose of circumferential fins constructed on the outer periphery of the break drum is to?....
QA->Consider a Program Graph (PG) with statements as nodes and control as edges. Which of the following is not true for any PG?....
QA->Output of alternators employed in automobile electrical system is regulated by a :....
QA->BIOS (Basic Input Output System) software stored on :....
QA->The break power of an internal combustion engine can be found out with the help of :....
MCQ->What will be the output of the program? int I = 0; outer: while (true) { I++; inner: for (int j = 0; j < 10; j++) { I += j; if (j == 3) continue inner; break outer; } continue outer; } System.out.println(I);....
MCQ->What will be the output of the program? class s1 extends Thread { public void run() { for(int i = 0; i < 3; i++) { System.out.println("A"); System.out.println("B"); } } } class Test120 extends Thread { public void run() { for(int i = 0; i < 3; i++) { System.out.println("C"); System.out.println("D"); } } public static void main(String args[]) { s1 t1 = new s1(); Test120 t2 = new Test120(); t1.start(); t2.start(); } }....
MCQ->What will be the output of the program? #include<stdio.h> int fun(int, int); typedef int (pf) (int, int); int proc(pf, int, int); int main() { printf("%d\n", proc(fun, 6, 6)); return 0; } int fun(int a, int b) { return (a==b); } int proc(pf p, int a, int b) { return ((p)(a, b)); }....
MCQ->What will be the final values of x and y? void main () { int x = 1, y = 1; clrscr(); do while (x<=7) { x++. y++; } while (y<=5); printf(’\n x = %d y = %d', x, y); } (A) x = 6 y = 6 (B)x=8y=6 (C ) x = 8y = 8 (D)none of the above 50. What will be the output of the following program? void main() { char x = ‘d’; clrscr( ); switch (x) { case 'b’ puts( “01001”); break; default: puts (“321'); break; case 'R’: puts ('l II II'); } What will be the final values of x and y? void main () { int x = 1, y = 1; clrscr(); do while (x<=7) { x++. y++; } while (y<=5); printf(’\n x = %d y = %d', x, y); } (A) x = 6 y = 6 (B)x=8y=6 (C ) x = 8y = 8 (D)none of the above 50. What will be the output of the following program? void main() { char x = ‘d’; clrscr( ); switch (x) { case 'b’ puts( “01001”); break; default: puts (“321'); break; case 'R’: puts ('l II II'); } }....
MCQ->What will be the output of the program? boolean bool = true; if(bool = false) / Line 2 / { System.out.println("a"); } else if(bool) / Line 6 / { System.out.println("b"); } else if(!bool) / Line 10 / { System.out.println("c"); / Line 12 / } else { System.out.println("d"); }....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions