C Programming MCQs with answers Page - 8

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. Functions in C Language are always _________

  • (A) Internal
  • (B) External
  • (C) Both Internal and External
  • (D) External and Internal are not valid terms for functions

A

Admin • 833K Points
Coach

Q. Which of following is not accepted in C?

  • (A) static a = 10; //static as
  • (B) static int func (int); //parameter as static
  • (C) static static int a; //a static variable prefixed with static
  • (D) all of the mentioned

A

Admin • 833K Points
Coach

Q. Property which allows to produce different executable for different platforms in C is called?

  • (A) File inclusion
  • (B) Selective inclusion
  • (C) Conditional compilation
  • (D) Recursive macros

A

Admin • 833K Points
Coach

Q. What is #include ?

  • (A) Preprocessor directive
  • (B) Inclusion directive
  • (C) File inclusion directive
  • (D) None of the mentioned

A

Admin • 833K Points
Coach

Q. C preprocessors can have compiler specific features.

  • (A) True
  • (B) False
  • (C) Depends on the standard
  • (D) Depends on the platform

A

Admin • 833K Points
Coach

Q. Which of the following are C preprocessors?

  • (A) #ifdef
  • (B) #define
  • (C) #endif
  • (D) all of the mentioned

A

Admin • 833K Points
Coach

Q. The C-preprocessors are specified with _________ symbol.

  • (A) #
  • (B) $
  • (C) ” ”
  • (D) &

A

Admin • 833K Points
Coach

Q. Which among the following is never possible as an output for float?

  • (A) 4.123456
  • (B) 5.1234
  • (C) 6
  • (D) none of these

A

Admin • 833K Points
Coach

Q. How many digits are present after decimal in float value?

  • (A) 6
  • (B) 1
  • (C) 3
  • (D) 16

A

Admin • 833K Points
Coach

Q. When do you need to use type-conversions?

  • (A) The value to be stored is in a form not supported by that data type
  • (B) To reduce the memory in use, relevant to the value
  • (C) The value to be stored is beyond the max limit
  • (D) All of above