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: Acquisition of certain specific skills can be facilitated from general awareness, education to novel situations

A can be facilitated by

B No correction required

C can be felicitated with

D may be felicitated with

E may facilitate through

Q2: Tumbler gears in lathe are used to

A reduce the spindle speed

B drill a workpiece

C give desired direction of movement to the lathe carriage

D cut gears

Q3: What will be the output of the program?
#include<stdio.h>

int main()
{
    int fun(int);
    int i = fun(10);
    printf("%d\n", --i);
    return 0;
}
int fun(int i)
{
   return (i++);
}

A 9

B 11

C 8

D 10

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

int main()
{
    int c;
    c = check(10, 20);
    printf('c=%d\n', c);
    return 0;
}
int check(int i, int j)
{
    int *p, *q;
    p=&i;
    q=&j;
    i>=45 ? return(*p): return(*q);
}

A Print 20

B Print 1

C Print 10

D Compile error

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

int main()
{
    printf('%d\n', proc(fun, 6, 6));
    return 0;
}
int fun(int a, int b)
{
   return (a==b);
}
int proc(pf p, int a, int b)
{
   return ((*p)(a, b));
}

A 0

B 1

C -1

D 6

Q6:
What will be the output of the program?
#include<stdio.h>

int main()
{
    int i=1;
    if(!i)
        printf('AptitudeCrack,');
    else
    {
        i=0;
        printf('C-Program');
        main();
    }
    return 0;
}

A prints "C-Program, AptitudeCrack" infinitely

B
Error: main() should not inside else statement

C prints "C-Program" infinetly

D prints "AptitudeCrack, C-Program" infinitely

Q7: Step 1: int i=1; The variable i is declared as an integer type and initialized to 1(one). Step 2: if(!i) Here the !(NOT) operator reverts the i value 1 to 0. Hence the if(0) condition fails. So it goes to else part. Step 3: else { i=0; In the else part variable i is assigned to value 0(zero). Step 4: printf("C-Program"); It prints the "C-program". Step 5: main(); Here we are calling the main() function. After calling the function, the program repeats from step 1 to step 5 infinitely. Hence it prints "C-Program" infinitely.

A 12 12

B None of above

C No error, No output

D Error: Compile error

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

int main()
{
    extern int j;
    int i=3;
    fun1(i);
    printf("%d,", i);
    fun2(i);
    printf("%d", i);
    return 0;
}
int fun1(int j)
{
    printf("%d,", ++j);
    return 0;
}
int fun2(int i)
{
    printf("%d,", ++i);
    return 0;
}
int j=1;

A 3, 4, 4, 3

B 3, 4, 3, 4

C 4, 3, 4, 3

D 3, 3, 4, 4

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

int main()
{
    int k=35;
    k = func1(k=func1(k=func1(k)));
    printf("k=%d\n", k);
    return 0;
}
int func1(int k)
{
    k++;
    return k;
}

A k=37

B k=38

C k=36

D k=35

Q10:
What will be the output of the program?
#include<stdio.h>

int addmult(int ii, int jj)
{
    int kk, ll;
    kk = ii + jj;
    ll = ii * jj;
    return (kk, ll);
}

int main()
{
    int i=3, j=4, k, l;
    k = addmult(i, j);
    l = addmult(i, j);
    printf("%d, %d\n", k, l);
    return 0;
}

A 7, 7

B 12, 12

C 12, 7

D 7, 12