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 may facilitate through

B No correction required

C may be felicitated with

D can be facilitated by

E can be felicitated with

Q2: Tumbler gears in lathe are used to

A drill a workpiece

B give desired direction of movement to the lathe carriage

C reduce the spindle speed

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 10

D 8

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 Compile error

D Print 10

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 1

B 0

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 "AptitudeCrack, C-Program" infinitely

B prints "C-Program" infinetly

C prints "C-Program, AptitudeCrack" infinitely

D
Error: main() should not inside else statement

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 Error: Compile error

B No error, No output

C 12 12

D None of above

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, 3, 4, 4

B 3, 4, 3, 4

C 3, 4, 4, 3

D 4, 3, 4, 3

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=35

B k=38

C k=37

D k=36

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 12, 7

B 12, 12

C 7, 12

D 7, 7