Functions

Q1: The keyword used to transfer control from a function back to the calling function is

A switch

B goto

C go back

D return

Q2: Functions cannot return a floating point number

A Yes

B No

Q3:
What is the notation for following functions?
1.  int f(int a, float b)
    {
        /* Some code */
    }

2.  int f(a, b)
    int a; float b;
    {
        /* Some code */
    }

A 1. KR Notation
2. ANSI Notation

B 1. Pre ANSI C Notation
2. KR Notation

C 1. ANSI Notation
2. KR Notation

D 1. ANSI Notation
2. Pre ANSI Notation

Q4: Every function must return a value

A Yes

B No

Q5:
If a function contains two return statements successively, the compiler will generate warnings. Yes/No ?

A Yes

B No

Q6:
How many times the program will print 'AptitudeCrack' ?
#include<stdio.h>

int main()
{
    printf('AptitudeCrack');
    main();
    return 0;
}

A Infinite times

B 32767 times

C 65535 times

D Till stack overflows


img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.