C Language - Input/Output Questions and Answers
Practice ModeShowing 10 of 54 questions
Q31
What is the purpose of the flag + used in printf () function ?
Answer: Option D
Q32
What is the purpose of the flag + used in printf() function ?
Answer: Option B
Q33
What is the purpose of the flag # used in printf () function ?
Answer: Option C
Q34
What is the purpose of the flag 0 used in the function printf()?
Answer: Option B
Q35
What is the purpose of the flag blank used in the function printf () ?
Answer: Option A
Q36
What is the output of the following code ?
main ()
{
printf ("%c", 'a');
}
Answer: Option C
Q37
What is theoutput of the following code ?
main ()
{
printf("%d", ' A ');}
Answer: Option A
Q38
What is the output of the following code ?
main ()
{
Char name {};
strcpy (name, "poorani");
printf("%C%c%c", name [4], name [5], name [6]);
}
Answer: Option C
Q39
What format is used to print a character with the printf function ?
Answer: Option B
Q40
"The stock's value increased by 15%." select the statement, which will exactly reproduce the line of text above.
Answer: Option A