C Programming Quiz Questions and Answers

Which of the following symbol is used to denote a pre-processor statement?

Answer :
  • #

The equality operator is represented by?

Answer :
  • ==

What is the control character for a "single character "?

Answer :
  • %c

Which of the following is invalid?

Answer :
  • none of the mentioned

C supports how many basic looping constructs?

Answer :
  • 3

In the for loop structure which statement is present?

Answer :
  • both a and b

If a function returns no value then it is called?

Answer :
  • void function

A function________?

Answer :
  • both a and b

What is more appropriate for reading in a multi-word string?

Answer :
  • gets()

The process of translating a source program into machine language is a function of?

Answer :
  • compiler