C Programming MCQs with answers Page - 6

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. In which tree, for every node the height of its left subtree and right subtree differ almost by one?

  • (A) binary search tree
  • (B) avl tree
  • (C) threaded binary tree
  • (D) complete binary tree

A

Admin • 833K Points
Coach

Q. C is ______ Language?

  • (A) low level
  • (B) high level
  • (C) assembly level
  • (D) machine level

A

Admin • 833K Points
Coach

Q. The Default Parameter Passing Mechanism is called as

  • (A) call by value
  • (B) call by reference
  • (C) call by address
  • (D) call by name

A

Admin • 833K Points
Coach

Q. What is Dequeue?

  • (A) elements can be added from front
  • (B) elements can be added to or removed from either the front or rear
  • (C) elements can be added from rear
  • (D) none of the above

A

Admin • 833K Points
Coach

Q. In which linked list last node address is null?

  • (A) doubly linked list
  • (B) circular list
  • (C) singly linked list
  • (D) none of the above

A

Admin • 833K Points
Coach

Q. Which is the correct syntax to declare constant pointer?

  • (A) int *const constptr;
  • (B) *int constant constptr;
  • (C) const int *constptr;
  • (D) a and c both

A

Admin • 833K Points
Coach

Q. Which of the following is not a valid C variable name?

  • (A) int number;
  • (B) float rate;
  • (C) int variable_count;
  • (D) int $main;

A

Admin • 833K Points
Coach

Q. All keywords in C are in ____________

  • (A) LowerCase letters
  • (B) UpperCase letters
  • (C) CamelCase letters
  • (D) None of the mentioned

A

Admin • 833K Points
Coach

Q. Which of the following is true for variable names in C?

  • (A) They can contain alphanumeric characters as well as special characters
  • (B) It is not an error to declare a variable to be one of the keywords(like goto, static)
  • (C) Variable names cannot start with a digit
  • (D) Variable can be of any length

A

Admin • 833K Points
Coach

Q. Which is valid C expression?

  • (A) int my_num = 100,000;
  • (B) int my_num = 100000;
  • (C) int my num = 1000;
  • (D) int $my_num = 10000;

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