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

Explore more Topics under C Programming

Q331.
The following program outputs
main ()
 {
   float a = .5, b = .7;
   if (b < .7)
{
     if (a < .5)

          printf("TELO");
      else
           printf("LTTE");

}
    else printf("JKLF");
 }
Discuss
Answer: (a).LTTE
Q332.
What is the output of the following program segment?
void max { int x, int  y, int m)
 {
 if (x > 5) m = x;
    else m = y;
 }
  int main()
 {
 int i = 20, j = 5, k = 0;
    max(i,  j,  k ); printf("%d", k) ;
 }
Discuss
Answer: (c).0
Q333.
Consider the program. If the machine in which this program is executed is little-endian (meaning, the lower signifi-cant digits occupy lower addresses), then the output will he
main( )
 { 
     int y = 1;
     printf ("%d", (*(char *)&x)) :
 }
Discuss
Answer: (c).1
Q334.
The program prints
main()
 {
 int i = 5;
 i = (++i) / (i++);
 printf ("%d", i);

a.

2

b.

5

c.

1

d.

6

Discuss
Answer: (c).1
Q335.
The output of the following program will be
main( )
 {
  int a = 1, b = 2, c = 3;
    printf("%d", a += (a += 3, 5, a));
 }

a.

8

b.

12

c.

9

d.

6

Discuss
Answer: (a).8
Q336.
The statement

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

prints
Discuss
Answer: (d).11
Q337.
The statement

printf ("%d", ++5) ;

prints
Discuss
Answer: (c).an error message
Q338.
The statement

printf ("%d", ( a++) ) ;

prints
Discuss
Answer: (a).the current value of a
Q339.
The statement

printf ( "%d" , sizeof (" "'));

prints
Discuss
Answer: (d).1
Q340.
What is the output of the following 'C' program?
 main()
 {
 int a[5]={2,3};
 printf("\n%d%d%d",a[2],a[3],a[4]);
 }
Discuss
Answer: (d).0 0 0

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!