C Programming MCQs with answers Page - 3

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. A C variable cannot start with

  • (A) an alphabet
  • (B) a number
  • (C) a special symbol other than underscore
  • (D) both (b) and (c)

A

Admin • 833K Points
Coach

Q. Which of the following is allowed in a C Arithmetic instruction

  • (A) []
  • (B) {}
  • (C) ()
  • (D) none of the above

A

Admin • 833K Points
Coach

Q. Which of the following shows the correct hierarchy of arithmetic operations in C

  • (A) / + * -
  • (B) * - / +
  • (C) + - / *
  • (D) * / + -

A

Admin • 833K Points
Coach

Q. What is an array?

  • (A) an array is a collection of variables that are of the dissimilar data type.
  • (B) an array is a collection of variables that are of the same data type.
  • (C) an array is not a collection of variables that are of the same data type.
  • (D) none of the above.

A

Admin • 833K Points
Coach

Q. What is right way to Initialization array?

  • (A) int num[6] = { 2, 4, 12, 5, 45, 5 } ;
  • (B) int n{} = { 2, 4, 12, 5, 45, 5 } ;
  • (C) int n{6} = { 2, 4, 12 } ;
  • (D) int n(6) = { 2, 4, 12, 5, 45, 5 } ;

A

Admin • 833K Points
Coach

Q. An array elements are always stored in _________ memory locations.

  • (A) sequential
  • (B) random
  • (C) sequential and random
  • (D) none of the above

A

Admin • 833K Points
Coach

Q. What is the right way to access value of structure variable book{ price, page }?

  • (A) printf("%d%d", book.price, book.page);
  • (B) printf("%d%d", price.book, page.book);
  • (C) printf("%d%d", price::book, page::book);
  • (D) printf("%d%d", price->book, page->book);

A

Admin • 833K Points
Coach

Q. perror( ) function used to ?

  • (A) work same as printf()
  • (B) prints the error message specified by the compiler
  • (C) prints the garbage value assigned by the compiler
  • (D) none of the above

A

Admin • 833K Points
Coach

Q. Bitwise operators can operate upon?

  • (A) double and chars
  • (B) floats and doubles
  • (C) ints and floats
  • (D) ints and chars

A

Admin • 833K Points
Coach

Q. What is C Tokens?

  • (A) the smallest individual units of c program
  • (B) the basic element recognized by the compiler
  • (C) the largest individual units of program
  • (D) a & b both

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