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

Explore more Topics under C Programming

Q321.
If a = 9, b = 5 and c = 3, 
then the expression ( a - a/b * b % c) > a % b % c
evaluates to
Discuss
Answer: (a).true
Q322.
Consider the declaration 

static char hello[ ] = " hello " ;
The output of printf( " % s \ n ", hello) ;

will be the same as that of
Discuss
Answer: (c).printf(" %s \ n", " hello ") ;
Q323.
The following program
main()
 {
 printf ("tim");
 main( ) ;
 }
Discuss
Answer: (b).keeps on printing tim
Q324.
Consider the following program. If Madam is the required output, then the body of first ( ) must be
main()
 {
 putchar ( 'M' );
    first();
    putchar ( 'm');
 }
 first ( )
 { _____ }
 second ( )
 {
 putchar ( 'd');
 }
Discuss
Answer: (c).putchar( 'a' ) ; second(); printf ("%c", 'a' );
Q325.
The following program
main()
 {
 int i = 2;
 { int i = 4, j = 5;
    printf ("%d%d", i, j );
 }
 printf("%d%d", i, j );
 }
Discuss
Answer: (a).will not compile successfully
Q326.
printf("ab", "cd", "ef");

prints
Discuss
Answer: (a).ab
Q327.
The following piece of code
main( )
                     {
                        int a = 5, b = 2;
                         printf("%d", a+++b);
                     }
Discuss
Answer: (b).prints 7
Q328.
A possible output of the following program fragment  is
   static char wer [ ] [5] = { "harmot", "merli", "axari" };
   printf({"%d%d%d", wer, wer[0], &wer[0][0]);
Discuss
Answer: (a).262164 262164 262164
Q329.
The following program results in
main( )
{
printf ("%u", main);
}
Discuss
Answer: (c).printing of starting address of the function main
Discuss
Answer: (c).repeated execution may result in different addresses for 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!