adplus-dvertising

Welcome to the Input and Output in C MCQs Page

Dive deep into the fascinating world of Input and Output in C with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Input and Output in C, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Input and Output in C, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Input and Output in C. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Input and Output in C. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Input and Output in C MCQs | Page 35 of 42

Explore more Topics under C Programming

Q341.
What is the output of the following 'C' program?
main() 
{ 
printf("%f",sqrt(36.0)); 
}
Discuss
Answer: (c).6.000000
Q342.
If following variables are set to the values as shown below, then what is the value of the expression following it?

answer=2;
marks=10;

!((answer2))
Discuss
Answer: (b).0
Q343.
Consider following statements:

putchar(getchar());
putchar(getchar());

If
a
b
is the input, then output will be
Discuss
Answer: (b).this can't be the input
Q344.
The program fragment
int i =263;
purchar(i);
prints
Discuss
Answer: (c).Rings the bell
Q345.
What will be the value of x and y after execution of the following statement (C language)
n ==5;x=n++;y=-x;?
Discuss
Answer: (a).5,4
Q346.
The following 'C' program
 main
 {
 unsigned int num;
 int i;
 scanf("%u",&num);
 for(i=0;i<16;i++)
 printf("%d",(num<<i&1<<15)?1:0);
 }
Discuss
Answer: (c).Prints binary equivalent of num
Q347.
Output of the following 'C' program is
main
{
printf("\n%x",-1>>4);
}
Discuss
Answer: (a).ffff
Discuss
Answer: (c).Anywhere, but starting on a new line
Discuss
Answer: (b).Outputs tim3
Q350.
If abc is the input, then folloiwng program fragment results in
char x,y,z;
printf("%d",scanf("%c%c%c",&x;,&y;,&z;));
Discuss
Answer: (d).Printing of 3

Suggested Topics

Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!