Basic C Programming MCQ Questions and Answers
Practice ModeShowing 10 of 198 questions
Q11
Consider the statement
putchar (getchar {});
putchar (getchar {});
if
a
b
is the input, the output will be
Answer: Option B
Q12
Let a, b be two positive integers. Which of the following options correctly relates / and % ?
Answer: Option B
Q13
Literal means
Answer: Option B
Q14
Length of the string "correct' is
Answer: Option A
Q15
Which of the following are true regardless of the implementation ?
Answer: Option
Q16
Coercion
Answer: Option
Q17
Choose the correct statements
Answer: Option
Q18
Consider the following program fragment
char c = 'a';
while (c++ <= 'z')
putchar (xxx)
If the required output is abcdefghijklmnopqrstuvwxyz, then xxx should be
Answer: Option C
Q19
Which of the following comments are true?
Answer: Option
Q20
If y is of integer type then the expression
3 * (y - 8) / 9 and ( y - 8) / 9 * 3
Answer: Option C