C Fundamentals MCQs
Practice free C Fundamentals multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 303 questions — no login required.
Question 208easy
What will be the data type of the following expression? (Initial data type: a = int, var1 = double, var2 = float)
expression (a < 50)? var1 : var2;Question 209easy
Why do variable names beginning with the underscore is not encouraged?
Question 210easy
Which of the following method is accepted for assignment?
Advertisement
Question 211easy
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
return 0;
}Question 212easy
Which of the following is NOT possible with any 2 operators in C?
Question 213easy
What will be the final value of c in the following C code snippet? (Initial values: a = 1, b = 2, c = 1)
c += (-c) ? a : b;Advertisement
Question 214easy
Arithmetic operations such as addition, subtraction, multiplication and division are allowed on enumerated constants.
Question 215easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 5.3 % 2;
printf("Value of x is %d", x);
}Question 216easy
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int const k = 5;
k++;
printf("k is %d", k);
}