C Programming MCQs with answers Page - 2

Here, you will find a collection of MCQ questions on C Programming. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833K Points
Coach

Q. What will be the output of the following C code?

Code:
#include <stdio.h>
    int main()
    {
        float fl = 15.621212121212;
        printf("%f", fl);
    }
  • (A) 15.621212121212
  • (B) Compilation Error
  • (C) Garbage value
  • (D) 15.621212

A

Admin • 833K Points
Coach

Q. What will be the output of the following C code?

Code:
#include 
    printf("%.0f", 4.89);
  • (A) 4.890000
  • (B) 4.89
  • (C) 4
  • (D) 5

A

Admin • 833K Points
Coach

Q. Select the odd one out with respect to type?

  • (A) int
  • (B) float
  • (C) char
  • (D) long

A

Admin • 833K Points
Coach

Q. %f access specifier is used for ________.

  • (A) Integral types
  • (B) Floating type
  • (C) Strings
  • (D) All of above

A

Admin • 833K Points
Coach

Q. What is the size of float in a 32-bit compiler?

  • (A) 8
  • (B) 4
  • (C) 2
  • (D) 1

A

Admin • 833K Points
Coach

Q. In a 32-bit compiler, which 2 types have same size?

  • (A) float and double
  • (B) short and int
  • (C) char and short
  • (D) int and float

A

Admin • 833K Points
Coach

Q. Who is father of C Language?

  • (A) bjarne stroustrup
  • (B) dennis ritchie
  • (C) james a. gosling
  • (D) dr. e.f. codd

A

Admin • 833K Points
Coach

Q. C Language developed at _____?

  • (A) at & ts bell laboratories of usa in 1972
  • (B) at & ts bell laboratories of usa in 1970
  • (C) sun microsystems in 1973
  • (D) cambridge university in 1972

A

Admin • 833K Points
Coach

Q. For 16-bit compiler allowable range for integer constants is ______ ?

  • (A) -3.4e38 to 3.4e38
  • (B) -32767 to 32768
  • (C) -32768 to 32767
  • (D) -32668 to 32667

A

Admin • 833K Points
Coach

Q. C programs are converted into machine language with the help of

  • (A) an editor
  • (B) a compiler
  • (C) an operating system
  • (D) none of the above

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ