image not found

Oops! That page can't be found.


Directions to Solve

Which of phrases given below each sentence should replace the phrase printed in bold type to make the grammatically correct? If the sentence is correct as it is, mark 'E' as the answer.

Q1: She cooks, washes dishes, does her homework and then relaxing.

A relaxing is then

B then relaxes

C No correction required

D then is relaxing

E relaxing then

Q2: A numerical method of identification of tool is known as tool signature.

A Correct

B Incorrect

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

A go back

B switch

C goto

D return

Q4:
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. ANSI Notation
2. Pre ANSI Notation

B 1. Pre ANSI C Notation
2. KR Notation

C 1. KR Notation
2. ANSI Notation

D 1. ANSI Notation
2. KR Notation

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

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

A Till stack overflows

B Infinite times

C 65535 times

D 32767 times

Q6:
What will be the output of the program in 16 bit platform (Turbo C under DOS)?
#include<stdio.h>

int main()
{
    int fun();
    int i;
    i = fun();
    printf('%d\n', i);
    return 0;
}
int fun()
{
    _AX = 1990;
}

A No output

B 0 (Zero)

C 1990

D Garbage value

Q7:
What will be the output of the program?
#include<stdio.h>
void fun(int*, int*);
int main()
{
    int i=5, j=2;
    fun(&i, &j);
    printf('%d, %d', i, j);
    return 0;
}
void fun(int *i, int *j)
{
    *i = *i**i;
    *j = *j**j;
}

A 2, 5

B 5, 2

C 10, 4

D 25, 4

Q8:
What will be the output of the program?
#include<stdio.h>
int i;
int fun();

int main()
{
    while(i)
    {
        fun();
        main();
    }
    printf("Hello\n");
    return 0;
}
int fun()
{
    printf("Hi");
}

A Hello

B Hi Hello

C No output

D Infinite loop

Q9:
What will be the output of the program?
#include<stdio.h>
int reverse(int);

int main()
{
    int no=5;
    reverse(no);
    return 0;
}
int reverse(int no)
{
    if(no == 0)
        return 0;
    else
        printf("%d,", no);
    reverse (no--);
}

A Infinite loop

B Print 5, 4, 3, 2, 1, 0

C Print 1, 2, 3, 4, 5

D Print 5, 4, 3, 2, 1

Q10:
What will be the output of the program?
#include<stdio.h>
void fun(int);
typedef int (*pf) (int, int);
int proc(pf, int, int);

int main()
{
    int a=3;
    fun(a);
    return 0;
}
void fun(int n)
{
    if(n > 0)
    {
        fun(--n);
        printf("%d,", n);
        fun(--n);
    }
}

A 0, 2, 1, 0,

B 0, 1, 2, 0,

C 1, 1, 2, 0,

D 0, 1, 0, 2,