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 then is relaxing

B relaxing then

C relaxing is then

D then relaxes

E No correction required

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

A Incorrect

B Correct

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

A switch

B go back

C return

D goto

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. KR Notation
2. ANSI Notation

B 1. ANSI Notation
2. Pre ANSI Notation

C 1. ANSI Notation
2. KR Notation

D 1. Pre ANSI C Notation
2. KR Notation

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

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

A Infinite times

B 65535 times

C 32767 times

D Till stack overflows

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 0 (Zero)

B 1990

C Garbage value

D No output

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 5, 2

B 25, 4

C 2, 5

D 10, 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 Infinite loop

D No output

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 Print 1, 2, 3, 4, 5

B Print 5, 4, 3, 2, 1

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

D Infinite loop

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 1, 1, 2, 0,

B 0, 2, 1, 0,

C 0, 1, 0, 2,

D 0, 1, 2, 0,