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

Q351.
What is the output of C Program with functions?
#include 
int sum(int,int);
int main()
{
    int a=5, b=10, mysum;
    mysum = sum(a,b);
    printf("SUM=%d ", mysum);
    printf("SUM=%d", sum(10,20));
    return 0;
}
int sum(int i, int j)
{
    return (i+j);
}
Discuss
Answer: (a).SUM=15 SUM=30
Q352.
Arguments passed to a function inC language are called ___ arguments.
Discuss
Answer: (b).Actual Arguments
Q353.
Arguments received by a function in C language are called ___ arguments.
Discuss
Answer: (b).Formal arguments
Discuss
Answer: (d).All of the above
Q355.
What is the output of C program with functions?
int main()
{
    printf("funny=%d" , funny());
    return 0;
}
funny()
{
   
}
Discuss
Answer: (c).funny=0
Q356.
What is the output of C Program with functions?
void funny2();
int main()
{
    printf("funny2=%d" , funny2());
    return 0;
}
void funny2()
{

}
Discuss
Answer: (d).Compiler error
Discuss
Answer: (d).All of the above
Q358.
Choose a non Library C function below.
Discuss
Answer: (d).printf2()
Q359.
What is the default return value of a C function if not specified explicitly?
Discuss
Answer: (c).1
Q360.
What do you call this C Function calling itself?
int funny2()
{
    funny2(num);
}
Discuss
Answer: (d).Recursive Function

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!