2011 GrapeCity PIacement Paper - I with Answers and soIutions:1. When shud apointer p be a reference parameter? 2. When fn. Changes p, and u do not want the change to affect actual pointer argument 3. When should u use a const reference parameter? 4. 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
2011 GrapeCity PIacement Paper - I with Answers and soIutions:1. When shud apointer p be a reference parameter? 2. When fn. Changes p, and u do not want the change to affect actual pointer argument 3. When should u use a const reference parameter? 4. 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
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online from Scribd
2011 GrapeCity PIacement Paper - I with Answers and soIutions:1. When shud apointer p be a reference parameter? 2. When fn. Changes p, and u do not want the change to affect actual pointer argument 3. When should u use a const reference parameter? 4. 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
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online from Scribd
2011 GrapeCity PIacement Paper - I with Answers and SoIutions:-
1. when shud apointer p be a reference parameter?
A. when fn. Changes p, & u want the change to affect actual pointer argument B. when fn. Changes p, & u do not want the change to affect actual pointer argument C. when fn. Changes *p, & u want the change to affect actual pointer argument D.when fn. Changes *p, & u do not want the change to affect actual pointer argument E.when pointer points to large object
2. output?
nt y=1; nt k=2; nt *p1; nt *p2; P1=&y; P2=&k; p1=p2; *p1=3 *p2=4; printf("%d,y);
3.when should u use a const reference parameter ?
A. whenever the data type might be many bytes B. whenever the data type might be many bytes, the fn. Changes the papramter within its body, & u do not want these changes to alter the actual argument C. whenever the data type might be many bytes, the fn. Changes the papramter within its body, & u DO want these changes to alter the actual argument
4. 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. none
5. 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. none
6. f 18 men can build a wall 140 mtrs. n 42 days . n 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. none
7. Successive discounts of 15% & 20% on any goods amount to a total discount of :
a. 50 % b. 35% c. 34% d.32 % e. none
8. n a km race A beats B by 40 m or 7 secs. A's time (in secs) over the Source is:
A.180
B.280
C.168
D.175
E. none
9. Which of the following is possible combinations plant in 2 successive years?
a. beans, corn, kale,; corn, peas, squash
b. beans,corn,peas; beans,corn,squash
c. beans, peas,squash; beans,corn.kale
d. corn,peas, squash; beans,kale,peas
e. kale, peas, squash; beans, corn,kale
10. if he plants beans, corn & kale in 1st year , which must be planted in 3rd year?
a. beans, corn, kale
b. peas, corn & kale
c. beans, kale , peas
d. beans, peas, squash
e. kale, peas , squash printf("count=%d\n",count); }
a. 15 b. 6 c. 12 d. compiler error answer: b ( note : strlen(p1) == i when i=6)
11. what does main return on successful execution?
a. 1 b. 0 c. -1 d.Nonzero
answer:b
12. main(int argc,char *argv[]) { printf((argc > 1 ? "%c" : "%c",*++argv); } f the i/p string is "GESL Bangalore". a. G b. E c. B d. GESL
answer: c
13. How do u declare a pointer to an array of pointers to int?
a. int *a[5]; b. int **a[5]; c. int *(*a)[5]; d. u con not declare
answer: c
14.UDP is a a. Reliable protocol b. Unreliable protocol c. Connectionless protocol d. Both b & c
Answer: d
15. Real Time OS uses a. RSC processor b. CSC processor c. SSC processor d. Any of the above
Answer: a
16. Race condition could be overcome using
a. A global variable b. A local variable c. Mutex d. All of the above
17. Repeaters are in
a. Data link layer b. Physical layer c. Network layer d. Transport layer
Answer: b
18. Telecom Networking uses
a. Packet switching b. Circuit switching c. Message switching d. Non of the above
Ans : b ( normally )
19. if 0<1 , then which of the following can be true?
a. s<-1 & t>0
b. s<-1 & t<-1
c. s>-1& t<-1
d. s>1 & t<-1
e. s>1 & t>1
20. 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 . f $45 is the total charge to make a negative & 20 prints from an old photograph, what is the value sof x?
a. 3
b. 3,5
c. 4
d. 4.5
e. 5
Category % SubCategory Placement Papers ocation 4/a - Delh# Company rapety About GrapeCity:-
GrapeCity has been in the software business for over 25 years. Our corporate headquarters are located in Sendai, Japan, with operations spanning throughout the United States and Asia. As a privately held corporation, we are consistently profitable, employing more than 800 employees worldwide.
GrapeCity has been part of the Microsoft Early Adopter Partnership since the early 1980s and we are both a Microsoft Gold Certified Partner and a Preferred Solution Provider. Our close relationship with Microsoft gives us the experience and insight to fully leverage Microsoft's .NET and Office frameworks in order to create optimal solutions for our clients-solutions that are cutting edge, highly reliable, and maintainable.
GrapeCity has a global customer base with multinational brand names, which means you have local reference customers wherever you are located. Our global clients list includes industry leaders such as Microsoft, Accenture, Sony, Procter & Gamble, ntel, Mitsubishi, AT&T and Johnson & Johnson.
n a game exactly 6 inverted cups stand side by side in a 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 hidden
The green ball must be hidden under cup 5.
1. which of the following could be colors of balls from 1 to 6?
green, yellow, magenta, red, purple, orange
magenta, green , purple, red, orange, yellow
magenta, red , purple, yellow, green , orange
orange, yellow. Red, magenta, green, purple
red, purple, magenta, yellow, green, orange
2. if red ball is under cup4 ? how many sequences are possible
a. 0
b. 1
c. 2
d. 3
e. 4
3. 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 ball
4. f red & orange ball are kept 0ofadjacnet to each other, how many valid sequences are possible?
a. 1
b. 2
c. 3
d. 4
e. 5
5. f the magenta is bill is under cup, 1 balls of which of them following colors must be under cops immediately adjacent to each other??
a. gree & orange.
b. Green & yellow
c. Purple & tred
d. Purple & yellow
e. Red & yellow
6. X & Y are +ve integers. The sum of X&Y is less then their product
a. at least one of X & Y is not 1
b. both X & Y are greater than 2
c. neither takes value 1
d. at least one of X & Y is greater than 2
ogicaI Reasoning
7. He greatest chance for the existence of extraterrestrial life is on a planet beyond our solar system. This is bcoz 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 earth
b. life cannot exist on other planets in solar system
c. if the appropriate physical conditions exist, life is an inevitable consequence
d. more than one of the suns in the galaxy is accompanied by an earth like planet
e. it is likely that life on another plane would require conditions similar to those on earth
"&STION (AG
. Ram is 10 yrs. Older than shym , while laxman is half the age of shyam
. Bharat is 5 yrs. Younger than laxman , & shyam is 3 times older than bharat
8. what is the age of ram
9.. age of laxman?
10. 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?
11. ratio between. Shayam's age & bharat's age
12. ratio betn laxman & bhara 's age
13. bharat's wife radha married him 10 yrs before the present year. What is radha's age?
14.s it possible for a member function of a class to activate another member function of the same class?
A. no B. yes, but only public member functions. C. Yes, only private member functions D. Yes, both public & private member functions can be activated
15. Can 2 classes contain member functions with the same name?
a. no b. yes, but only if the 2 classes have the same name c. yes, but only if the main program does not declare both kinds d. yes, this is always allowed
16.what is the purpose of template functions?
a. to allow a single function to be used with varying types of arguments b. to hide the same name of the function from the linker c. to implement container classes d. to permit the use of the debugger without the gstabs flag
17.what kind of functions can access private member variables of a class
a. friend function of a class b. private member functions of the class c. public member functions of the class e. all of the above f. none
18. what technique is used to step thro' items of a container class?
a. copy constructor b. default constructor c. iterator (ans)
19. what is the term used to describe the situation when a derived class provides a function already provided in the base class ?
a. inheriting b. overriding c. abstraction d. none
20. what r the characteristics of object, in general
a. it has name, properties b. name, properties, behavior c. it can act on receiving a message d. a &c e. b&c
21. bundling data members together with the functions is called
a. data hiding b. encapsulation (ans) c. data morphism d. data binding
22.why is object oriented programming useful?
a. t supports good s/w engg. Practices b. t promotes thinking about s/w in a way that models the way we think & interact naturally c. Supports code reuse
A &b A,b & c
23. suppose u want 2 develop 2 diff, + operators that calculate & return an object of the same class. Which stmt is correct?
a. 1 operator must be a friend & the other must not b. 1 operator must be public & the other private c. operators must have different parameter lists d. it is not possible 2 have 2 different + operators
24.what is inheritance?
a. a relationship in which the structure & functionality of a class ("child ) is defined in terms of the structure & functionality of another(parent) b. a relationship in which the structure & functionality of a class ("parent ) is defined in terms of the structure & functionality of another("child) c. a relationship in which the structure & functionality of a class make calls 2 functionalty of another d. a relationship in which the structure of a class includes 1 or more instances of another e. all of above
25. what is relationship between . a class & its public parent class
a. ".is a.. b. "has a c. "is implemented as a .. d. uses a e. becomes a
26. how does inheritance relate 2 abstraction?
A . a base class is an abstraction of all its derived classes b. a derived class is an abstraction of all its base classes d. Base & derived classes are abstractions for each other e. nheritance prevents abstraction f. No relationship between them
27. why can't compiler "hard-code direct calls to virtual functions?
a. b'coz hard coding the fn. Call wud slow compilation of the program too much b. b'coz hard coding the fn. Call wud slow execution of the program too much c. b'coz the correct fn. To call generally isn't know at compile time d. b'coz virtual fns are always at compile-time so no run-time code is needed at all. e. Compiler does hard-code direct calls 2 virtual functions.
DBMS
28. ndexing must be applied on fields that are
a. seldom referenced in query b. containing few unique columns c. on frequently searched columns d. changed frequently
29. The relational data model includes several types of data integrity .which type of data integrity is ensured by the use of a primary key?
a. entity integrity b. domain integrity c. referential integrity d. relational integrity
30. A student has 3 diff. Teachers . Each of these teachers has several students. Which type of relationship in relation model would effective represent this?
a. 3 one-to-many relationships b. two many-to-one relationships c. a single many-to many relationships d. at least 2 many-to-many relationships
31. which of the following properties are required of a column or column sets for the column to function as a primary key?
a. no nulls b. a clustered index c. a non-clustered index d. ther must be atleast 1 foreign key on tha same table.
32. select a.pk, fn, b.zip, c.city from a, b, c where a.pk=b.pk tables a,b,&c each contain 100 rows & the primary key for tables a & b is pk. What is the maximum. No. of rows that could be returned by query
100 0 100,000 10,000 1,000,000
33. which of the following is only used with a foreign key constraint ?
a . primary key constraint b. the references clause c. a check constraint 9. which is used to return the no. of rows in a table?
a. sel;ect all count from tablename b. select count(*) from tablename
1. The first round is an aptitude paper 30 questions in 30 minutes: The paper is one of its kind that i have ever seen. t consists of everything. The questions are divided into 4 classes namely A, B, C and D.
The D level questions are the simplest and will fetch u only one mark while the A level questions are very lengthy and conceptual, however will fetch u the maximum number of marks i.e four. The D level questions are very very simple, as simple as look and answer. Ch eta naS For example: 4 pictures are given and looking at them u have to answer which once is different from the rest of the 3. Another simple question of this type is the one in which there is a pool of figures such as pentagon, hexagon, rectangle and square and below this pool value of each figure is written. U have to calculate the value of the pool by counting the no of figures and replacing them with there values.
The C level questions are from R.S Agg, simple questions based on percentage, profit lose, time and work and number problems basically there to check ur ability to deal with quantitative problems. suggest u to go through the solved examples of R.S Agg and practice some questions based on the same.
The A and B level questions are based on Logical Reasoning where the Level B questions are simpler than the level A questions. could hardly solve any A level question. You need to solve atleast 15 questions to seek ur chances of getting to the next round.
2. The second round is an HR interview: ts a general HR interview in which u could be asked simple HR questions based on ur resume, some situational based questions like design a mobile phone for deaf and dumb, some basic technical questions. You cannot get eliminated from this round unless u can't speak english.
3. Third round is another HR/ Basic TechnicaI Round: You would be interview by a Japanese HR, they would judge ur basic technical skills, discuss ur projects. felt if this round was just to make sure that ur profile matches the profile that u have been called for.
4. Fourth Round/ Core TechnicaI round: This was a core technical round which revolved around all the technical stuff that u could possibly dream of. U could be asked to design a module and then implement it on the computer. Mind u they not only check ur basics but penetrate to the insights of the topics aswell. They may also ask u puzzles to check how logically strong u are.
5. Fifth Round/ TechnicaI + HR: The last round here is the technical cum HR round. Here in the HR was an old japanese person who finally asks u any thing and everything of technical and HR, they won't be satisfied if u can make the program but they would be satisfied if u can make an optimized program. U don't have to be the master of the trade but one with very very good logical skills. They want you to do things quick and smart and that too in a compact manner. A simple program of ( if else ) in C can also be written through ( ? : ), use the latter option because it makes the size of the program small and thats what they love.http://www.ChetanaSinterview.com
Once u are through all the rounds u would be offered a package which can smartly be negotiated.
(Puper SubmILLed By : Turun Aroru)
AnaIyticaI AbiIity In a game exactIy 6 inverted cups stand side by side in a straight Iine & each exactIy has 1 baII hidden under it. The cups are numbered consecutiveIy 1 thro' 6. ach of the baIIs is painted a singIe soIid coIor. The coIors of the baIIs are green, magenta, orange ,purpIe, red & yeIIow. The baIIs have been hidden under foIIowing conditions:
The purpIe baII must be hidden under a Iower-numbered cup than the originaI baII.
The red baII must be hidden under a cup immediateIy adjacent 2 the cup under which the magenta baII is hidden
The green baII must be hidden under cup 5.
1. which of the foIIowing couId be coIors of baIIs from 1 to 6?
green, yellow, magenta, red, purple, orange
magenta, green , purple, red, orange, yellow
magenta, red , purple, yellow, green , orange
orange, yellow. Red, magenta, green, purple
red, purple, magenta, yellow, green, orange
2. if red baII is under cup4 ? how many sequences are possibIe
a. 0
b. 1
c. 2
d. 3
e. 4
3. 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 ball
4. If red & orange baII are kept 0ofadjacnet to each other, how many vaIid sequences are possibIe?
a. 1
b. 2
c. 3
d. 4
e. 5
5. If the magenta is biII is under cup, 1 baIIs of which of them foIIowing coIors must be under cops immediateIy adjacent to each other??
a. gree & orange.
b. Green & yellow
c. Purple & tred
d. Purple & yellow
e. Red & yellow
6. X & Y are +ve integers. The sum of X&Y is Iess then their product
a. at least one of X & Y is not 1
b. both X & Y are greater than 2
c. neither takes value 1
d. at least one of X & Y is greater than 2
ogicaI Reasoning
41. He greatest chance for the existence of extraterrestriaI Iife is on a pIanet beyond our soIar system. This is bcoz the MiIky Way gaIaxy aIone contains 100 biIIion other suns, many of which couId be accompanied by pIanets simiIar enough to make them suitabIe abodes of Iife.
The argument above assumes which of following?
a. living creatures on another planet would probably have the same appearance as those on earth
b. life cannot exist on other planets in solar system
c. if the appropriate physical conditions exist, life is an inevitable consequence
d. more than one of the suns in the galaxy is accompanied by an earth like planet
e. it is likely that life on another plane would require conditions similar to those on earth
"&STION (AG
I. Ram is 10 yrs. OIder than shym , whiIe Iaxman is haIf the age of shyam
II. Bharat is 5 yrs. Younger than Iaxman , & shyam is 3 times oIder than bharat
1. what is the age of ram
2. age of laxman?
3. 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?
4. ratio between. Shayam's age & bharat's age
5. ratio betn laxman & bhara 's age
6. bharat's wife radha married him 10 yrs before the present year. What is radha's age?