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

Explore more Topics under C Programming

Q31.
functions can return enumeration constants in c?
Discuss
Answer: (a).true
Q32.
What is the output of code given below?
#include <stdio.h>
    enum m{JAN, FEB, MAR};
    enum m foo();
    int main()
    {
        enum m i = foo();
        printf("%d\n", i);
    }
    int  foo()
    {
        return JAN;
    }
Discuss
Answer: (a).Compile time error
Q33.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        m();
        printf("%d", x);
    }
    int x;
    void m()
    {
        x = 4;
    }
Discuss
Answer: (b).Compile time error
Q34.
What is the output of this C code?
#include <stdio.h>
    int x;
    void main()
    {
        printf("%d", x);
    }
Discuss
Answer: (c).0
Q35.
What is the output of this C code?
#include <stdio.h>
    int x = 5;
    void main()
    {
        int x = 3;
        printf("%d", x);
        {
            x = 4;
        }
        printf("%d", x);
    }
Discuss
Answer: (d).3 4
Q36.
What is the output of this C code?
#include <stdio.h>
    int x = 5;
    void main()
    {
        int x = 3;
        printf("%d", x);
        {
            int x = 4;
        }
        printf("%d", x);
    }
Discuss
Answer: (a).3 3
Discuss
Answer: (b).External
Discuss
Answer: (b).External
Q39.
Which of the following are an external variable?
#include <stdio.h>
    int func (int a)
    {
        int b;
        return b;
    }
    int main()
    {
        int c;
        func (c);
    }
    int d;

a.

a

b.

b

c.

c

d.

d

Discuss
Answer: (d).d
Q40.
What will be the output?
#include <stdio.h>
    int main()
    {
        printf("%d", d++);
    }
    int d = 10;
Discuss
Answer: (d).Compile time error

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!