C Programming MCQs with answers Page - 7

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. Which of the following cannot be a variable name in C?

  • (A) volatile
  • (B) true
  • (C) friend
  • (D) export

A

Admin • 833K Points
Coach

Q. What is short int in C programming?

  • (A) Qualifier
  • (B) Short is the qualifier and int is the basic data type
  • (C) The basic data type of C
  • (D) All of the mentioned

A

Admin • 833K Points
Coach

Q. Which of the following declaration is not supported by C language?

  • (A) String str;
  • (B) char *str;
  • (C) float str = 3e2;
  • (D) Both String str; & float str = 3e2;

A

Admin • 833K Points
Coach

Q. Which keyword is used to prevent any changes in the variable within a C program?

  • (A) immutable
  • (B) mutable
  • (C) const
  • (D) volatile

A

Admin • 833K Points
Coach

Q. What is the result of logical or relational expression in C?

  • (A) True or False
  • (B) 0 or 1
  • (C) 0 if an expression is false and any positive number if an expression is true
  • (D) None of the mentioned

A

Admin • 833K Points
Coach

Q. Which of the following typecasting is accepted by C language?

  • (A) Widening conversions
  • (B) Narrowing conversions
  • (C) Widening & Narrowing conversions
  • (D) None of the mentioned

A

Admin • 833K Points
Coach

Q. Where in C the order of precedence of operators do not exist?

  • (A) Within conditional statements, if, else
  • (B) Within while, do-while
  • (C) Within a macro definition
  • (D) None of the mentioned

A

Admin • 833K Points
Coach

Q. Which of the following is NOT possible with any 2 operators in C?

  • (A) Different precedence, same associativity
  • (B) Different precedence, different associativity
  • (C) Same precedence, different associativity
  • (D) All of the mentioned

A

Admin • 833K Points
Coach

Q. What is an example of iteration in C?

  • (A) for
  • (B) while
  • (C) do-while
  • (D) all of the mentioned

A

Admin • 833K Points
Coach

Q. Functions can return enumeration constants in C?

  • (A) true
  • (B) false
  • (C) depends on the compiler
  • (D) depends on the standard

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