Pages

Ads 468x60px

Showing posts with label placement papers. Show all posts
Showing posts with label placement papers. Show all posts

Monday, November 17, 2008

c++ quesfor placement / aptitude / interview/assessment/multiple choice/career/campus

c++ questions for placement / aptitude / interview/assessment/multiple choice/career/campus




* What is a container class? view answer
* What is an orthogonal base class? view answer
* What is a node class? view answer
* Name some pure object oriented languages. view answer
* What are proxy objects? view answer
* What are the conditions that have to be met for a condition to be an invariant of the class? view answer
* Define precondition and post-condition to a member function. view answer
* What do you mean by Stack unwinding? view answer
* What is class invariant? view answer
* What is a Null object? view answer
* What is an adaptor class or Wrapper class? view answer
* Differentiate between the message and method. view answer
* What is a dangling pointer? view answer
* *i=0; view answer
* int *i=0x400 // answer = ? view answer
* What is an incomplete type? view answer
* List out some of the object-oriented methodologies. view answer
* List out some of the OODBMS available. view answer
* What is an Iterator class? view answer
* What is the use of ?using? declaration. view answer
* Define namespace. view answer
* When does a name clash occur? view answer
* Differentiate between a template class and class template. view answer
* What is an accessor? view answer
* What is a modifier? view answer
* How do you find out if a linked-list has an end? (i.e. the list is not a cycle) view answer
* How do you write a function that can reverse a linked-list? view answer
* Can a copy constructor accept an object of the same class as parameter, instead of reference of the object? view answer
* What is a local class? Why can it be useful? view answer
* hat is a nested class? Why can it be useful? view answer
* What are the access privileges in C++? What is the default access level? view answer
* What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages? view answer
* How do you access the static member of a class? view answer
* What does extern "C" int func(int *, Foo) accomplish? view answer
* What are the differences between a C++ struct and C++ class? view answer
* Can you overload a function based only on whether a parameter is a value or a reference? view answer
* Can you think of a situation where your program would crash without reaching the breakpoint which you set at the beginning of main()? view answer
* What is Virtual Destructor? view answer
* How can I handle a destructor that fails? view answer
* How can I handle a constructor that fails? view answer
* What is the difference between const char *myPointer and char *const myPointer? view answer
* How are prefix and postfix versions of operator++() differentiated? view answer
* What is the difference between a pointer and a reference? view answer
* What is name mangling in C++?? view answer
* What happens when you make call "delete this;" ?? view answer
* What is "this" pointer? view answer
* What is Overriding? view answer
* What is overloading?? view answer
* What is inline function?? view answer
* What is a container class? What are the types of container classes? view answer
* Name the operators that cannot be overloaded?? view answer
* What do you mean by Stack unwinding? view answer
* What is a dangling pointer? view answer
* What is an Iterator class? view answer
* What is the use of 'using' declaration? view answer
* What problem does the namespace feature solve? view answer
* What is Memory alignment?? view answer
* What is pure virtual function? or what is abstract class? view answer
* What is virtual function? view answer
* When are temporary variables created by C++ compiler? view answer
* When do use "const" reference arguments in function? view answer
* What is reference ?? view answer
* What are storage qualifiers in C++ ? view answer
* What is the diff between "new" and "operator new" ? view answer
* What is diff between malloc()/free() and new/delete? view answer
* What is conversion operator?? view answer
* What is conversion constructor? view answer
* What is assignment operator? view answer
* What is copy constructor? and copy constructors called? view answer
* What is default constructor? view answer
* What is destructor? view answer
* What is constructor or ctor? view answer
* What is Polymorphism?? view answer
* What is inheritance? view answer
* What is encapsulation?? view answer

C++ questions for placement / aptitude / interview/assessment/multiple choice/career/campus

Some good C++ questions to ask a job applicant.

1. How do you decide which integer type to use?
2. What should the 64-bit integer type on new, 64-bit machines be?
3. What’s the best way to declare and define global variables?
4. What does extern mean in a function declaration?
5. What’s the auto keyword good for?
6. I can’t seem to define a linked list node which contains a pointer to itself.
7. How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
8. How can I declare a function that returns a pointer to a function of its own type?
9. My compiler is complaining about an invalid redeclaration of a function, but I only define it once and call it once. What’s happening?
10. What can I safely assume about the initial values of variables which are not explicitly initialized?
11. Why can’t I initialize a local array with a string?
12. What is the difference between char a[] = “string”; and char *p = “string”; ?
13. How do I initialize a pointer to a function?

SQL - Question for placement / aptitude / interview/assessment/multiple choice/career/campus

SQL - Question
1. Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
Data Definition Language (DDL)

2. What operator performs pattern matching?
LIKE operator

3. What operator tests column for the absence of data?
IS NULL operator

4. Which command executes the contents of a specified file?
START or @

5. What is the parameter substitution symbol used with INSERT INTO command?
&

6. Which command displays the SQL command in the SQL buffer, and then executes it?
RUN

7. What are the wildcards used for pattern matching?
_ for single character substitution and % for multi-character substitution

8. State true or false. EXISTS, SOME, ANY are operators in SQL.
True

9. State true or false. !=, <>, ^= all denote the same operation.
True

10. What are the privileges that can be granted on a table by a user to others?
Insert, update, delete, select, references, index, execute, alter, all

11. What command is used to get back the privileges offered by the GRANT command?
REVOKE

12. Which system tables contain information on privileges granted and privileges obtained?
USER_TAB_PRIVS_MADE, USER_TAB_PRIVS_RECD

13. Which system table contains information on constraints on all the tables created?
USER_CONSTRAINTS

14. TRUNCATE TABLE EMP;
DELETE FROM EMP;
Will the outputs of the above two commands differ?
Both will result in deleting all the rows in the table EMP.

15. What is the difference between TRUNCATE and DELETE commands?
TRUNCATE is a DDL command whereas DELETE is a DML command. Hence DELETE operation can be rolled back, but TRUNCATE operation cannot be rolled back. WHERE clause can be used with DELETE and not with TRUNCATE.