logo

CuriousTab

CuriousTab

Functions problems


  • 1. Maximum number of arguments that a function can take is 12

  • Options
  • A. Yes
  • B. No
  • Discuss
  • 2. Every function must return a value

  • Options
  • A. Yes
  • B. No
  • Discuss
  • 3. Will the following functions work?
    int f1(int a, int b)
    {
        return ( f2(20) );
    }
    int f2(int a)
    {
        return (a*a);
    }
    

  • Options
  • A. Yes
  • B. No
  • Discuss
  • 4. In a function two return statements should never occur.

  • Options
  • A. Yes
  • B. No
  • Discuss
  • 5. Usually recursion works slower than loops.

  • Options
  • A. Yes
  • B. No
  • Discuss
  • 6. Is it true that too many recursive calls may result into stack overflow?

  • Options
  • A. Yes
  • B. No
  • Discuss

First 2 3 4