adplus-dvertising

Welcome to the Functions MCQs Page

Dive deep into the fascinating world of Functions with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Functions, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Functions, 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 Functions. 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 Functions. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Functions MCQs | Page 29 of 39

Q281.
Let a, b be two non-negative integers. Which of the following calls, finds the positive difference of a and b ?
Discuss
Answer: (a).find(a, b) + find (b, a)
Discuss
Answer: (d).Both (b) & (c)
Q283.
max is a function that returns the larger of the two integers, given as arguments. Which of the following statements finds the largest of three given numbers?
Discuss
Answer: (d).All of the above
Discuss
Answer: (c).if the function call precedes its definition and the function returns a non integer quantity
Discuss
Answer: (d).both (a) & (b)
Q286.
The following program outputs
main ()
 { int  a = 4;
    change { a };
    printf ("%d", a);
 }
 change (a)
 int a;
 {
 printf("%d", ++a);
 }
Discuss
Answer: (c).54
Q287.
The following program
 main()
 {
 inc(); inc(); inc();
 }
 inc()
 {
 static int x;
 printf("%d", ++x);
 }
Discuss
Answer: (b).prints 123
Q288.
The following program
main()
 {
 int abc();
 abc ();
 ( *abc) (); 
 }
 int abc( )
 {
 printf ("come");
 }
Discuss
Answer: (b).prints come come
Discuss
Answer: (d).All of the above
Q290.
It is not advisable to use macros instead of functions because
Discuss
Answer: (d).All of the above

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!