Learn c programming frequently asked questions, c language FAQs for MCQs based online test prep. These frequently asked questions has multiple choice questions (MCQ), c language quiz questions and answers as by evaluating following statement where x=25.0 and y=15.0 <code>if (y < 15.0 && y >= 0.0)<br>x = 5 * y;<br>else<br>x = 2 * y; </code>, value of x is , answer key with choices as 30, 45, 60 and 75 for competitive exam preparation. Free frequently asked questions are to learn c programming frequently asked questions quiz online with MCQs to practice test questions with answers.

MCQ: By evaluating following statement where x=25.0 and y=15.0 <code>if (y < 15.0 && y >= 0.0)<br>x = 5 * y;<br>else<br>x = 2 * y; </code>, value of x is

1. 30
2. 45
3. 60
4. 75

A

MCQ: By evaluating following statement where x=25.0 and y=15.0<code>if (y < 15.0)<br>{<br> if (y >= 0.0)<br> x = 5 * y;<br> else<br> x = 2 * y;<br>}<br>else<br> x = 3 * y;</code> , value of x is

1. 15
2. 30
3. 45
4. 75

C

MCQ: By evaluating following statement <code> if (12 < 12 ) <br> printf("less");<br>else<br>printf("not less")};</code> , output is

1. less
2. not less
3. LESS
4. NOT LESS

A

MCQ: By evaluating following statement where var1=25.12 and var2=15.00 <code>if (var1 <= var2)<br>printf("less or equal/n");<br>else<br>printf("Greater then ")};</code> , output is

1. less or equal
2. Greater then
3. less or equal Greater then
4. Compiler error

B

MCQ: By evaluating following statement where x=25.0 and y=15.0 <code>if (y!= (x-10.0))<br>x = x - 10.0;<br>else<br>x = x / 2.0;</code>, value of x is

1. 25
2. 12
3. 15
4. 12.5

D