C Language - Input/Output Questions and Answers
Practice ModeShowing 10 of 54 questions
Q21
Conversion specification includes
Answer: Option D
Q22
Identify the correct statement given double x;
Answer: Option D
Q23
Identify the correct statement (s) given float y;
Answer: Option D
Q24
For the given scanf () statementt, what is the form of input expected ?
scanf ("%D, %d. %d", &date, &month, &year);
Answer: Option A
Q25
Identify the wrong statement given, int x; float y; char z;
Answer: Option B
Q26
What are the values of x, y and z, if 25 20 30 are given as inputs for scanf("d %*d%d", &x, &y, &z);
Answer: Option A
Q27
What are the values of a, b and c, given int a, c' float b; with inputs as 50, 3.52, 20 for the statement scanf("%2d % 2d', &p, &q); ?
Answer: Option B
Q28
Char p,q; scanf("%c%Is', &p, &q); what are the values assigned, if x and y are given as inputs ?
Answer: Option C
Q29
Identify the correct statement(s) given the declaration char x, y;
Answer: Option D
Q30
What is the the value returned by printf () function, if an error occurs ?
Answer: Option C