Saturday

Grapecity Placement Paper

OOPS
1.Is 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

2. 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

3.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 classe
d. to permit the use of the debugger without the –gstabs flag

4.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

5. what technique is used to step thro' items of a container class?
a. copy constructor
b. default constructor
c. iterator (ans)

6. what is the term used to describe the situation when a derived class provides a function already provided in the base class ?
a. inheritning
b. overriding
c. abstraction
d. none

7. what r the characteristics of object, in general
a. it has name, properties
b. name, properties, behaviour
c. it can act on receiving a message
d. a &c
e. b&c

8. bundling data members together with the functions is called
a. data hiding
b. encapsulation (ans)
c. data morphism
d. data binding

9.why is OO programming useful?
a. It supports good s/w engg. Practices
b. It promotes thinking abt s/w in a way that models the way we think & interact naturally
c. Supports code reuse
d. A &b
e. A,b & c

10. suppose tu 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 frnd & 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

11.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

12. what is relationship betn . a class & its public parent class
a. ".is a…."
b. "has a"
c. "is implemented as a ……"
d. uses a
e. becomes a

13. 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. Inheritance prevents abstration
f. No relationship betn them

14. 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.

15. what is accessibility of a protected member of a base class which is inherited privately?

a. private: b'coz the private inheritance makes everything frm the base class private in the derived class (ans)

Global Soft Placement Paper

Section I – Apptitude

(All 30 Question Mathematical all very easy nothing to be mentioned as such)
Some of the questions are (not in order>

1.8(pow)(3/2) +2(pow)(-1/2)
ans 24

2. sin 60

3. cos theta=5/13 find tan theta

4. select the odd man out.
a. 248 b.326 c.428 d.392
ans d

5. a question was there twice- the question is
1/[(1/0.3)+(1/0.2)]
6. angle of elevation of a tower(30 degree) was given and its distance from a pt. was given.find the height of the tower

7. question no. 16 some log ques ans is b=2a

8. a question based on [(a sqr –b sqr)/(a-b)] ans is 1.0

II Section 30 Analytical reasoning

One question
Five City Names Given
KANPUR
JAIPUR
MUMBAI
SHIMLA
BHOPAL

And then to find code for one Letter in every city name.(This was tough – 5 questions based on it)

Ans: Take Two city at a time ..who have the asked Letter in their name
And then you will get the answer by seeing the common answer choice..

CAT type reasoning..

Section III

English ..
Sentence completion..correction..etc. all Infy type..or GRE type..(easy ones)

Have a look at these words

1.Squander
2.Innative
3.Obscure
Rest were easy..

Section 4:General knowledge

1.Who invented TV.?
Ans Baird

2. Chadwick invented what?
Ans neutron

3.Dr. Khurana did?
Ans.Genetic code

4.Grammy award winner is who?
a.Vishwa mohan bhatt b.Harishankar chaurasia. C.Zakir hussain.. d.amjad ali khan.
Ans c(not sure)

5. Y-rays are?

6.Who designed Chandigarh?
Ans a(not very sure)

7. The property of metal sheets to be beaten into thin sheets
ans. Malleability

8. A metal is placed inside a pressure cooker.It's pressure increases.Why?
a. air tight
b. High density of metal
c. No effect

9. who invented logerthim
ans napier

10. Dos----some thing
ans Microsoft
11. Suger is store in plant in which form
ans Glucose
12major component of gober gas
ans methane
13 green house effect
ans co2
14 carborator is used in car w----
a.water to petrol
b.air to petrol
c—
d---
15 why men bent forword on mounting a hight
ans to gain stability
16. which disease is transferred genetically
ans.aids
17why man become old
a. Thymus
b. Pituitary
c. Thyroid
d. Hypothyroid

Global Edge Placement Paper

1. What is the output of the following code ?

int main( )
{
for( ; ;);
printf("Hello\n");
return 0;
}

a. give compilation error
b. prints Hello infinite times
c. Runs in an infinite loop without printing anything.
d. prints Hello once.

Ans: c

2. Output of the code?
FUNC (int *p)
{
p = (int *)malloc(100);
printf("p:%x",p);
}

int main( )
{
int *ptr;
FUNC(ptr);
printf("Ptr:%x",ptr);
return 0;
}

a. Both printf statements prints same values.
b. Both print different values.
c. Gives compile time error.
d. Gives run time error.

Ans: b

3. Output of the code?
int main()
{
char a[] = "world";
printf("%d %d\n",strlen(a),sizeof(a));
return 0;
}

a. 5,5
b. 6,5
c. 5,6
d. 6,6

Ans: c

4. What is the output generated?

main()
{
char *s = "Hello";
printf("%s",1(s));
}

a. Hello
b. ello
c. e
d. none of these.

Ans: b

5. Interpret the given declaration

char ( * ( f ( ) ) [ ] )( )

a. f is a pointer to function returning char
b. f is a pointer to an array of function returning a char
c. Invalid declaration
d. f is a function returning pointer to array[] of pointer to function returning char.

Ans : d

1. A binary tree of height h, h > 0 has

a. at least h and atmost 2*h-1 elements in it.
b. at least 2^h and atmost (2^h)+1 elementz in it.
c. at least 2^h -1 and atmost h^2 elements in it.
d. at least h and atmost (2^h) - 1 elements in it.

Ans: d

2. Thrashing is

a. flooding of pages in the memory.
b. increase in removal of pages from memory.
c. increase in page faults leading to decrease in CPU utilization.
d. removal of unused pages from memory making space for new ones.

Ans: c

3. Recursive Descent parser is a type of

a. Bottom up parser.
b. Top Down parser.
c. None of these.
d. Bottom down parser.

Ans: b

4. alloca() allocates memory from

a. Heap.
b. Reserved memory.
c. Data segment.
d. Stack.

Ans: d

5. What is the octal equivalent of decimal (5468).

a. 12360.
b. 12560.
c. None of these.
d. 12650.

Ans : c

Geometric Placement Paper

Section 1- Aptitude Section

Directions for questions 1-3: Complete the sequence given below :

1. 5, 5, 13, 13, 21, 21, __

Ans: 29

2. 0, 7, 26, 63, 124, __

Ans: 215 (hint: n3-1 )

3. 1, 3, 5, 7, __

Ans: 9

4. If a person walks at 4/5th of his usual speed he reaches 40min late. If he walks at his usual speed for how much time does he travel ?

5. Two trains A&B start at opposite points 120km apart at 60kmph. A fly starting along with train A at 120kmph reaches B then returns back to touch A and continues the two and fro movement. By the time two trains meet how much distance would the fly have traveled?

6. In a class 80% have passed in English, 70% passed Hindi, 10% didn't pass either. If 144 students passed both the subjects. What is the total strength of the class?


7. Find the least number which when divided by 7 gives the reminder 6, when divided by 6 gives reminder 5, when divided by 5 gives reminder 4 and so on ?


8. If a man stands in front of sun what is the first letter of the direction which is left to him ?


9. (a)A square is to circle as cube is to
(b)Success is to failure as joy is to


10. (a)Give the synonyms of the following words
(i) Joy
(ii) Inert
(iii) Jolly

(b) Give the opposites of the following words
(i) genuine
(ii) command
(iii) essential

11.Find the odd man out in the following sets
(i) Tiger, Elephant, King Cobra, Dolphin
(ii) Oasis, Lake, Pool, Valcano
(iii) Bengali, Karnataka, Mumbai, Kashmir
(iv) Lapidary, Lancet, Scapel, Surgeon
(v) Requiem, Dirge, Elegy, Paean

12. I bought a cycle 2days before my birthday and I broke it 3 days after my birthday. The day I broke it is Mar2,1956?

Directions: The following questions are to be answered on the basis of the above given statement

i) When is my birthday?
Hint: Keep in mind that 1956 was a leap year.
(ii) What is my age on Mar 4th, 1980?
(iii) My nephew is born exactly 20years after me. If I turned 20 in 1960, what is the nephews age on Feb 28th 1988 ?


13. Monday Aug25, 96 :
Hostess: "Mr A, you forgot your umbrella during the party on last friday. I expected you to collect it on your visit on wednesday as I plan to leave on this Friday."

Directions: The following questions are to be answered on the basis of the above given statement.

(i) when A missed umbrella?
(ii)When A is supposed to collect it?
(iii)When K leaves?

14.What is my father's sons son to my son?

Ans. Cousin brother

15. On cutting a solid parabola what would be generated

Ans: Cone

Gda Placement Paper

There will be hardware/software sections from which u can choose either.

s/w :
no of Qs-- 50
apps(very simple questions mostly from R.S.Agarwal )---------5
computer networks(basically from 7-layers)---5
basic electronics(digital ckts/ADC etc)----5
C(mostly from "test ur c skills/exploring c" -yashwant kanitkar) ---35

h/w:
no of Qs--50
digital circuits,simple electronics- 40(roughly)
C - 5
apps --5