ExamTray App is now Available on Google Play EXAMTRAY android app link

 

TOTAL QS = 10Time [ 00 : 00 : 00 ]
00:00:00

C Programming Basics Tutorial - Functions and Pointers - Online Test 1

Instructions

Total Questions: 20

Total Minutes: 20

This ExamTray Free Online Exam tests your C Programming Skills on C Functions, Recursion, Pointers, Pass by Value, Pass by Reference Syntax. Examples are given as questions and answers. Easily Attend Competitive Exams and Job Interview Questions.

All the Best

1) Choose correct statement about Functions in C Language.
2) Choose a correct statement about C Language Functions.
3) Choose a correct statement about C Function.?
main()
{
    printf("Hello");
}
4) A function which calls itself is called a ___ function.
5) What is the output of C Program with Functions.?
int main()
{

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

    show();
    
    return 0;
}
6) What is the output of C Program with functions.?
void show();

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

void show()
{
    printf("AFRICA ");
}
7) What is the output of C Program with functions.?
int main()
{
    show();
    printf("BANK ");
    return 0;
}

void show()
{
    printf("CURRENCY ");
}
8) How many values can a C Function return at a time.?
9) What is the output of a C program with functions.?
void show();

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

void show()
{
    printf("COLOURS ");
}
10) What is the output of C Program.?
void show();

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

void show()
{
    printf("CACHEW ");
    return 10;
}
11) What is the output of C Program with functions.?
int show();

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

int show()
{
    return 10;
}
12) What is the output of C Program with functions.?
void main()
{
    int a;
    printf("TIGER COUNT=");
    a=show();
    printf("%d", a);
}

int show()
{
    return 15;
    return 35;
}
13) What are types of Functions in C Language.?
14) What is the output of C program with functions.?
int show();

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

int show()
{
    return 15.5;
    return 35;
}
15) What is the output of C Program.?
int myshow(int);

void main()
{
   myshow(5);
   myshow(10);
}

int myshow(int b)
{
    printf("Received %d, ", b);
}
16) What is the output of C Program with functions and pointers.?
int myshow(int);

void main()
{
   int a=10;
   myshow(a);
   myshow(&a);
}

int myshow(int b)
{
    printf("Received %d, ", b);
}
17) What is the output of C Program with functions and pointers.?
int myshow(int *);

void main()
{
   int a=10;
   myshow(&a);
}

int myshow(int *k)
{
    printf("Received %d, ", *k);
}
18) What is the output of C Program with functions and pointers.?
void myshow(int *);

void main()
{
   int a=10;
   printf("%d ", a);
   myshow(&a);
   printf("%d", a);
   
}

void myshow(int *k)
{
   *k=20;
}
19) What is the output of C Program with functions.?
void myshow(int);

void main()
{
   int a=10;
   printf("%d ", a);
   myshow(a);
   printf("%d", a);
   
}

void myshow(int k)
{
   k=20;
}
20) Choose correct statements about C Language Pass By Value.