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

Explore more Topics under C Programming

Q71.
Which of the following cannot be static in C?
Discuss
Answer: (d).None of the mentioned
Q72.
What is the output of code given below if these two files are linked and run in file test.c ?
#include <stdio.h>
    
Discuss
Answer: (d).None of the mentioned
Q73.
Functions have static qualifier for its declaration by default.
Discuss
Answer: (b).false
Q74.
Is initialisation mandatory for local static variables?
Discuss
Answer: (b).No
Q75.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        foo();
        foo();
    }
    void foo()
    {
        int i = 11;
        printf("%d ", i);
        static int j = 12;
        j = j + 1;
        printf("%d\n", j);
    }
Discuss
Answer: (b).11 13 11 14
Q76.
Assignment statements assigning value to local static variables are executed only once
Discuss
Answer: (b).false
Q77.
What is the format identifier for β€œstatic a = 20.5;”?
Discuss
Answer: (b).%d
Discuss
Answer: (b).It exists even after the function ends
Q79.
Comment on the output of this C code?
#include <stdio.h>
    void func();
    int main()
    {
        static int b = 20;
        func();
    }
    void func()
    {
        static int b;
        printf("%d", b);
    }
Discuss
Answer: (a).Output will be 0
Q80.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        register int i = 10;
        int *p = &i;
        *p = 11;
        printf("%d %d\n", i, *p);
    }
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!