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

Explore more Topics under C Programming

Q41.
What will be the output?
#include <stdio.h>
    double var = 8;
    int main()
    {
        int var = 5;
        printf("%d", var);
    }
Discuss
Answer: (a).5
Q42.
What is the output of this C code?
#include <stdio.h>
    double i;
    int main()
    {
       printf("%g\n",i);
       return 0;
    }
Discuss
Answer: (a).0
Q43.
Which part of the program address space is p stored in the code given below?
#include <stdio.h>
    int *p = NULL;
    int main()
    {
        int i = 0;
        p = &i;
        return 0;
    }
Discuss
Answer: (b).Data segment
Q44.
Which part of the program address space is p stored in the code given below?
#include <stdio.h>
    int *p;
    int main()
    {
        int i = 0;
        p = &i;
        return 0;
    }
Discuss
Answer: (c).Bss segment
Q45.
Can variable i be accessed by functions in another source file?
#include <stdio.h>
    int i;
    int main()
    {
        printf("%d\n", i);
    }
Discuss
Answer: (a).0
Q46.
Property of external variable to be accessed by any source file is called by C90 standard as
Discuss
Answer: (a).external linkage
Q47.
What is the output of this C code?
#include <stdio.h>
    int *i;
    int main()
    {
        if (i == NULL)
            printf("true\n");
        return 0;
    }
Discuss
Answer: (a).true
Q48.
What is the output of this C code?
#include <stdio.h>
    int *i;
    int main()
    {
        if (i == 0)
            printf("true\n");
        return 0;
    }
Discuss
Answer: (b).true only if NULL value is 0
Q49.
What is the output of this C code?
#include <stdio.h>
    static int x = 5;
    void main()
    {
        x = 9;
        {
            int x = 4;
        }
        printf("%d", x);
    }

a.

9

b.

4

c.

5

d.

0

Discuss
Answer: (a).9
Q50.
What is the output of this C code?
#include <stdio.h>
    int i;
    int main()
    {
        extern int i;
        if (i == 0)
            printf("scope rules\n");
    }
Discuss
Answer: (a).scope rules

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!