Vous êtes sur la page 1sur 2

What is the difference between runtime error and syntax error? 2 . W h a t i s purpose of header file?3 . W h y m a i n ( ) i s s p e c i a l ? 4.

What is the difference between #define and const?5.What are preprocessor directives?6.What do you understand by typedef?7.How typedef is different from #define?8.What d o u n d e r s t a n d b y n e s t e d s t r u c t u r e ? 9 . W h a t i s a c l a s s a n d o b j e c t ? 10.Define data hiding in terms of oops?11.What is nested classes and how it is different from containership and inheritance?12.What do you mean by function pro totyping?13.Differentiate between local variable and global variable.14.What do you understand by a pointer?15.What is the initial value of a pointer?16.Name the arithmetic application you can do pointer variable?17.In int a[10]; what is a? how can you initialize a pointer p to hold value of a?18.What is the putpose of **a?19.How do we refer to a member through pointer of a class?20.Define the following term:(i) Encapsulation (ii) Abstraction (iii) Data hiding (iv) Inheritance21.Differentiate between public, protected and private members?22.Differentiate between structure and classes23.What do you understand by reference variable?24.What do you understand by lvalue and Rvalue of a variable?25.What do you understand by :: (scope resolution) operator?26.What is difference between : and :: operator?27.What is typecasting ?28.What is the benefit of declaring a data member as protected?29.What is the visibility modes? 30.Differentiate between private, protected and public visibility mode?31.What is visibility mode in a class?32.What is inline functions?33.How to declare a function as inline in a class?34.What are methods of defining a member function?35.Why a constructor is public member of class?36.When a copy constructor is invoked? 37.Differentiate between Call by reference and Call by value.38.Can private members of the base class be accessed by the derived class? If yes, how?39.What is circular queue? How is it different from simple queue?40.When will you make a function inline?41.Which of the following sorting :a . S e l e c t i o n s o r t b . B u b b l e s o r t c . I n s e r t i o n s o r t i.Is more efficient?

8.Differentiate between ifstream class and ofstream class ?9.Give names of two member functions belonging fstream class.10.Name two common member functions belonging to ifstream and ofstream.11.What is the difference between put() and write()?12.What is the purpose of tellg()?13.What are methods of opening a file?14.What is the purpose of eof()? 15.What is the difference between get and getline()?16.Explain parameters of getline()? 17.Explain parameter of read() or write()?18.Name one method to check if the file exists?19.Distinguish between o ios::out and ios::app. o ios::out and ios::nocreate o ios::out and ios::noreplace o ios::nocreate and ios::noreplace o ios::out and ios::beg o seekg and seekp o seekg and tellg20.What is the precondition for Binary search to be performed on a single dimensionalarray?21.What do understand by signature of a function?22.What is a friend function?23.How is constructor overloading different from function overloading?24.Explain

different types of Inheritance?25.What do understand by virtual inheritance?2 6 . D e f i n e ( i ) D e f a u l t c o n s t r u c t o r ( i i ) P a r a m e t e r i z e d c o n s t r u c t o r ( i i i ) C o p y c o n s t r u c t o r ( i v ) D e s t r u c t o r 27.Give any two applications of stack?28.Give two applications of queue?29.What is the significance of front and rear in a queue?30.What is significance of top in stack? 31.What is purpose of dqueue? [ Dqueue is double ended queue to enter and delete datafrom both the sides]32.What is the purpose of destructor in class for linked stack or queue?33.Define self-referential structure with suitable examples34.What is purpose of circular queue and how it is different from static queue?35.What is meant by term literal in Boolean algebra?36.Why are NAND and NOR gates more popular than the basic NOT, AND, OR gates?37.What is duality principle in Boolean algebra?38.What is application of K -map?39.What is the difference between LIFO and FIFO ?40.What is a this pointer ?41.What is primary key? 42.What is foreign key?What is its purpose43.What do you mean by candidate key and how it is different from alternate key? 44.What is Cartesian product of two tables?45.Define the terms Tuple and Attribute46.What do you understand by the terms Cardinality and Degree of the table?47.What is the main function of DBA.48.What are DDL and DML?49.What is the difference between Where and Having Clause ? 50.What do you understand by constraints ? 51.Write some features of SQL?52.Write various database objects available in SQL? 53.What are group Functions 54.What is difference between order by and group by?55.What is difference between drop table and drop view?56.What is the precondition of drop table?

Vous aimerez peut-être aussi