0% found this document useful (0 votes)
605 views

Interview Questions (MCA-Students)

The document contains interview questions related to object-oriented programming concepts in C++ and Java, .NET framework, and database access using ADO.NET. Some key topics covered include OOP concepts like inheritance, polymorphism, and encapsulation; differences between classes and interfaces; exception handling; garbage collection; multithreading; and ADO.NET components for database access.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
605 views

Interview Questions (MCA-Students)

The document contains interview questions related to object-oriented programming concepts in C++ and Java, .NET framework, and database access using ADO.NET. Some key topics covered include OOP concepts like inheritance, polymorphism, and encapsulation; differences between classes and interfaces; exception handling; garbage collection; multithreading; and ADO.NET components for database access.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

Interview Questions (MCA-Students)

What is a container class? What is an orthogonal base class? What is a node class? Name some pure object oriented languages. What are proxy objects? What are the conditions that have to be met for a condition to be an invariant of the class? Define precondition and post-condition to a member function. What do you mean by Stack unwinding? What is class invariant? What is a Null object? What is an adaptor class or Wrapper class? Differentiate between the message and method. What is a dangling pointer? *i=0; int *i=0x400 // answer = ? What is an incomplete type? List out some of the object-oriented methodologies. List out some of the OODBMS available. What is an Iterator class? What is the use of ?using? declaration. Define namespace. When does a name clash occur? Differentiate between a template class and class template. What is an accessor? What is a modifier? How do you find out if a linked-list has an end? (i.e. the list is not a cycle) How do you write a function that can reverse a linked-list? Can a copy constructor accept an object of the same class as parameter, instead of reference of the object? What is a local class? Why can it be useful? hat is a nested class? Why can it be useful? What are the access privileges in C++? What is the default access level?

What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages? How do you access the static member of a class? What does extern "C" int func(int *, Foo) accomplish? What are the differences between a C++ struct and C++ class? Can you overload a function based only on whether a parameter is a value or a reference? Can you think of a situation where your program would crash without reaching the breakpoint which you set at the beginning of main()? What is Virtual Destructor? How can I handle a destructor that fails? How can I handle a constructor that fails? What is the difference between const char *myPointer and char *const myPointer? How are prefix and postfix versions of operator++() differentiated? What is the difference between a pointer and a reference? What is name mangling in C++?? What happens when you make call "delete this;" ?? What is "this" pointer? What is Overriding? What is overloading?? What is inline function?? What is a container class? What are the types of container classes? Name the operators that cannot be overloaded?? What do you mean by Stack unwinding? What is a dangling pointer? What is an Iterator class? What is the use of 'using' declaration? What problem does the namespace feature solve? What is Memory alignment?? What is pure virtual function? or what is abstract class? What is virtual function? When are temporary variables created by C++ compiler? When do use "const" reference arguments in function? What is reference ?? What are storage qualifiers in C++ ? What is the diff between "new" and "operator new" ? What is diff between malloc()/free() and new/delete? What is conversion operator?? What is conversion constructor?

What is assignment operator? What is copy constructor? and copy constructors called? What is default constructor? What is destructor? What is constructor or ctor? What is Polymorphism?? What is inheritance? What is encapsulation?? Java How to retrieve a key and Value from a map ? Why can an interface supertype call methods that belong to Object class? What is difference between shallow copy and deep copy ? Why to override equals() and hashCode()? and How i can implement both equals() and hashCode() for Set ? How to sort list of objects ( User Defined) using comparator? in Descending Order. How to sort list of objects ( User Defined) using comparator? What is the difference between int and Interger? Singleton Double-checked locking in Java? What are the parameters to follow Creating and Destroying Objects in Java? What are the different scopes for Java variables? What method must be implemented by all threads? Can an unreachable object become reachable again? What are the steps in the JDBC connection? How are this() and super() used with constructors? What is the difference between static and non-static variables? What is the purpose of finalization? Does garbage collection guarantee that a program will not run out of memory? What is synchronization and why is it important? What is daemon thread and which method is used to create the daemon thread? What are synchronized methods and synchronized statements? If I write System.exit (0); at the end of the try block, will the finally block still execute? If I write return at the end of the try block, will the finally block still execute? Is it necessary that each try block must be followed by a catch block?

What is the basic difference between the 2 approaches to exception handling. 1> try catch block and 2> specifying the candidate exceptions in the throws clause? When should you use which approach? What are the different ways to handle exceptions? What is the difference between error and an exception? What is wrapper class? Explain with example? What is serialization? Explain with example? What one should take care of while serializing the object? When you serialize an object, what happens to the object references included in the object? What happens to the static fields of a class during serialization? Objects are passed by value or by reference? Primitive data types are passed by reference or pass by value? What type of parameter passing does Java support? Can a top level class be private or protected? What is the default value of an object reference declared as an instance variable? What is the difference between declaring a variable and defining a variable? What are different types of inner classes? What is Overriding? What are Checked and UnChecked Exception? What is final? What is static in java? What is an abstract class? What are the modifiers in Java ? Difference between HashMap and HashTable? Difference between Vector and ArrayList? Difference between ArrayList and LinkedList? What are pass by reference and passby value in Java? When we go for Abstract and Interface in Java? What is the difference between interface and abstract class? What are the Garbage collection algorithms in Java? What is garbage collection and the purpose of garbage collection in Java? What is the difference between an Interface and an Abstract class? What is Microsoft ADO.NET? What are the Benefits of ADO.Net? Explain different connection objects used in ADO.NET?

What are the different steps to access a database through ADO.NET? What is the difference between Data Reader and Data Adapter? What is the difference between Execute Reader, Execute Scalar and Execute Non Query methods? Explain the .NET architecture How is .NET able to support multiple languages? How many languages .NET is supporting now? How ASP .NET different from ASP? What is view state? Explain the life cycle of an ASP .NET page. Can the validation be done in the server side What is ADO .NET and what is difference between ADO and ADO.NET?

You might also like