Quiz


  1. Function prototype is required in every program
  2. a. True
    b. False

  3. Functions can return more than one value at a time
  4. a. True
    b. False

  5. What is the default return value of a function?
  6. a. int
    b. Void
    c. No default return type
    d. Boolean

  7. Which of the following is an invalid function prototype?
  8. a. float fun(int aa, int bb);
    b. float fun(int aa, int );
    c. float fun(float , int );
    d. float fun(int aa, bb);

  9. What is the return type of the function with prototype: "int func(char x, float v, double t);"
  10. a. char
    b. int
    c. float
    d. double

  11. What is printed when this program is executed
  12.     int f(int );
        main()
        {
        printf ("%d\n",f(7)); 
        }
        f(int x)
        {
    
        if ( x<= 4)
        return x;
    
        return f(--x);
        }
        

    a. 4
    b. 5
    c. 6
    d. 7