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 36 of 42

Explore more Topics under C Programming

Q351.
What does the statement

printf("%d",10?0?5:1:12);

prints :
Discuss
Answer: (d).1
Q352.
Result of the execution of the following "C" program fragment is
int i= 107,x =5;
printf((x>7)?"%d";"%c";i))
Discuss
Answer: (c).Printing of k
Q353.
Find the output of the following :
for (i=1,j=10;i
Discuss
Answer: (a).1 1 0 2 9 3 8 4 7 5 6
Q354.
For x and y are variables as declared below
double x=0.005,y=-0.01;
What is the value of ceil(x+y)
Discuss
Answer: (a).1
Q355.
If the following program fragment(assume negative numbers are stored in 2's complement form), output is (log in answers are to the base two)
unsigned i=1;
int j=-4;
printf("%d",8*size of(int));
Discuss
Answer: (c).log(x+3)
Q356.
Output of the following program fragment (in C) is
for (i = 1; i < 5; i ++);
if (i = = 3) continue;
else printf ("%d",i);
Discuss
Answer: (b).1 2 4
Q357.
The following 'C' program
{
unsigned int num;
int c=0
scanf("%u",&num;);
for(;num;num>>=1)
{
if(num &1)
c++;
}
printf("%d",c);
}
Discuss
Answer: (a).Counts the number of bits which are on in the number num
Q358.
Find the output of following code segment
for(putchar('c');putchar('a');putchar('r'))
putchar('t');
Discuss
Answer: (d).Catratratratrat...
Q359.
Find output of following :
int i=5;
do{putchar(i+100);printf("%d",i--);}
while(i);
Discuss
Answer: (a).i5h4g3f2e1
Q360.
The for statement can precede a loop to be executed 50 times or till a boolean variable "found" become false is given by
Discuss
Answer: (a).for(i=0; i<=50 ll found==false; i++)

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!