Friday, June 8, 2007

Campus_16

All India Level Contest

Winner of Campus_15 is

Amit Paliwal (National Informatics Centre, Pune)

1. What is the final value of y when the code int y; for(y=0; y<10; y++) {} is run?
A. 10
B. 9
C. 0
D. 1

2. When does the code block following while(y<100) execute?
A. When y is less than one hundred
B. When y is greater than one hundred
C. When y is equal to one hundred
D. While it wishes


3. Which is not a loop structure?
A. for
B. do while
C. while
D. repeat until

4. How many times is a do while loop guaranteed to loop?
A. 0
B. Infinitely
C. 1
D. Variable

Send your answer to sandeepinfo@yahoo.co.in

Join http://groups.yahoo.com/group/campus_online/ for more updated information

Earn 1860 Rs/Month by reading SMS

No comments: