C C++ Tcs
C C++ Tcs
13. How does the C compiler interpret the following two statements
p=p+x;
q=q+y;
q=q+y; q=q+y;
For questions 14,15,16,17 use the following alternatives:
a. int b. char c. string d. float
14. '9'
16. 10e05
17. 15
(b) if cond 1
if cond 2
if cond 3
exp 1;
else exp 2;
else exp 3;
else exp 4;
(d) if cond 3
exp 1;
else if cond 2 exp 2;
else if cond 3 exp 3;
else exp 4;
29.
a=0;
while(a<5)
printf("%d\\n",a++);
How many times does the loop occurs?
(a) infinite (b)5 (c)4 (d)6
32. Which of the following go out of the loop if expn 2 becoming false
(a) while(expn 1)\{...if(expn 2)continue;} (b) while(!
expn 1)\{if(expn 2)continue;...}
(c) do{..if(expn 1)continue;..}while(expn 2); (d) while(!
expn 2)\{if(expn 1)continue;..\}