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

Explore more Topics under C Programming

Q361.
What is the output of C Program with functions?
int bunny(int,int);
int main()
{
    int a, b;
    a = bunny(5, 10);
    b = bunny(10, 5);
    printf("%d %d", a, b);
    return 0;
}
int bunny(int i, int j)
{
    return (i, j);
}
Discuss
Answer: (b).10 5
Discuss
Answer: (d).All of the above
Q363.
What is the output of a C Program with functions and pointers?
void texas(int *,int *);
int main()
{
    int a=11, b=22;
    printf("Before=%d %d, ", a, b);
    texas(&a, &b);
    printf("After=%d %d", a, b);
    
    return 0;
}
void texas(int *i, int *j)
{
    *i = 55;
    *j = 65;
}
Discuss
Answer: (b).Before=11 22, After=5565
Q364.
What is the output of C Program with functions?
int main()
{
    int a = 66;
    printf("%d %d %d,\n", a, ++a, a++);
    a = 66;
    printf("%d %d %d,\n", ++a, a++, a);
    a = 66;
    printf("%d %d %d", ++a, a, a++);
    return 0;
}
Discuss
Answer: (c).68 68 66,
68 66 68,
68 68 66
Q365.
What is the output of a C program?
int main()
{
    int a = 1;
    printf("%d %d %d,\n", a, ++a, a++);
    a = 1;
    printf("%d %d %d,\n", ++a, a++, a);
    a = 1;
    printf("%d %d %d", ++a, a, a++);
    return 0;
}
Discuss
Answer: (d).3 3 1,
3 1 3,
3 3 1
Q366.
What is the output of a C Program?
void show(int,int,int);
int main()
{
    int a = 1;
    show(++a, a++, a);
    return 0;
}
void show(int i, int j, int k)
{
    printf("%d %d %d,\n", i, j, k);
}
Discuss
Answer: (b).3 1 3,
Q367.
What is the output of C Program with pointers?
int main()
{
    int a = 4;
    int *p;
    p=&a;
    while(*p > 0)
    {
        printf("%d ", *p);
        (*p)--;
    }
    return 0;
}
Discuss
Answer: (c).4 3 2 1
Q368.
What is the output of C Program with functions?
void show();
int show();
int main()
{
    printf("ANT\n");
    return 0;
}
void show()
{
     printf("Integer") ;
}
int show()
{
    printf("Void");
}
Discuss
Answer: (d).Compiler error
Q369.
What is the output of C Program with functions?
void show(int);
void show(float);
int main()
{
    printf("ANT\n");
    return 0;
}
void show(int a)
{
     printf("Integer") ;
}
void show(float b)
{
    printf("Void");
}
Discuss
Answer: (d).Compiler error
Q370.
What is the output of C Program with pointers?
int main()
{
    int a=10;
    int *p, **q;
    p=&a;
    q=&p;
    printf("%d ", a);
    *p=15;
    printf("%d ", a);
    **q=20;
    printf("%d ", a);
    return 0;
}
Discuss
Answer: (c).10 15 20

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!