C Programming MCQs with answers Page - 4

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 • 802.91K Points
Coach

Q. What is Keywords?

  • (A) keywords have some predefine meanings and these meanings can be changed.
  • (B) keywords have some unknown meanings and these meanings cannot be changed.
  • (C) keywords have some predefine meanings and these meanings cannot be changed.
  • (D) none of the above

A

Admin • 802.91K Points
Coach

Q. What is constant?

  • (A) constants have fixed values that do not change during the execution of a program
  • (B) constants have fixed values that change during the execution of a program
  • (C) constants have unknown values that may be change during the execution of a program
  • (D) none of the above

A

Admin • 802.91K Points
Coach

Q. Which is the right way to declare constant in C?

  • (A) int constant var =10;
  • (B) int const var = 10;
  • (C) const int var = 10;
  • (D) b & c both

A

Admin • 802.91K Points
Coach

Q. Which operators are known as Ternary Operator?

  • (A) ::, ?
  • (B) ?, :
  • (C) ?, ;;
  • (D) none of the above

A

Admin • 802.91K Points
Coach

Q. In switch statement, each case instance value must be _______?

  • (A) constant
  • (B) variable
  • (C) special symbo
  • (D) none of the above

A

Admin • 802.91K Points
Coach

Q. What is the work of break keyword?

  • (A) halt execution of program
  • (B) restart execution of program
  • (C) exit from loop or switch statement
  • (D) none of the above

A

Admin • 802.91K Points
Coach

Q. What is function?

  • (A) function is a block of statements that perform some specific task.
  • (B) function is the fundamental modular unit. a function is usually designed to perform a specific task.
  • (C) function is a block of code that performs a specific task. it has a name and it is reusable
  • (D) all the above

A

Admin • 802.91K Points
Coach

Q. Which one of the following sentences is true ?

  • (A) the body of a while loop is executed at least once.
  • (B) the body of a do ... while loop is executed at least once.
  • (C) the body of a do ... while loop is executed zero or more times.
  • (D) a for loop can never be used in place of a while loop.

A

Admin • 802.91K Points
Coach

Q. A binary tree with 27 nodes has _______ null branches.

  • (A) 54
  • (B) 27
  • (C) 26
  • (D) none of the above

A

Admin • 802.91K Points
Coach

Q. Which one of the following is not a linear data structure?

  • (A) array
  • (B) binary tree
  • (C) queue
  • (D) stack

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