Systemoutprint in Inaide the while loop a No output because

System,out-print in (\"Inaide the while loop\" a) No output because of compiling error b) \"Inside the while loop\" will be displayed infinitely c) \"Inside the while loop\" will be displayed 4 times. d) \"Inside the while loop\" will be displayed 3 times 7) How many times will the output line be printed in the following I the output line be printed in the following code snippet? for (int i-o,i

Solution

Ans)

1) c.Initialization
2)   a.Algorithms are eventually terminate(They are no infinite)  
3)   c.4 bytes
4) a.The compiler stops immediately with an error.
5)   d.if(chr == \'a\')
6) C. \"Inside the while loop\" will be displayed 4 times.
7)   C. 12 times
8)   a. The repeating statements must be run atleast once.
9)   b. You are uncertain how many times the repeating statements must run.
10)   d. You are certain exactly how many time the repeating statements must run.
11)   c.No data loss will occur if the program fails to close() a PrintWriter before exiting.   
12) d.30
13)   a. int[][] num = new int[20][2]
14)   d.If the output file already exists the existing data will be over-written
15)Question is not visible
16)   c.ArrayIndexoutOfBoundsException
17) a.15
18)   b.4  
19)   a. boolean[] truth = {false,true,true,false};
20) c.null

 System,out-print in (\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site