Quark Placement Paper : Whole Testpaper
VERBAL SECTION
Directions: Give the synonyms for the following words
1. Depreciation: deflation, depression, devaluation, fall, slump
2. Deprecate : feel and express disapproval,
3. Incentive : thing one encourages one to do (stimulus)
4. Echelon : level of authority or responsibility
5. Innovation : make changes or introduce new things
6. Intermittent : externally stopping and then starting
7. Detrimental: harmful
8. Conciliation : make less angry or more friendly
9. Orthodox: conventional or traditional, superstitious
10. Fallible : liable to error
11. Volatile : ever changing
12. Manifest: clear and obvious
13. Connotation : suggest or implied meaning of expression
14. Reciprocal: reverse or opposite
15. Agrarian : related to agriculture
16. Vacillate : undecided or dilemma
17. Expedient : fitting proper, desirable
18. Simulate : produce artificially resembling an existing one.
19. Access : to approach
20. Compensation: salary
21. Truncate : shorten by cutting
22. Adherence : stick
23. Heterogeneous: non similar things
24. Surplus : excessive
25. Assess : determine the amount or value
26. Cognizance : knowledge
27. Retrospective : review
28. Naive : innocent, rustic
29. Equivocate : tallying on both sides, lie, mislead
30. Postulate : frame a theory
31. Latent : dormant, secret
32. Fluctuation : wavering,
33. Eliminate : to reduce
34. Affinity : strong liking
35. Expedite : hasten
36. Console : to show sympathy
37. Adversary : opposition
38. Affable : lovable or approachable
39. Decomposition : rotten
40. Agregious : apart from the crowd, especially bad
41. Conglomeration: group, collection
42. Aberration: deviation
43. Augury : prediction
44. Creditability : ability to common belief, quality of being credible
45. Coincident: incidentally
46. Constituent : accompanying
47. Differential : having or showing or making use of
48. Litigation : engaging in a law suit
49. Moratorium: legally or officially determined period of delay before fulfillment of the agreement of paying of debts.
50. Negotiate : discuss or bargain
51. Preparation : act of preparing
52. Preponderant : superiority of power or quality
53. Relevance : quality of being relevant
54. Apparatus : appliances
55. Ignorance : blindness, in experience
56. Obsession: complex enthusiasm
57. precipitate : speed, active
SERIES SECTION
Directions: In the following questions complete the series
NOTE: This section is quite tough and consists of 26 questions to be done in 10 minutes. Please keep track of time.
1. A C B D E F G I - I H K J L
Ans. H
2. A I Z B E Y C I X D I - G E N J W
Ans. W
3. A D G J M P - R W T S
Ans. S
4. A B C E F G I J K - M L O N P
Ans. M
5. A B F G K L P Q - T S V U W
Ans. U
6. J W X U V S T - Q P S E T
Ans. Q
7. A R H X Y T D T W S T - N P T K R
Ans. P
8. F M B I P Z V I E V - I R Y O U
9. N Z I Y C X KW F - J F V M Y
Ans. V
10. A A S A S P A S P K A - R Q T S U
Ans. S
11. A E C P S - T R U E
Ans. U
12. B B P R D D L N F F I K - H Q J I K
Ans. H
13 A Z E X I V M T - R Q N S O
Ans. Q
14. A B D G K P - L I W U X
Ans. U
15. B C D A E G H I F J L M N L K N M O
Ans. K
16. X W E F G V U H I J K - P N S R T
Ans. T
17. O D J T O P Q N O E R T - Q O U V W
Ans. O
18. P R N U U P E J R B B - H V U N E
Ans. E
19.L U L M G M N F N P S - O N Q P S
Ans. P
NUMERICAL ABILITY
1. 420% OF 7.79 = ?
Ans. 32.718
2. 3427 / 16.53 = ?
Ans. 202
3. 10995 /95 = ?
Ans.115.7365
4. 43+557-247 =?
Ans. 353
5. 3107*3.082= ?
Ans. 9591
6. 48.7 + 24.9 - 8.7 = ?
Ans. 64.90
7.525.0/47.8 = ?
Ans. 11
8. (135-30-14)*7 - 6 +2 = ?
Ans. 3
9. 3/8 * 5.04=?
Ans. 1.89
10. 697 /219 = ?
Ans. 3.18
11.8/64 +64/16 =?
Ans. 4.14
12. 298 * 312 / 208 = ?
Ans. 453.54
13. 0.33 *1496 /13 = ?
Ans. 37.98
14.0.26 + 1/8 = ?
Ans. 0.385
15. 66.17+1/3= ?
Ans. 67.03
16. 2.84+1/4= ?
Ans. 3.09
17. 33% OF 450 = ?
Ans. 148.5
18. 907.54 / 0,3073= ?
Ans.3002
19.There are two categories of persons in ratio A:B = 2:3. A type earns 2.5 dollars/hr and B type 1 dollar/hr total money earned by both is 24dollars. Then what is the total number of persons
Ans. 15
20. Total balls are z, the number of red balls is n and the remaining are blak balls,then the % of black balls equal to ?
Ans. (z - n) / z*100
21. If A = C, B = 2D what should be done to make the ratio same. i.e.a/b = c/d
Ans. Multiply A by 2
22. If P=Total number of components, Q = number of defective components .What is the % of non defective components?
Ans. (p-q) / p*100
23. If the cost of an article is x , first discount given is y% of cost, second discount given is z% of cost. The selling price of x is
Ans. x (1-y / 100) (1- z / 100)
24.Which of the following are prime numbers
(a) 119 (b) 115 (c) 127 (d) none
Ans. (c)
25. A / B = C; C > D then
(a) A is always greater than D (b) C is always greater than D
(c) B is always less than D (d) None of these
Ans. (a)
26. If B>C and AAns. ( A + B )C
27. If for H hours of work the salary is S and the employee gets x hours of medical leave, then what is the salary/hr ?
Ans. s/H-x
28. ( 1/6 of 596) / (0.695) = ?
Ans. 142
29. 35-30 + 4/7 - 5 + 1 = ?
Ans. 3
30. 10995 + 95 = ?
Ans. 11090
31. If on a salary of Rs."S" per month,one has to pay one tax of x Rs. and a second type of tax of y Rs then % of salary taken home is?
Ans. s-(x+y)/s * 100
32. B>A then which expression will be highest value
(a) A-B (b) AB (c) A+B (d) Can,t Say
Ans. (b)
33. K, L are men who take home a salary of x, y respectively.The total amount taken home is
Ans. Kx + Ly
34. If out of X bulbs y bulbs are broken;The % of non broken bulbs
Ans. (x-y) / x*100
35. If on a salary s per month, a tax of x% of the salary and another of r% of the salary is deducted what is the income.
Ans. s*(1-(x+r)/100
36. 0.512 * 18902358 =?
Ans. 9678007.296
37. If the % of defective balls is 10% balls,and the number of defective balls is 5.The number of balls is
Ans.50
38. 6.29% of 2.8 =?
Ans. 0.18
39. 0.398 * 456= ?
Ans. 181.49
40. 0 < x < 1 which is greater
(a) 1/x2 (b) 1/x (c) x (d) x2
Ans. (a)
41. If c = a/b; a-1 = c, what is the relation between a and b?
Ans. b = a/a-1
42. What is the sum of 7 consecutive odd numbers with 27 as the fourth number
Ans.189
FLOWCHART SECTION
Directions: There are 7 flow charts and each has 5-6 blank rectangles/diamonds with sub question number in the rectangle/diamond. You have to fill the blank from the 5 options given against respective question number
NOTE: These types of questions are not at all tough. You have to understand the logic and then it is very easy to fill the blanks. Some information is provided for getting to the answers. There will be blanks which C - Question Paper
Note : There are 20 questions and no negative marking.
Time allotted is 30 minutes
1. What is the output of the following code
main()
{
printf("Hello %d",printf("QUARK test? "));
}
a. Compile time error.
b. Hello QUARK test?
c. Run time error.
d. None of the above.
e. Quark Test ?Hello.
Ans. d.
This is because the evaluation of the parameters in a function call is done from right to left, becz the parameters were passed via a stack hence the first parameter (the leftmost one) is at the bottom of the stack and the rightmost parameter (if it is an expresseion, it will be evaluated before putting it on the stack) is on the top of the stack, hence while popping the parameters from the stack, the function printf (or any other function) gets them in the reverse order, i.e., from right to left, hence the statement printf(“Quark test? “) gets evaluated first while pushing it as a parameter on to the stack, and then the statement printf(“Hello %d”) is executed. The ‘12’ is the result of the return of printf(“Quark test? “) which returns the number of characters printed.
2.) Out put of the following code is
main()
{
int i,j,A;
for (A = -1;A<=1; A++)
printf("%d\t",!!A);
}
a. 1 0 1
b. 65534 0 65534
c. -1 0 1
d. -65534 0 65534
e. None of the above
Ans. 1 0 1
3) What is the out put of the following code?
main()
{
int i=255;
printf("%d\t",++(i++));
}
a. Compilation error
b. Runtime error
c. 256
d. 0
e. None of the above
Ans. Compile Time Error ‘Lvalue Required
4) What shall be the output of the following code?
main()
{
char i = ,a,;
printf("%c \t %c \t", i ,(++i));
}
a. a b
b. Compile time error
c. b b
d. a a
e. 65 66
Ans. b b
5) What shall be the output of the following code?
main() {
int i,j;
printf(“QUARK %s\n”,main());
}
a. Compilation error.
b. Run-time error
c. Continuous scrolling Quark on the screen.
d. None of the above.
Ans. There is nothing on the screen and prog waits till the memory lasts and then out of memory run time error, so ans is b.
6) What shall be the output of the following code ?
#define f(x) x*x*x
main(){
printf("\n%d",f(2+2));
}
a. 8
b. 64
c. 10
d. 12
Ans. f(2+2) will expand to 2+2*2+2*2+2
= 2+4+4+2
= 12
7) What shall be the output of the following code ?
main()
{
void fun1(void *);
char a[] = "quark";
void *temp;
temp = a;
fun1(temp);}
void fun1(void *temp1 )
{
int t1 = 0;
while(*((char*)temp1+ t1++ )!=,\0,) {
printf("%c",*((char*)temp1 + t1));
}
}
a. Compilation error
b. ark
c. quark
d. uark
Ans, uark
8. What will be the out put of the following code?
void main()
{ int x=3;
printf("%d\t %d",x>>1, x<<3);
}
a. 1 and 4
b. 1 and 24
c. 1 and 27
d. None of the above
Ans. 1 and 24
This is because 3 in binary is 00000000 00000011 in two bytes (integer). Again, the right to left evaluation rule of parameters is applicable and so x<<3 gets executed first, it means left shift 3 times, but this operator does not change the value of x itself, it simply returns a value, so x retains its value after this operation has been carried out, so we get 00000000 00011000 which is 24, so 24 is pushed onto the stack, and then x>>1, right shift 1, 00000000 00000011, which is 1 in decimal, so 1 is pushed onto the stack, then printf("%d\t %d") gets executed displaying 1 24.
9. What will be the result of the following code?
int *x;
x =(int *) 15;
a. Compilation error
b. Compiles but gives a runtime error
c. Absolute location 15 in the memory space shall be assigned to pointer x;
d. Location 15 in the program space is assigned to pointer x;
e. Location 15 contains the address to an integer.
Ans d
10. Which of the following functions cannot be called from another file?
a. const void func(){ ……..}
b. extern void func(){………}
c. void func(){………}
d. static void func(){……….}
Ans. static
11. What will be the out come of the following code?
#include
int * func(){
static int x=0;
x++; return &x;
}
int main()
{
int * y = func();
printf("%d",(*y)++);
func();
printf("%d\n",*y);
return 0;
}
a. Compilation error.
b. Prints 1 and 3
c. Prints 1 and 3 but it is not good practice.
d. Prints 1 and 1
e. The code will not execute properly because y points to a variable whose life span is limited to execution of the function func();
Ans. Prints 1 and 3 but it is not a good practice
12. Referring to the above code , which of the following would be the correct
implementation for myFunc ?
char *format = “%d”;
int main()
{
int x;
myFunc(scanf,&x);
printf(“%d\n”,x);
return(0);
}
a. void myFunc(int(*y)(const char*,…),int *x) {(*y)(format,&x);}
b. void myFunc(int(*y)(const char*,…),int *x) {(*y)(format,*x);}
c. void myFunc(int*y(const char*,…),int *x) {(*y)(format,&x);}
d. void myFunc(*(int y(const char*,…)),int *x) {(*y)(format,x);}
e. void myFunc(int(*y)(const char*,…),int *x) {(*y)(format,x);}
13. What shall be the output of the following C code?
void main()
{
unsigned int x= -1;
int y =0;
if(y<=x) printf(“A is true\n”);
if (y = =(x = -10)) printf(“B is true\n”);
if ((int) x>=y) printf(“C is true\n”);
}
a. A is true.
b. B is true.
c. C is true.
d. None of the above.
Ans. A is true because x contains –1, i.e., in binary it is ffff, i.e., all 1s, so being unsigned, all 1s are interpreted as the value 65535 and not as –1 (however, all 1s are interpreted as –1 if it is just an int), hence y<=x returns true.
14. In the following code what is the correct way to increment the variable ptr to
point to the next member of the array
union intfloat
{
int intArray[ 5];
float floatArray[ 5];
};
union intfloat arr[20];
void *ptr =arr;
a. ++(int*)ptr;
b. ptr = ptr+5;
c. ptr = ptr +sizeof(*ptr);
d. ptr = ptr+sizeof(intfloat.floatArray);
e. ptr = (void*)((union intfloat*)ptr +1);
Ans. e. ptr = (void*)((union intfloat*)ptr +1);
15.What shall be the output of the following program?
#define PRINTXYZ(x,y,z) printf (#x "=%d\t" #z "=%d\n", x, y)
void main() {
int x, y, z;
x=0; y=1; z=2;
x || ++y ||++z;
PRINTXYZ(x,y,z);
++x || ++y && ++z;
PRINTXYZ(x,y,z);
++x && ++y || ++z;
PRINTXYZ(x,y,z);
}
a. Compilation error.
b. Runtime error.
c.
x=0 z=2
x=1 z=3
x=2 z=4
d.
x=0 z=2
x=1 z=2
x=2 z=3
e. None of the above.
Ans. d.
16. What shall be the output of the following code ?
main()
{
printf(“%d %d”, sizeof(NULL), sizeof(“”));
}
a. 1 and 0.
b. 0 and 1
c. 2 and 1
d. 4 and 1
e. None of the above
Ans. Depends on the machine and compiler. Actually it is the sizeof(int) and sizeof(char) as a string is stored as a char array terminated with 0, so sizeof(“”) gives 1, whereas sizeof(“adsf”) gives 5 (including the terminating 0). So in TurboC we get c as the answer, on VC we get d as the answer, so I guess e is the ans, i.e., None of the above.
17. What shall be the output of the following code?
int *check ( int,int);
void main()
{int c,d;
c = check(11,29);
d= check(20,30);
printf("\nc=%u",c);
}
int * check(int i,int j )
{
int *p, *q;
p=&i;
q=&j;
if(i>=95)
return(q);
else
return(p);
}
a. 11
b. 29
c. Compilation error
d. Runtime error
e. None of the above.
Ans. e. None of the above. the statement c = check(11,29) is assigning an int ptr to an int, so c has an address of an int (which has gone out of scope, since the function returns the address of a variable which had its scope only inside the function, since the parameters were passed by value) so the value printed can be anything. Instead, if the statement was c = *(check(11,29)) then c would have the value stored at the address returned by the function, which would most probably be 11, but it cannot be guaranteed since the variable i has fallen out of scope.
18. What shall be the output of the following code?
void main()
{int a[3][2]={ 1,2,
5,7,
6,8};
printf("\n%d",((a+1)-(&a+1)));
}
a. 0
b. -16
c. -2
d. -8
e. None of the above.
Ans. –2. I haven’t been able to figure this one out. a is the address of the 2-d array, here a, &a, *a all give the same value, i.e., address of the array. (a+1) gives the address of the second row, it is the same as a[1]. *(a+1) gives the address of the first cell of the second row. **(a+1) gives the value of the element stored in the first cell in the second row. (*(a+1)+1) gives the address of the second cell of the second row. *(*(a+1)+1) gives the value of the element stored in the second cell in the second row.
19.What shall be the output of the following code?
main()
{
char str1[]="Hello";
char str2[]="Hello";
if(str1= =str2&& (*(str1+6)= =*(str2+6)))
printf("\n Equal");
else
printf("\n unequal");
}
a. Equal
b. Unequal
c. Compilation error.
d. Runtime error.
e. None of the above.
Ans. b. Unequal, because the addresses of the two strings are str1 and str2 and they are different.
20. Given that sizeof(int) is 2 , what is the output of the following code
main()
{
int a, b=255,c=127;
a=~b;
c=c^(~a & b|0);\
c=c^(~(~b));
printf("%d\n",c);
}
a. Error because of overflow;
b. 255
c. –256
d. 127
e. None of the above
Ans. d. 127