C Programming Practice Problems with Solutions FAQ PDF Download

Learn c programming practice problems with solutions FAQ, c language FAQ, competency based interview questions with MCQs based online test prep. These frequently asked questions has multiple choice questions (MCQ), c language quiz questions and answers: value assigned to x by statement x= x-2.0; where x=10; is, answer key with options 10, -10, 10 and -10 for competitive exam preparation. Free FAQ, situational interview questions are to learn c programming practice problems with solutions quiz online with MCQs to practice test questions with answers.

FAQ: C Programming Practice Problems with Solutions PDF Download

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 ", salary) is

  1. printf("salary is %2.2f ", salary)
  2. printf("salary is %10.10f ", salary)
  3. printf("salary is %2.10f ", salary)
  4. printf("salary is %10.2f ", 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