C programming practice problems with solutions, learn online c language MCQs, competency based interview questions to learn CS courses for online computer programming degree. C language frequently asked questions has multiple choice questions (MCQs), c programming practice problems with solutions as value assigned to x by statement x= x-2.0; where x=10; is, with choices 10, -10, 10, and -10 for online c language certifications. Free FAQ, situational interview questions are to learn c programming practice problems with solutions: Q&A online with MCQs to practice test questions with answers.

MCQ: Value assigned to x by statement x= x-2.0; where x=10; is

1. 10
2. -10
3. 10
4. -10

B

MCQ: Value assigned to x by statement x= 25.0*3.0/2.5; is

1. 30
2. 30
3. 75
4. 75

A

MCQ: Most logically precise statement for printf("salary is %2.10f\n", salary) is

1. printf("salary is %2.2f\n", salary)
2. printf("salary is %10.10f\n", salary)
3. printf("salary is %2.10f\n", salary)
4. printf("salary is %10.2f\n", salary)

D

MCQ: In C language, correct C expression for b<sup>2</sup> - 4ac is

1. b*b-4ac
2. b*b-4*a*c
3. bb-4ac
4. b*b*a*c - 4

B

MCQ: Using string placeholder %6.2f for value 99.999, displayed output will be

1. 99.9
2. 99.99
3. 100
4. 99.999

C