Grapecity Placement Papers
Grapecity HR Interview Questions 02 Jan 2012
Grapecity Technical Questions set 3
Grapecity Verbal Ability paper
Grapecity Reasoning Ability
Grapecity Aptitude Questions set 2
Grapecity Numerical Ability paper
Grapecity Technical paper
Grapecity Technical Questions
L & T Infotech
IBS Software Services
Placement Papers for All Companies
Amiti Software Technologies
Ashok Leyland Ltd
AT & T
AXA Technology Services
Bharti Airtel Ltd
Blue Star Infotech
Citicorp Overseas Software Ltd
CtrlS Datacenters Ltd
Ernst & Young
Harita - TVS
HTC Global Services
IBS Software Services
IndiaBulls Power Limited
Jindal Steel and Power Limited
L & T
L & T Infotech
Linde India Ltd
Lucas - TVS
Mahindra Engineering Services Ltd
Poornam Info Vision
PSI Data Systems Limited
SAP labs India
Sutherland Global Services
UTC Aerospace System
Grapecity OOPS,C,C++ Paper
Posted on :19-03-2016
PAPER: GRAPE CITY PLACEMENT PAPER (TECHNICAL-OOPS, C, C++ DBMS)
Q1. Is it possible for a member function of a class to activate another member function of the same class?
A. noB. yes, but only public member functions.C. Yes, only private member functionsD. Yes, both public & private member functions can be activated
Q2. Can 2 classes contain member functions with the same name?
a. nob. yes, but only if the 2 classes have the same namec. yes, but only if the main program does not declare both kindsd. yes, this is always allowed
Q3. What is the purpose of template functions?
a. to allow a single function to be used with varying types of argumentsb. to hide the same name of the function from the linkerc. to implement container classesd. to permit the use of the debugger without the "gstabs flag
Q4. What kind of functions can access private member variables of a class
a. friend function of a classb. private member functions of the classc. public member functions of the classe. all of the abovef. none
Q5. What technique is used to step thro items of a container class?
a. copy constructorb. default constructorc. iterator (ans)
Q6. What is the term used to describe the situation when a derived class provides a function already provided in the base class ?
a. inheritingb. overridingc. abstractiond. none
Q7. What are the characteristics of object, in general
a. it has name, propertiesb. name, properties, behaviorc. it can act on receiving a messaged. a &ce. b&c
Q8. Bundling data members together with the functions is called
a. data hidingb. encapsulation (ans)c. data morphismd. data binding
Q9. Why is object oriented programming useful?
a. It supports good s/w engg. Practicesb. It promotes thinking about s/w in a way that models the way we think & interact naturallyc. Supports code reuse
A &bA,b & c
Q10. 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 notb. 1 operator must be public & the other privatec. operators must have different parameter listsd. it is not possible 2 have 2 different + operators
Q11. 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 anotherd. a relationship in which the structure of a class includes 1 or more instances of anothere. all of above
Q12. What is relationship between . a class & its public parent class
a. ".is a.b. "has ac. "is implemented as a d. uses ae. becomes a
Q13. How does inheritance relate 2 abstraction?
a. a base class is an abstraction of all its derived classesb. a derived class is an abstraction of all its base classesd. Base & derived classes are abstractions for each othere. Inheritance prevents abstractionf. No relationship between them
Q14. Why cant compiler "hard-code direct calls to virtual functions?
a. Because hard "coding the function. Call would slow compilation of the program too muchb. Because hard "coding the function. Call would slow execution of the program too muchc. Because the correct function. To call generally isnt know at compile "timed. Because virtual functions are always at compile-time so no run-time code is needed at all.e. Compiler does hard-code direct calls 2 virtual functions.
Q15. What is accessibility of a protected member of a base class which is inherited privately?
Q1. Indexing must be applied on fields that are
a. seldom referenced in query
b. containing few unique columnsc. on frequently searched columnsd. changed frequently
Q2. 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 integrityb. domain integrityc. referential integrityd. relational integrity
Q3. A student has 3 different Teachers . Each of these teachers has several students. Which type of relationship in relation model would effective represent this?
a. 3 one-to-many relationshipsb. two many-to-one relationshipsc. a single many-to "many relationshipsd. at least 2 many-to-many relationships
Q4. which of the following properties are required of a column or column sets for the column to function as a primary key?
a. no nullsb. a clustered indexc. a non-clustered indexd. ther must be atleast 1 foreign key on tha same table.
Q5. 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
Q8. Which of the following is only used with a foreign key constraint ?
a . primary key constraintb. the references clausec. a check constraint
Q9. Which is used to return the no. of rows in a table?
a. select all count from tablenameb. select count(*) from tablenamec. select numrows from table name
Q10. When writing sql queries , how do u control the query execution plan used by the databases
a. query directly against an idex instead of tableb. define a static cursor & specify the "using specific index keywordc. most databases provide propreitory methods to give database hintd. enclose quey in atransaction & add a statement using the "set search keyword
Q10. Which is not allowed in a trigger
a. updateb. select intoc. whiled. begin
Q11. Select type, avg(price), min(price) from product group by category, what is wrong?
Q1. When should appointer p be a reference parameter?
A. When function Changes p, & u want the change to affect actual pointer argumentB. When function Changes p, & u do not want the change to affect actual pointer argumentC. When function Changes *p, & u want the change to affect actual pointer argumentD.When function Changes *p, & u do not want the change to affect actual pointer argumentE.when pointer points to large object
Int y=1;Int k=2;Int *p1;Int *p2;P1=&y;P2=&k;p1=p2;*p1=3*p2=4;printf("%d,y);
Q3. When should you use a const reference parameter ?
A. whenever the data type might be many bytesB. whenever the data type might be many bytes, the function Changes the paramter within its body, & u do not want these changes to alter the actual argumentC. whenever the data type might be many bytes, the function Changes the paramter within its body, & u DO want these changes to alter the actual argument