|
CARITOR SAMPLE PAPER
PROCEDURE: Written test GD Interview
PATTERN: Quantitative : 30 Questions, 30 Minutes. C/C++
QUANTITATIVE SECTION
Â
1.A cube object 3" * 3" * 3" is painted with green in all the outer surfaces. If the cube is cut into cubes of 1"*1"*1", how many 1" cubes will have at least one surface painted.
a. 8    b.26     c.27      d. none                                          Â
Answer. b) 26
2.Single table tennis tournament is held at IT solutions in which 32 players participated. If a single player is eliminated as soon as the player loses a match. How many matches are required to determine the winner.
a. 32     b.   16        c. 31       d. 15
Answer. c)Â 31
3.There are 200 employees in a company. An external vender is chosen to serve coffee twice a day.100 coffee cups were offered by the company , but as an incentive to have the cups in fact at the end of the day, the company offered 30 paise for every cup remained safely and charged 90 paise for every broken cup. At the end of the day , the vender received RS.24 . how many cups did the vender break.
a. 20Â Â Â Â Â Â b.5Â Â Â Â Â Â Â Â Â Â Â Â Â c.10Â Â Â Â Â Â Â d.14
Answer. c)Â 10
4.A box contains 16 balls of 4 different colors green blue yellow &red each. if you were to close your eyes and pick them at random , how many marbles must you take out to be sure that there at least two of one colour among the marbles picked out.
A. 4 b. 5 c. 6 d. 14Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
Answer. b)Â 5
5.If 8 tyres were used on a bus (6 tyres ) which has traveled 16000 km , how many km did each tyre sustain .if all the tyres were used equally in sustaining this distance .
a. 2000 b.16000 c.12000 d.10000
Answer. c)Â 12000
6.A company purchased 3 computer tables in 1995. as the company wanted to renovate the office , sold those tables at RS.2400 each making a profit of 20% of one , no profit on second table and 20%loss on third table. What is the company get in this transaction.
a. no loss no profit         b.RS.200 loss       c.RS.800profit  d. RS.400 loss
Answer. b) 200
7.A company purchased 3 computer tables in 1995. as the company wanted to renovate the office , sold those tables at RS.2400 each making a profit of 20% of one , no profit on second table and 20%loss on third table. What is the company get in this transaction. A. no loss no profit b.RS.200 loss c.RS.800profit d. RS.400 loss
Answer. b) 200
8.The average of x & y is 12.if z=9.What is the average of x ,y, z ?
a.11Â Â Â b.6.5Â Â Â Â Â Â Â Â Â Â c.5Â Â Â Â Â Â Â Â d. not enough data
Answer. a) 11
9.In a certain shop note books that normally sell for 59 cents each or on sale at 2 for 99cents. How can be saved by   purchasing 10 of these note books at the sale price.
a.$0.85Â Â Â Â Â b.$1.0Â Â Â Â Â Â Â Â c.$0.95Â Â Â Â Â Â Â Â d.$1.15Â Â Â
Answer. c)$0.95
10The cost in $ of manufacturing x fridges is 9000+400x . The amount received when selling these x fridges is  500x $ , What is the least no of fridges that must be manufactured & sold so that the amount received is at least  equal to the manufacturing cost.
a. 10Â Â Â Â Â Â Â Â Â b.18Â Â Â Â Â Â Â c.15Â Â Â Â Â Â Â Â Â d.90
Answer. d)90Â
11The sides of the right triangular field containing the right angle are x &x+10. its area is 5500sq.m.The equation to determine is
a. x(x+10)=5500Â Â Â Â Â Â Â b. x(x+10)=2750Â Â Â Â Â Â Â Â Â Â Â c. x(x+10)=11000Â Â Â Â Â Â Â Â d. x(x+20)=5500
Answer. c)x(x+10)=11000
12.The length and breadth of a rectangular plot are in the ratio of 7:5. If the length is reduced by 5 m& breadth is increased by 2 m then the area is reduced by 65 sq.m. The length and breadth of the rectangular plot are
a.25,35Â Â Â Â Â Â Â Â Â Â b.21,15Â Â Â Â Â Â Â Â Â c.35,25Â Â Â Â Â Â Â Â Â d.49,35
Answer. c)35,25
13.6 men earn as much as 8 women ,two women earn as much as 3 boys&4 boys earn as much as 5 girls . if a girl earns RS.50 a day then the earning of the man would be
a.115Â Â Â Â Â Â Â Â Â b.125Â Â Â Â Â Â Â Â c.135Â Â Â Â Â Â d.150
Answer. b)125
14.a & b can separately do a piece of work in 10 & 15 days respectively. They work together for sometimes and b stops. If a completes the rest of work in 5 days ,then b has worked for
a.5Â Â Â b.4Â Â Â Â Â c.3Â Â Â Â Â Â Â Â d.2 (days)
Answer. c)3
15.A Farmer owns a square land of 15 m each side with a pole in one of the corners to which he tied his cow with a rope whose length is about 10 m. What is the area available for the cow to graze. (Assume pi = 3)
a)125 sq. m b)150 sq.m c)Not enough data d)75 sq. m
Answer. d)75Â
16.Five friends Lokesh, Manoj, Neeraj, Raveesh and Rohit have agreed to work together on a part-time job offered  by a local restaurant. The restaurant works five days a week and this group has the following schedule when they can work: 1. Neeraj and Raveesh can work on Monday, Tuesday and Wednesday 2. Raveesh and Rohit can work on Monday, Wednesday and Thursday 3. Rohit and Lokesh can work on Monday, Friday and Thursday 4. Lokesh and Manoj can work on Friday, Tuesday and Thursday 5. Neeraj and Manoj can work on Friday, Tuesday and Wednesday
Which one of the five friends cannot work on Thursdays?
17.A Fraction has the denominator greater than its numerator by 4. But if you add 10 to the denominator, thevalue of the fraction would then become 1/8. What is the fraction.
a)1/5Â b)3/7Â c)1/3Â d)2/6
18.Concentrations of three wines A, B and C are 10, 20 and 30 percent respectively. They are mixed in the ratio 2 : 3 : x resulting in a 23% concentration solution. Find x.
Answer: 4
19.In the figure below , marked triangles are equilateral congruent triangles. If the area of the shaded region is A, Find the remaining area a).A(3+4?2) b).A(3+4?2) c).6A d).A(3+2?3)Â Â Â Â Â Â Â Â Â Â
Answer. a)A(3+4?2)
20.Four towers in a commercial complex are connected by a network of escalators in the manner shown below. Determine the number of ways you can go from one tower to the other and back, without using the same escalator more than once and not using any other means of transportation?
Answer. 10
21.A farmer owns a square field of side with a pole in one of the corners to which he tied his cow with a rope whose length is about is 10 m . what is the area available for the cow to grace .assume pi=3.
a.150 sq.m       b.125sq,m      c.75sq.m  d. not enough data.
Answer. c)75sq.m
22.Tthe average of x & y is 12. If z=9 What is the average of x ,y, z?
a.11Â Â Â Â Â b.6.5Â Â Â Â Â c.5Â Â Â d. not enough data
Answer. a) 11
23.In a certain shop note books that normally sell for 59 cents each or on sale at 2 for 99cents.how can be saved by purchasing 10 of these note books at the sale price.
a.$0.85Â Â b.$1.0Â Â c.$0.95Â Â d.$1.15Â
Answer. $0.95
24.The cost in $ of manufacturing x fridges is 9000+400x . The amount received when selling these x fridges is 500x  $ , what is the least no of fridges that must be manufactured & sold so that the amount received is at least equal to the manufacturing cost.
a. 10Â Â Â Â Â b.18Â Â c.15Â Â d.90Â Â
Answer. d) 90
25.The sides of the right triangular field containing the right angle are x &x+10. its area is 5500sq.m. The equation to determine is
a. x(x+10)=5500Â Â Â Â Â Â Â Â Â Â b. x(x+10)=2750Â Â Â Â Â Â Â Â Â c. x(x+10)=11000Â Â Â Â Â Â Â d. x(x+20)=5500
Answer. c) x(x+10)=11000
26.The length and breadth of a rectangular plot are in the ratio of 7:5. if the length is reduced by 5 m& breadth is increased by 2 m then the area is reduced by 65 sq.m. the length and breadth of the rectangular plot are
a.25,35Â Â Â Â Â Â Â Â b.21,15Â Â Â Â Â Â Â Â c.35,25Â Â Â Â Â Â Â d.49,35
Answer. c) 35,25
27. A fraction in which numerator is 4 less than denominator. When 10 is added to the denominator the fraction becomes 1/8. What is the original fraction?
Answer: Let nr be x dr be x+4 fraction x/x+4 on adding 10 to dr fraction==> x/x+14=1/8 ==> x=2
Original fraction=2/6
28.Data Representation both graph ,pie chart
29.Time & work problem
30.Verbal Reasoning 3 or 4 problems
C SECTION
1.Struct x
{ int i; char c; } union y{ struct x a; double d; }; printf("%d",sizeof(union y)); a)8Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â b)5 c)4 d)1
Answer:a)8 2.struct x { char c1; char c2; int i; short int j; }; struct y{ short int j; char c1; char c2; int i; }; printf("%d %d",size of (struct x),size of (struct y)); a)12 12 b)8 8Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â c)12 8 d)8 12
Answer:a)12 12 3.enum x {a=1,b,c,d,f=60,y} printf("%d",y);
a)5 b)61 c)6 d)60
Answer:a)5 4.#include<stdio.h> void main(){ { # define x 10 } printf("%d \n",++x); } a)11 b)10 c)compile error                                d)runtime error
Answer:c)compile error 5.#include<stdio.h> void main() { int k=2,j=3,p=0; p=(k,j,k); printf("%d\n",p); }
a)2 b)error c)0 d)3
Answer:a)2 6.How to typedef a function pointer which takes int as a parameter and return an int
a)Is not possible b)typedef int *funcptr int; c)typedef int * funcptr( int); d)typedef int (*funcptr)(int);
Answer:d) typedef int (*funcptr)(int);
7.#include<stdio.h> void main() { int k=10; k<<=1; printf("%d\n",k); }
a)10 b)0 c)20 d)compilation error
Answer:c)20
8.#include<stdio.h> void main() { int i=-10; for(;i;printf("%d\n",i++)); }
a)error b)prints -10 to -1 c)infinite loop d)does not print anything Answer: b)prints -10 to -1
9.#include<stdio.h> void main() { int I=65,j=0; for(;j<26; i++,j++) { printf("%s\n", i); } }
a)compilation Error b)prints A to Z c)prints a to z d)runtime error
Answer: b)prints A to Z
10.#include<stdio.h> void main() { unsigned int i=-1; printf("%d\n",i); printf("%u\n",i*-1); } a)runtime error b)compilation error c)prints -1 to 1 d)prints 1 and 1
Answer: c)prints -1 to 1
11.#include <stdio.h> void main() { int **I; int *j=0; i=&j; if (NULL != i&& NULL != *i){ printf("I am here"); } } a)prints I am here b)does not print anything c)compilaton error d)runtime error
Answer:b)does not print anything 12#include<stdio.h> void main() { int *j=(int *)0x1000; printf("%p",j); }
a)prints-1000 b)runtime error c)compilation error d)none of the above
Answer:d)none of the above 13#include<stdio.h> void main() { int a[2][2]={{2},{3}}; printf("%d",a[0][0]); printf("%d",a[0][1]); printf("%d",a[1][0]); printf("%d",a[1][1]); }
a) 2300 b)2000 c)0030 d)2030
Answer:d)2030
14)#include<stdio.h> void main(int x) { printf("%d",x) ; } if the name of the executable file is abc and the command line is given as abc xyz what is the output?
a)compilation error b)1 c)2 d)undefined
Answer:c)2
15.#include<stdio.h> void main(int argc) { char a[]={'1','2','3',0,'1','2','3'}; printf(a); }
a) compilation error, b) 123, c) 123 123, d) 1230123
Answer:b) 123
16.#include<stdio.h> void func(int *x) { x=(int *) malloc(sizeof(int)); printf("in func: %p\n",x); } void main(int argc) { int **pp; int *p; pp=(int **) malloc(sizeof(int *)); p=(int *) malloc(sizeof((int)); *pp=p; printf("first:%p \n",*pp); func(*pp); printf("last %p \n",*pp); } Assuming the p is equal to 1000 and x is equal to 2000 atfer malloc calls a) 1000,2000,1000, b) 1000,2000,2000, c) 1000,1000,1000 d) 2000,2000,2000
Answer:a) 1000,2000,1000 17.#include<stdio.h> #define const const void main(int argc) { const int x=0; } a) compilation error, b) runs fine, c) runtime error, d) none of these
Answer:b) runs fine
18.#include<stdio.h> void main(int argc) { int d=1234.5678; printf("%d",d); } a) error, b) 1234.5678, c) 1234, d) 1235 Answer:c) 1234 19.#include<stdio.h> void main(int argc) { int a[]={5,6}; printf("%d",a[1.6]); } a) 5, b) runtime error, c) compilation error, d) 6
Answer:d) 6
20.#include<stdio.h> struct x { int i=0;Â Â Â Â Â Â Â Â Â Â Â /*line A*/ }; void main(int argc) { struct x y;Â Â Â Â Â Â Â /*line B*/ } a) error due to B, b) no problem with option A and B, c) error somewhere other than line A and B, d) error due to line A
Answer:d)error due to line A
21.#include<stdio.h> void main(int arg c) { int x=1111; printf("%d",!x); }
a).prints 1111 b).compilation error c).prints 0 d).is not a valid option
Answer:c).prints 0
22.struct { int len; char *str }*p; ++p -> len a).increments p b). increments len c).compilation error d).nothing happens with either of p and len
Answer:b).increments len
23.int i=10;
a).declaration b).definition c).both d).none
Answer:c).both
24.#include<stdio.h> void main(int arg c) { char a[]=abcdefghijklmnopqrstuvwxyz; printf(%d,sizeof(a)); }
a.25Â b.26 c.27 d.28
Answer:c).27
25.#include<stdio.h> void main(int arg c) { char a[]=abcdefghijklmnopqrstuvwxyz; char *p=a; printf(%d,strlen(p)); p+=10; printf(%d,strlen(a)); }
a).26 26 b).26 16 c).compilation error d).16 26
Answer:a).26 26
26.If a file contains the IT solutions Inc.rn then on reading this line the array str using fgets() what would str contain?
a). IT solutions Inc. b). IT solutions Inc.r0 c). IT solutions Inc.rn0 d). IT solutions Inc.n0
27.If the following program (myprog)is run from the command line as myprog 1 2 3 what would be the output?
Main(int argc , char *argv[]) { int I ,j=0; for (I=0;I<argc;I++) j=j+atoi(argv[i]); printf(%d.j); } a. 123 b.6   c.error d.123
Answer:b).6
28.When pointers declared initialized to :
a). null b).newly allocated memory c)nothing,its random d)none of the above
Answer:c).nothing,its random
29.What is the output of the following code? #include<stdio.h> void main() { printf("%d",printf(" hello world ")); } a) 13, b) hello world 13, c) hello world, d) error
Answer:b).hello world 13
30.What is the output of the following code, assuming that the array begins at location 5364875? #include<stdio.h> void main() { int a[2][3][4]={{2,1,4,3,6,5,8,7,0,9,2,2} {1,2,3,4,5,6,7,8,9,0,1,2} }; printf("%u %u %u %u",a,*a,**a,***a); }
a) 5364875,5364876,5364877,5364878 b) 5364875,5364876,5364877,2 c) 5364875,5364875,5364876,5364876 d) 5364875,5364875,5364875,2
Answer:d).5364875,5364875,5364875,2
|