C Programming MCQs with answers Page - 142

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

Q. What is the value of i after this loop?

Code:
int i;
for(i = 0; i < 5; i++){}
  • (A) 4
  • (B) 5
  • (C) 6
  • (D) 0

A

Admin • 828.03K Points
Coach

Q. Which function converts a string to an integer in C?

  • (A) itoa()
  • (B) stoi()
  • (C) atoi()
  • (D) int()

A

Admin • 828.03K Points
Coach

Q. Which format specifier is used to print a float?

  • (A) %c
  • (B) %d
  • (C) %s
  • (D) %f

A

Admin • 828.03K Points
Coach

Q. What is the output?

Code:
int x = 2 * 3 + 4;
printf("%d", x);
  • (A) 10
  • (B) 14
  • (C) 6
  • (D) 7

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