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

Q191.
Functions have ..........
Discuss
Answer: (c).File scope
Q192.
Which of the following function calculates the square of 'x' in C?
Discuss
Answer: (c).pow(x, 2)
Q193.
When a function is recursively called all the automatic variables are stored in a ..........
Discuss
Answer: (a).Stack
Q194.
Inner Block can access variables declared ___________.
Discuss
Answer: (a).inside Outer Block
Q195.
What will be the output of the following program ?
#include<stdio.h>
void main()
{
int var1=10;
  {
  int var2 = 20;
  printf("%d %d",var1,var2);
  }
printf("%d %d",var1,var2);
}
Discuss
Answer: (b).Compile Time Error
Q196.
Guess output of program -
#include<stdio.h>
void main()
{
int var1=10;
  {
  int var1 = 20;
  printf("%d %d",var1,var1);
  }
printf("%d %d",var1,var1);
}
Discuss
Answer: (c).20 20 10 10
Q197.
Can we declare same variable inside the inner and outer block ?
Discuss
Answer: (a).Yes, It is possible
Q198.
How would you round off a value from 1.66 to 2.0?
Discuss
Answer: (a).ceil(1.66)
Q199.
By default a real number is treated as a
Discuss
Answer: (b).double
Q200.
What is the output of the program given below ?
#include<stdio.h>
int main()
{
    enum status { pass, fail, atkt};
    enum status stud1, stud2, stud3;
    stud1 = pass;
    stud2 = atkt;
    stud3 = fail;
    printf("%d, %d, %d\n", stud1, stud2, stud3);
    return 0;
}
Discuss
Answer: (c).0, 2, 1

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!