Provided by www.YuvaJobs.com - Grapcity Aptitude - General <class Item>void foo(Item x);which is right way to call with integer argument I?a. foo(i);b. foo<int > (i);c. foo<Item>(i);d. foo(<int> i);e. foo(<Item > i);8.9. void quiz(int w){if(w>1){ quiz (w/2);quiz(w/2);}printf(“*”);}how many asterisks are printed by the function call quiz(5)?a. 3b. 4c. 7d. 810. void test_a (int n){printf(“%d”,n);if(n>0) test_a(n-2);}test_a(4)?a . 0 2 4c. 0 2d. 2 4e. 4 2f. 4 2 011. char string[8]=”abcdefg”;*string=’\0’;printf(“%s”,string);a. compiler errorb. run-time errorc. no o/p, but no errord. creates bcdefg12. char string[8]=”abcdefg”o/p :printf(“%s\n”,string +3);a. abcdefgb. abcc. defgd. cdefg13. main(){ int I=-3, j=2,k=0,m;m=++I&&++j||++k;printf(“\n%d%d%D”, I,j,k,m);a. –2 3 0 1b. –2 3 1 1 c. –2 3 1 0d. –2 3 0 014. main(){int I;for(;;){printf(“%d”,I++)if(I>10)break;}}a. condition in a for-loop is mudtb. no errorc. 2 ; shud be dropped15.void goop ( int z[]);//prototypeint x[10];which ois the correct way to call goopa. goop(x);b. goop(x[]);c. goop(x[10]);d. goop(&x);e. goop(&x[]);16. int a=3,b=17;a=b%a;b=++a+5;printf(“a,b);a. 2 8b. 2 7c. 3 7d. 2 8e. none18. how many time shello will be printed?FILE *fp=fopen(“test.txt”,w)Fprintf(fp,”hello”);Fork();a. 1b. 2c. 0d. none19. int a;int b=0;while(a){{ a&=a-1;b++;}a &ba. 0 & 15b. 1 & 16c. 0 & 16d. none20. class A{public:static int a;A() {a=10};};int main(){A b;Printf(“%d”,b.a);Return 0;}will the program compile?a yesb. noNUMERICAL ABILITY1. A salesman marks an item 60% above the cost price & offers 2 successive discounts of 25% & 15% on the marked price. His profit is:a. 15% b 2% c 7.5% d. 10 e. none2.Had it been sold at 55% loss, SP would have been Rs. 10.80. The C.P is;a. Rs 26 b. 28 c. 36 d.24 e. none3. If 18 men can build a wall 140 mtrs. In 42 days . In how many days can 15 men be able to construct a similar wall 100 mtrs . long??a. 36 b. 60 c. 60 d. 33 e. none4. Successive discounts of 15% & 20% on any goods amount to a total discount of :a. 50 % b. 35% c, 34% d.32 % e.none5. In a km race A beats B by 40 m or 7 secs. A’s time (in secs) over the cource is:a.180d. 280e. 168f. 175g. none7. A widow & a son are to receive Rs 20000 and Rs 10,000 respectively frm inheritance of Rs. 70,000. The rest is 2 be divide so that the widow recives 3/2 times as much of it as the son. Then the amnt received by (widow,son) pei9r in thousands of rs. Is:a. (44,26)b. 42,28c. 40,30d. 45,30e. none8.the demand for a commodity linearly decreases by 0.5 unit for each unit increase in price & it vanishes when the price is set at 60 . The supply of the commodity vanishes when the price is set at 25 & equals the square root of the price in excess of this threshold price. Then the equilibrium at which the supply coincides with the demand is:a. 45b. 50c. 55d. 62+/-3 under-root86e. none9. gre type column questions:area of triangle pqs is 45:PQ=12 P QR=20Col. A : length of segment PSCOL. B: Length of SRa. if A is greaterb. if B is greaterc. if both equald. d. can’t determined10.Col. A: (0.82)^2(0.82)^3Col. B: (0.82)^611. t is a positive integer4/7 = t/sCol. A: sCol. B: 712. Col. A 1-1/27Col. B: 8/9+1/8113…. 14. these types simple (-0.64)^4 & (-0.6)^315…16M/c A produces x units of output per hour, while m/c B produces x units of output every 1.5 hrs.17. How many hrs. does it take 2 produce x units of o/p , with both m/cs A &B working together??a. (4x +!)/4xb. 5/4c. 3/(5x)d. 3/518. 4 more m/cs are installed with their capacities lying betn those of m/cs A & B . Wchi of the following ca’t be the average no. opf hrs. per m/c for producing x units of output?a. 1.05b. 1.15c. 1.25d. 1.35Problem Solving (19-21)19. if 0<st<1 , then which of the following can be true?a. s<-1 & t>0b. s<-1 & t<-1c. s>-1& t<-1d. s>1 & t<-1e. s>1 & t>120. To reproduce an old photograph , a photographer charges x dollars to make negative , 3x/5 dollars for each of the first 10 prints, & x/5 dollars for each print in excess of 10 prints . If $45 is the total charge to make a negative & 20 prints from an old photograph, what is the value sof x?a. 3b. 3,5c. 4d. 4.5e. 521. A certain cake reciope states that the cake shud be baked ina pan 8 inches in diameter . If Jules want to make a cake of the same depth but 12 inches in diameter , by what factor shud he multiply the recipe ingredients?a. 2 & halfb. 2 & one-fourthc. 1 & halfd. 1 & 4/9e. 1 & a/3Data interpretation 22…28ANALYTICAL ABILITYA farmer plants only 5 diff. Vegetables-beans, corn, kale, peas& squash. Every year the farmer plants exactly 3 kinds of vegetables as follows:]If the farmer plants corn, the farmer also plants beans that year.If he plants kale 1 year, he does not plant it next yearIn any year, farmer plants no more than one of the vegetable the farmer planted in the previous year.29. Which of the following is possible combinations plant in 2 successive years?a. beans, corn, kale,; corn, peas, squashb. beans,corn,peas; beans,corn,squashc. beans, peas,squash; beans,corn.kaled. corn,peas, squash; beans,kale,pease. kale, peas, squash; beans, corn,kale30.if he plants beans, corn & kale in 1st year , which must be planted in 3rd year?a. beans, corn, kaleb. peas, corn & kalec. beans, kale , peasd. beans, peas, squashe. kale, peas , squashIn a game exactly 6 inverted cups stand side by side ina straight line & each exactly has 1 ball hidden under it. The cups are numbered consecutively 1 thro’ 6. Each of the balls is painted a single solid color. The colors of the balls are green, magenta, orange ,purple,red & yellow. The balls have been hidden under following conditions:The purple ball must be hidden under a lower-numbered cup than the original ball.The red ball must be hidden under a cup immediately adjacent 2 the cup under which the magenta ball is hiddenThe green ball must be hidden under cup 5.31. which of the following could be colors of balls from 1 to 6?a. green, yellow, magenta,red, purple, orangeb. magenta, green , purple, red, orange, yellowc. magenta, red , purple, yellow, green , oranged. orange, yellow. Red, magenta, green, purplee. red, purple, magenta, yellow, green, orange32. if red ball is under cup4 ? howmany sequences are possibl;ea. 0b. 1c. 2d. 3e. 433. which is true?a. green ball is under lower-numbered than the yellow ball.b. orange ball is under lower-numbered than the green ball.c. purple ball is under lower-numbered than the green ball.d. purple ball is under lower-numbered than the RED ball.e. Red ball is under a lower- numbered cup than the yellow ball34. If red & orange ball are kept 0ofadjacnet to each other, how many valid seqiuences sre possible?a. 1b. 2c. 3d. 4e. 535. If the magenta is bill is under cup, 1 balls of which ththf following colors must be under cops immedistely adjacent to each ather??a. gree & orange.b. Green & yellowc. Purple & tred d. Purple & yellowe. Red & yellowState the assumption 36…..3936.37. Karim is exactly twice as old as Rahim. Karim’s age 10 yrs. Ago was 2 times saleem’s present age.a. saleem is 5 yrs. Younger than rahimb. rahim is twice as old as saleemc. saleem is the same age as rahimd. saleem is 10 yrs. Younger than rahim38. X & Y are +ve integers. The sum of X&Y is less then their producta. atleast one of X & Y is not 1b. both X & Y are greater than 2c. neither takes value 1d. atleast one of X & Y is greater than 239. Logical Reasoning40. 41. He greatest chance for the existence of extraterrestrial life is on a planet beyond our solar system. This is b’coz the Milky Way galaxy alone contains 100 billion other suns, many of which could be accompanied by planets similar enough to make them suitable abodes of life.The argument above assumes which of following?a. living creatures on another planet would probably have the same appearance as those on earthb. life cannot exist on other planets in solar systemc. if the appropriate physical conditions exist, life is an inevitable consequenced. more than one of the suns in the galaxy is accompanied by an earth like planete. it is likely that life on another plane would require conditions similar to those on earth42.4344.a. if u get ans from I aloneb. if u get ans from II alonec. if u get ans from bothd. neither45….50I. Ram is 10 yrs. Older than shym , while laxman is half the age of shyam II. Bharat is 5 yrs. Younger than laxman , & shyam is 3 times older than bharat45. what is the age of ram46. age of laxman?47. when ram married sita , she was half his age . now sita’s age & shyam’s age add upto 50 yrs. Wwhat is sita’s age?48. ratio betn. Shyam’s age & bharat’s age49. ratio betn laxman & bhara ‘s age50. bharat’s wife radha married him 10 yrs before the present year. What is radha’s age? Provided by www.YuvaJobs.com - Grapcity Aptitude - General