<<= Back Next =>>
You Are On Multi Choice Question Bank SET 1371

68551. Liquid catalyst is present with which type of impression material?





68552. W:P Ratio of dental stone is





68553. Monophase technique uses





68554. What will be the output of the program? public class Test { public static void aMethod() throws Exception { try / Line 5 / { throw new Exception(); / Line 7 / } finally / Line 9 / { System.out.print("finally "); / Line 11 / } } public static void main(String args[]) { try { aMethod(); } catch (Exception e) / Line 20 / { System.out.print("exception "); } System.out.print("finished"); / Line 24 / } }





68555. What will be the output of the program? public class X { public static void main(String [] args) { try { badMethod(); System.out.print("A"); } catch (Exception ex) { System.out.print("B"); } finally { System.out.print("C"); } System.out.print("D"); } public static void badMethod() {} }





68556. What will be the output of the program? public class X { public static void main(String [] args) { try { badMethod(); / Line 7 / System.out.print("A"); } catch (Exception ex) / Line 10 / { System.out.print("B"); / Line 12 / } finally / Line 14 / { System.out.print("C"); / Line 16 / } System.out.print("D"); / Line 18 / } public static void badMethod() { throw new RuntimeException(); } }





68557. What will be the output of the program? public class MyProgram { public static void main(String args[]) { try { System.out.print("Hello world "); } finally { System.out.println("Finally executing "); } } }





68558. What will be the output of the program? class Exc0 extends Exception { } class Exc1 extends Exc0 { } / Line 2 / public class Test { public static void main(String args[]) { try { throw new Exc1(); / Line 9 / } catch (Exc0 e0) / Line 11 / { System.out.println("Ex0 caught"); } catch (Exception e) { System.out.println("exception caught"); } } }





68559. import java.io.; public class MyProgram { public static void main(String args[]) { FileOutputStream out = null; try { out = new FileOutputStream("test.txt"); out.write(122); } catch(IOException io) { System.out.println("IO Error."); } finally { out.close(); } } } and given that all methods of class FileOutputStream, including close(), throw an IOException, which of these is true?





68560. public class MyProgram { public static void throwit() { throw new RuntimeException(); } public static void main(String args[]) { try { System.out.println("Hello world "); throwit(); System.out.println("Done with try block "); } finally { System.out.println("Finally executing "); } } } which answer most closely indicates the behavior of the program?





68561. public class ExceptionTest { class TestException extends Exception {} public void runTest() throws TestException {} public void test() / Point X / { runTest(); } } At Point X on line 5, which code is necessary to make the code compile?





68562. System.out.print("Start "); try { System.out.print("Hello world"); throw new FileNotFoundException(); } System.out.print(" Catch Here "); / Line 7 / catch(EOFException e) { System.out.print("End of file exception"); } catch(FileNotFoundException e) { System.out.print("File not found"); } and given that EOFException and FileNotFoundException are both subclasses of IOException, and further assuming this block of code is placed into a class, which statement is most true concerning this code?





68563. The best material to cement porcelain laminate veneer is





68564. Which four can be thrown using the throw statement? Error Event Object Throwable Exception RuntimeException





68565. The stages of addition polymerization are all except





68566. What will be the output of the program? public class Foo { public static void main(String[] args) { try { return; } finally { System.out.println( "Finally" ); } } }





68567. What will be the output of the program? try { int x = 0; int y = 5 / x; } catch (Exception e) { System.out.println("Exception"); } catch (ArithmeticException ae) { System.out.println(" Arithmetic Exception"); } System.out.println("finished");





68568. Which is the oldest Football Tournament in India?





68569. What will be the output of the program? public class X { public static void main(String [] args) { try { badMethod(); System.out.print("A"); } catch (RuntimeException ex) / Line 10 / { System.out.print("B"); } catch (Exception ex1) { System.out.print("C"); } finally { System.out.print("D"); } System.out.print("E"); } public static void badMethod() { throw new RuntimeException(); } }





68570. What will be the output of the program? public class RTExcept { public static void throwit () { System.out.print("throwit "); throw new RuntimeException(); } public static void main(String [] args) { try { System.out.print("hello "); throwit(); } catch (Exception re ) { System.out.print("caught "); } finally { System.out.print("finally "); } System.out.println("after "); } }





68571. The major constituent of reversible hydrocolloid impression material is





68572. Cross linking agent in heat cured acrylic resin is:





68573. Figure-eight stropping motion is used for mixing





68574. Dental plaster is which type of gypsum product?





68575. The most common malignant neoplasm of the oral mucosa





68576. What will be the output of the program? int i = l, j = -1; switch (i) { case 0, 1: j = 1; / Line 4 / case 2: j = 2; default: j = 0; } System.out.println("j = " + j);





68577. What will be the output of the program? int i = 1, j = 10; do { if(i > j) { break; } j--; } while (++i < 5); System.out.println("i = " + i + " and j = " + j);





68578. What will be the output of the program? public class Switch2 { final static short x = 2; public static int y = 0; public static void main(String [] args) { for (int z=0; z < 3; z++) { switch (z) { case x: System.out.print("0 "); case x-1: System.out.print("1 "); case x-2: System.out.print("2 "); } } } }





68579. What will be the output of the program? public class SwitchTest { public static void main(String[] args) { System.out.println("value =" + switchIt(4)); } public static int switchIt(int x) { int j = 1; switch (x) { case l: j++; case 2: j++; case 3: j++; case 4: j++; case 5: j++; default: j++; } return j + x; } }





68580. What will be the output of the program? public class If2 { static boolean b1, b2; public static void main(String [] args) { int x = 0; if ( !b1 ) / Line 7 / { if ( !b2 ) / Line 9 / { b1 = true; x++; if ( 5 > 6 ) { x++; } if ( !b1 ) x = x + 10; else if ( b2 = true ) / Line 19 / x = x + 100; else if ( b1 | b2 ) / Line 21 / x = x + 1000; } } System.out.println(x); } }





68581. The premalignant lesion usually associated with dysplastic changes histologically





68582. What will be the output of the program? public class If1 { static boolean b; public static void main(String [] args) { short hand = 42; if ( hand < 50 && !b ) / Line 7 / hand++; if ( hand > 50 ); / Line 9 / else if ( hand > 40 ) { hand += 7; hand++; } else --hand; System.out.println(hand); } }





68583. What will be the output of the program? public class Test { public static void main(String [] args) { int I = 1; do while ( I < 1 ) System.out.print("I is " + I); while ( I > 1 ) ; } }





68584. What will be the output of the program? int x = l, y = 6; while (y--) { x++; } System.out.println("x = " + x +" y = " + y);





68585. 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);





68586. What will be the output of the program? for (int i = 0; i < 4; i += 2) { System.out.print(i + " "); } System.out.println(i); / Line 5 /





68587. What will be the output of the program? int x = 3; int y = 1; if (x = y) / Line 3 / { System.out.println("x =" + x); }





68588. What will be the output of the program? Float f = new Float("12"); switch (f) { case 12: System.out.println("Twelve"); case 0: System.out.println("Zero"); default: System.out.println("Default"); }





68589. What will be the output of the program? int i = 0; while(1) { if(i == 4) { break; } ++i; } System.out.println("i = " + i);





68590. What will be the output of the program? public class Delta { static boolean foo(char c) { System.out.print(c); return true; } public static void main( String[] argv ) { int i = 0; for (foo('A'); foo('B') && (i < 2); foo('C')) { i++; foo('D'); } } }





68591. What will be the output of the program? for(int i = 0; i < 3; i++) { switch(i) { case 0: break; case 1: System.out.print("one "); case 2: System.out.print("two "); case 3: System.out.print("three "); } } System.out.println("done");





68592. What will be the output of the program? public class Test { public static void main(String args[]) { int i = 1, j = 0; switch(i) { case 2: j += 6; case 4: j += 1; default: j += 2; case 0: j += 4; } System.out.println("j = " + j); } }





68593. 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"); }





68594. What will be the output of the program? public class Switch2 { final static short x = 2; public static int y = 0; public static void main(String [] args) { for (int z=0; z < 4; z++) { switch (z) { case x: System.out.print("0 "); default: System.out.print("def "); case x-1: System.out.print("1 "); break; case x-2: System.out.print("2 "); } } } }





68595. What will be the output of the program? int i = 0, j = 5; tp: for (;;) { i++; for (;;) { if(i > --j) { break tp; } } System.out.println("i =" + i + ", j = " + j);





68596. What will be the output of the program? int I = 0; label: if (I < 2) { System.out.print("I is " + I); I++; continue label; }





68597. public void foo( boolean a, boolean b) { if( a ) { System.out.println("A"); / Line 5 / } else if(a && b) / Line 7 / { System.out.println( "A && B"); } else / Line 11 / { if ( !b ) { System.out.println( "notB") ; } else { System.out.println( "ELSE" ) ; } } }





68598. switch(x) { default: System.out.println("Hello"); } Which two are acceptable types for x? byte long char float Short Long





68599. public void test(int x) { int odd = 1; if(odd) / Line 4 / { System.out.println("odd"); } else { System.out.println("even"); } } Which statement is true?





68600. public class While { public void loop() { int x= 0; while ( 1 ) / Line 6 / { System.out.print("x plus one is " + (x + 1)); / Line 8 / } } } Which statement is true?





<<= Back Next =>>
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 | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution