Q. A function which calls itself is called a ___ function.

  • (A) Self Function
  • (B) Auto Function
  • (C) Recursive Function
  • (D) Static Function
πŸ’¬ Discuss
βœ… Correct Answer: (C) Recursive Function

Q. What is the output of C Program with Functions.?

Code:
int main()
{

    void show()
    {
        printf("HIDE");
    }

    show();
    
    return 0;
}
  • (A) No output
  • (B) HIDE
  • (C) Compiler error
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) HIDE

Q. What is the output of C Program with functions.?

Code:
void show();

int main()
{
    show();
    printf("ARGENTINA ");
    return 0;
}

void show()
{
    printf("AFRICA ");
}
  • (A) ARGENTINA AFRICA
  • (B) AFRICA ARGENTINA
  • (C) ARGENTINA
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (B) AFRICA ARGENTINA

Q. What is the output of C Program with functions.?

Code:
int main()
{
    show();
    printf("BANK ");
    return 0;
}

void show()
{
    printf("CURRENCY ");
}
  • (A) CURRENCY BANK
  • (B) BANK CURRENCY
  • (C) BANK
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compiler error

Q. How many values can a C Function return at a time.?

  • (A) Only One Value
  • (B) Maximum of two values
  • (C) Maximum of three values
  • (D) Maximum of 8 values
πŸ’¬ Discuss
βœ… Correct Answer: (A) Only One Value

Q. What is the output of a C program with functions.?

Code:
void show();

void main()
{
    show();
    printf("RAINBOW ");
    
    return;
}

void show()
{
    printf("COLOURS ");
}
  • (A) RAINBOW COLOURS
  • (B) COLOURS RAINBOW
  • (C) COLOURS
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (B) COLOURS RAINBOW

Q. What is the output of C Program.?

Code:
void show();

void main()
{
    printf("PISTA ");
    show();
}

void show()
{
    printf("CACHEW ");
    return 10;
}
  • (A) PISTA CACHEW
  • (B) CASHEW PISTA
  • (C) PISTA CASHEW with compiler warning
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (C) PISTA CASHEW with compiler warning

Q. What is the output of C Program with functions?

Code:
int show();

void main()
{
    int a;
    printf("PISTA COUNT=");
    a=show();
    printf("%d", a);
}

int show()
{
    return 10;
}
  • (A) PISTA COUNT=
  • (B) PISTA COUNT=0
  • (C) PISTA COUNT=10
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (C) PISTA COUNT=10

Q. What is the output of C Program with functions.?

Code:
void main()
{
    int a;
    printf("TIGER COUNT=");
    a=show();
    printf("%d", a);
}

int show()
{
    return 15;
    return 35;
}
  • (A) TIGER COUNT=15
  • (B) TIGER COUNT=35
  • (C) TIGER COUNT=0
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (A) TIGER COUNT=15

Q. What are types of Functions in C Language.?

  • (A) Library Functions
  • (B) User Defined Functions
  • (C) Both Library and User Defined
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both Library and User Defined