Loading, please wait...

Functions in C Programming MCQ (Multiple Choice Questions And Answers)

Search here for MCQs

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

16. C program much contain atleast

  • 2 functions
  • 1 function
  • 0 function
  • n number of functions

17. What do you mean by function?

  • Function is a block of statements that perform some specific task.
  • Function is the fundamental modular unit. A function is usually designed to perform a specific task.
  • Function is a block of code that performs a specific task. It has a name and it is reusable.
  • All of the above

18. if we run this code so what will be the output:

int *m();
    void main()
    {
        int k = m();
        printf("%d", k);
    }
    int *m()
    {
        int a[2] = {5, 8};
        return a;
    }
  • 8
  • varies
  • 5
  • No output

19. Which of the function definition run correctly

  • int sum(int a, int b) {return (a + b);}
  • int sum(a, b) return (a + b);
  • int sum(int a, int b) return (a + b);
  • All of the above

20. The function is lower(char) checks whether a character is in lower case or not, therefore it should return

  • 1 or 1
  • integer
  • 0 or 1
  • character string