Computer Science Degree Courses

Android Practice Tests

Learn Online Android Frequently Asked Questions

# C Programming Frequently Asked Questions PDF

Books:

Apps:

The MCQ: By evaluating following statement where x=25.0 and y=15.0 `if (y < 15.0 && y >= 0.0)x = 5 * y;elsex = 2 * y; `, value of x is; "C Programming Frequently Asked Questions" App Download (Free) with answers: 30; 45; 60; 75; for online software engineering degrees. Practice C Programming Frequently Asked Questions FAQs, download Apple eBook (Free Sample) for associates in computer science.

## Android MCQs: C Programming Frequently Asked Questions

MCQ 1:

By evaluating the following statement where x=25.0 and y=15.0 `if (y < 15.0 && y >= 0.0)x = 5 * y;elsex = 2 * y; `, the value of x is

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

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

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

By evaluating the following statement ` if (12 < 12 ) printf("less");elseprintf("not less")};` , the output is

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

By evaluating the following statement where var1=25.12 and var2=15.00 `if (var1 <= var2)printf("less or equal/n");elseprintf("Greater then\n")};` , the output is

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

By evaluating the following statement where x=25.0 and y=15.0 `if (y!= (x-10.0))x = x - 10.0;elsex = x / 2.0;`, the value of x is

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