SlideShare a Scribd company logo
1 of 12
Download to read offline
1
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
CS 6456-OBJECT ORIENTED PROGRAMMING-FAQ
UNIT-I (2 Marks)
1. What are enumerated data types? Give an example.Nov/Dec2017
2. Define recursion.Nov/Dec 2017
3. Differentiate between an Object and a Class. April/May 2017
4. What is an abstract class in C++? April/May 2017
5. What are the advantages of object oriented programming over structured
programming? April/ May 2015
6. What is the advantage of an inline function? April/ May 2015
7. Differentiate a constant pointer and a pointer to a constant with an example.Nov/Dec 2015
8. Illustrate the usage of this pointer in C++. Nov/Dec 2015
9. What is object oriented programming? April/May 2016, Dec 2013
10. Define data abstraction. April/May 2016, May 12, 13, Dec 13
11. What are the Concepts of OOPs?
12. Differentiate Procedure Oriented Programming (POP) and Object Oriented Programming (OOP).
Nov/Dec 2011
13. What is Static Member Functions? What are the features of static data
Member? Nov/Dec 2012
14.List any four advantages of OOPS. Nov/Dec 2012
15. What is encapsulation? How it helps the programmer to design the system better? April / May 2013,
May 12,13,14
16. Differentiate between object and class. Dec-10,12,13
17.What is the difference between a pointer and a reference? Dec-11
18. State the purposes of namespaces with an example. May-11,12
19.What is namespace? Dec-12
20.What is abstract class? May-14
21.List the operators used in C++ for handling memory. May-10
22.What are the operators in C++?
23.What is meant by data hiding?
24.What are the access specifiers in C++?
25.What is ADT? What are the uses of ADT?
26.Give any four applications of the OOPS.
27.What is a default argument and constant argument?
28.State the difference between inline function and macro.
2
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
29.Write the Block Structure of C++.
30.What is function? What are the types of function in C++?
31.What is polymorphism? What are the types of polymorphism?
32.What is a function prototype? Give its specification.
33.What are the features of inline function?
34.What are the components of functions?
16 MARKS
1.a)i)Show the rules of precedence and associativity for the operators in C++.Nov/Dec2017
ii) Explain the switch statement in C++ with Example. Nov/Dec2017
2.i)Write a C++ program to sort the given numbers using function. Nov/Dec2017
ii)Write a C++ program to swap two numbers using pointer. Nov/Dec2017
3.Explain the Object Oriented Programming concepts. April/May 2017
4.Write a C++ program for the following:
Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary,
and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary. Use
constructors, destructor and member functions. April/May 2017
5. Explain the major principles of object oriented programming with illustrations and neat diagram.
April/May 2015
6. Explain the various operators that are available on C++ with neat illustration for each it. April/May
2015
7. Write a C++ program to implement a binary search procedure to find whether the given element is
present in the array or not using objects and classes. Nov/Dec 2015
8. Write short notes on casting primitive data types to object type and vice verse with an example for
each. Nov/Dec 2015
9. What is namespace? How do you resolve the name conflicts using namespaces? Explain with an
example. Nov/Dec 2015
10. Write a C++ program to find maximum of two numbers using inline functions.Nov/Dec 2015
11. Write a C++ program to find the area of the square, rectangle, circle using function overloading.
Nov/Dec 2015
12. Briefly describe on the objected oriented features supported by C++. Nov/Dec 2015
13. a) List out differences between procedure oriented programming and object oriented programming.
April/May 2016
b) Explain about pointers with an example. April/May 2016
14. a) Explain the characteristics of OOPs. April/May 2016
b) Write a C++ program to list out prime numbers between the given two
limits. April/May 2016
15. a) Write a note on terms and concepts related object oriented programming.
b) How it differs from procedural programming.
3
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
c) Explain the merits and demerits of the same. April-14
16.a) Explain the characteristics of OOPS in detail.
b) List out the features of object oriented programming.
c) Distinguish between abstraction and encapsulation. Dec-13
17. Write a C++ program to construct student mark list for three subjects. Write the program to display
name, rollno, marks, avg and total. Use class and objects.
18. Explain the concept of passing the arguments by call by value and call by reference.
19. Explain the following concepts of object oriented programming in detail with an example.
i) Data encapsulation ii) Inheritance.
20. Explain the implementation of ADT with some suitable example.
UNIT-II 2 MARKS
1.Write the use of destructor.Nov/Dec 2107
2.What do you mean by container? Nov/Dec 2107
3.Compare Overloading and Overriding. April/May 2017
4.What is the size of a class having one or more virtual functions? April/May 2017
5. What is meant by data abstraction? April/May 2015
6. What is destructor? Illustrate with an example. April/May 2015
7. When do you call an object destructor? Nov/Dec 2015
8. What is a pure virtual function? Nov/Dec 2015
9. Distinguish between class and object. April/May 2016
10. What is the use of destructor? April/May 2016
11. Define Virtual Function? How can you access the virtual functions? Nov/Dec 2011
12. What is dynamic constructor? Give an example. May-10
13. Write copy constructor for class date(assume mm, dd, yy as its members ) Dec-10
14.When will the destructor be called? Is it implicit or explicit? May-11,12
15.What are copy constructors? Dec-11
16. Highlight the advantages of static data members and static functions in C++.May-12
17.What is destructor? May-14
18.Define attribute. May-13
19.Define operator overloading. May-10,14
20.State the significance of this pointer in C++. May-10
21.What is encapsulation? Do friend function violet encapsulation? Dec-10
22.List the operator that cannot be overloaded. May-11,12
23.What is friend function? Dec-11
24.Why can’t friend function be used to overload assignment operator? Dec-12
4
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
25.What is the use of operator overloading? Dec-13
26.What is friend class? Dec-13
27.What are merits of using classes? May-14
28.What is ‘this’ pointer? Mention the advantages of using ‘this’ pointer. May-13
29.List out the rules used for defining constructors. May-13
30.Give an example in C++ for nested classes. Nov-11
31.What is a static variable?
32.Why is it necessary to overload an operator?
33.List out the operators that cannot be overload as friend functions.
34.What is function overloading?
35.Write at least four rules for operator overloading.
36.What is a scope resolution operator?
37.Define containers. What are the best situations for the use of the associative containers?
38.What are iterators? What are its characteristics?
16 MARKS
1.What are the different types of constructors in C++?Illustrate with an example.Nov/Dec 2107
2.i)Explain the concept of polymorphism with an example. Nov/Dec 2107
ii)Write the need for iterators in C++.Give an example.Nov/Dec 2107
3.i)Explain friend function with an example. April/May 2017
ii)Write a C++ program to concatenate two strings using + operator overloading. April/May 2017
4.i)What is Inheritance?List out the advantages of inheritance. April/May 2017
ii)Write a C++ program to implement hierarchical inheritance. April/May 2017
5. Explain the various types of constructors that are available in C++ with
suitable examples. April/May 2015
6. What is meant by polymorphism? Explain the various types of polymorphism
in C++ with suitable examples. April/May 2015
7. Develop a class polynomial whose internal representation is a term consisting of coefficient and an
exponent. Develop a complete class containing proper constructor and destructor functions as well as set
and get functions. Overload the additions and subtraction operator to add and subtract two polynomials
and display the results. Overload the assignment operator to assign one polynomial to another using
friend function. Nov/Dec 2015
8. Develop an abstract class polygon from which triangle and rectangle are derived. Each polygon should
contain the function area () to calculate the area of them. Invoke appropriate area () function to calculate
the area using pointer to base class and pointers to derived classes. Nov/Dec 2015
9. Create a “Vector” named student to add the names of the students in class. Also display the contents of
the vector after adding necessary elements.Nov/Dec2015
10.a)What are constructors? Explain the concept of destructor with an example. April/May 2016
b) Explain array of objects with an example. April/May 2016
11. a) What is operator overloading? List out the rules to overload a binary
operator. April/May 2016
b) Write C++ program to add two vectors using + operator overloading.
12. Explain the Friend function concept with an example program. May13,Dec13
5
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
13. Explain in detail with examples the application of constructors and destructors. Nov/Dec 2011
14. Explain function overloading with an example program. May-10, Dec-11
15. Explain in detail about operator overloading with C++ coding. Dec 10,11,12,13,May-12,13,14
16. Write a C++ program to implement C=A+B,C=A-B and C=A*B where A,B and C are objects
containing a int value(vector). Dec-11,May-12
17. Write a C++ program to define overloaded constructor to perform string initialization, string copy and
string destruction. May-11,12.
18. Explain the constructor concept with its types with example programs.
19. a) Explain about runtime polymorphism in detail with example program.
b) Write note on Virtual functions with example program. May-16
20. Describe manipulation of strings with overloading the following operators: <<,>>,+,-.
UNIT-III 2 MARKS
1. List the benefits of using templates in C++.?Nov/Dec2017
2. Define Exception. Nov/Dec2017
3. Write any two stream classes and their functions for console operattions.April/May 2017
4. Give an example for nested namespaces. April/May 2017
5. What is template? April/May 2015
6. What is an exception? April/May 2015
7. What is an iterator? List out the characteristics of an iterator. Nov/Dec 2015
8. What do you mean by the term “Generic programming”?Nov/Dec 2015
9. What is generic programming?April/May 2016
10. What is meant by exception? April/May 2016
11.Write the syntax for function Template. Nov/Dec 2012
12. What is a difference between a function template and template function? Dec11,Apirl-13
13. How are virtual functions declared in C++? Dec-10
14. What is abstract class in cpp in C++? Dec-12
15. Compare overloading and overriding. May-13.Dec-13
16. Define exception. Give example. May-11,12
17. Give two real life examples for multilevel inheritance. April-14
18. What do you mean by inheritance in C++? April-14
19. Describe the syntax of multilevel inheritance. April-14
20. What happens when a catch handler throws an exception? April-14
6
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
21. Write a C++ program to check whether the given string is palindrome or not.April-14
22. What is STL? What are the three components of STL? Nov-11
23. Define Virtual base class? Nov-11
24. Define virtual function. Nov-11
25. State the rules for the order of constructor execution in inheritance. Nov-11
26. How generic programming is implemented in C++? Nov-12
27. Give the general format for function templates. Nov-12
28. List out the ways of class template inheritance.
29. What are the challenges in the exception handling mechanism?
30. What are two types of file pointers used in C++?
31. What are the Unformatted I/O operations?
32. Difference between virtual function and pure virtual function.
33. Differentiate static binding and dynamic binding.
34. In C++ how do we handle multiple exceptions?
16 MARKS
1. Explain function template and class template with suitable examples.Nov/Dec2017
2. Explain inheritance in C++ with suitable examples. Nov/Dec2017
3.i)What are the various ways of handling exceptions?When do we use multicatch handlers?Explain with
an example.April/May2017
ii)Draw the I/O stream hierarchy in C++ and exaplin it clearly. April/May2017
4.i)Write a C++ program to convert the given string from lowercase to uppercase using files.
April/May2017
ii)Explain the following functions (with example) fo manipulating file
pointers:seekg(),seekp(),tellg(),tellp().April/May2017
5. What is a function template? Write a template function to sort arrays of float and int using bubble sort.
April/May 2015
6. What is inheritance? Discuss the various types of inheritance that are available in C++ with neat
diagram. April/May 2015
7. Implement a dictionary name Index which consists of key terms and its descriptions using MAP STL.
Try to display all the terms and descriptions present in the dictionary and if a key term has been provided
as an input, the corresponding description should get displayed as an output to the user by searching the
entire dictionary. Nov/Dec 2015
8. Implement a circular queue with proper insertion and deletion operations using class templates.
Nov/Dec 2015
7
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
9.Write a C++ program to accept integer or string values from the user within a specified range. If the
input violates the range, appropriate exception needs to be raised. Nov/Dec 2015
10. Write a C++ program to sort a list of integers, floating point numbers and characters by quick sort
mechanism using function templates. Nov/Dec 2015
11. Write short notes on the storage structures available with standard template libraries. Nov/Dec 2015
12. a) What is inheritance? List out the advantages of inheritance. April/May 2016
b) Write a C++ program to implement multiple inheritances. April/May 2016
13. a) Discuss about exception and its advantages. April/May 2016
b) Write a C++ program to generate an exception whenever user input is even
number less than 100. April/May 2016
14. Explain virtual function concept with a program to find the distance between two objects. May-
10,11,Dec-11,12
15. Explain the inheritance types with example programs for last three types.
16. Write a C++ program to generate user defined exception whenever user inputs odd numbers. Dec-13
17. a) State the rules for virtual functions. Write a C++ program to declare a virtual function and
demonstrate it. May-10,Dec-11
b) Explain about implementation of runtime polymorphism in C++ with an
example. Dec-12
18. Explain how stack can be implemented using STL.
19. Draw the I/O stream hierarchy in C++ and explain it clearly.
UNIT-IV 2 MARKS
1. Highlight the features of Java.Nov/Dec 2017
2. Give the syntax of while statement in Java.Nov/Dec2017
3. Define JVM in Java. April/May 2017
4.What is the advantage of using packages in Java Programming? April/May 2017
5. What is byte code? Mention its advantage. May-16,May-15,May-11,12
6. Java is robust. Comment. April/May 2016
7. What is JVM? April/May 2015,May-10
8. Define the keyword “static” in java. Nov/Dec 2015
9. Write the output produced by the following code fragments. Nov/Dec 2015
System.out.printin(“Reuslt:”+40+30);
System.out.printin(“Result:”+(40+30));
10. What are Nested classes? Nov/Dec 2011
11. Why is java language called as ‘robust’? Dec-12
8
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
12. Is JVM’s platform independent? Justify. May-13
13. How do we allocate an array dynamically in Java? May-13
14. State the use of super keyword in java. Dec-11
15. What is inner class? Dec-12
16. What is the difference between superclass and subclass? May-13
17. What are wrapper classes in Java? Dec-11
18. Why does java make an executable file? Dec-12
19. Give two examples of java modifiers. Dec-10
20. What is mean by platform? Java is platform independent language. Justify.
21. What is meant by Java Application?
22. What is meant by Java Applet?
23. What are features supported and does not support by java?
24. How multiple inheritances are achieved in java?
25. What is by java? What are the features of java?
26. What are the two components of Java platform?
27. What are the components of JVM?
28. Write down the block structure of JAVA?
29. Write class declarations for the following relationship, assuming that all classes are public: Bulldog is
a kind of dog and a Dog is a kind of animal.
30. Mention the various access levels supported in java.
31. What is an array?
32. Why java use Unicode?
33. List out the primitive types in java.
34. What are the methods used in string class?
35. What members does a subclass inherit?
16 MARKS
1.i)Write a Java program to generate Fibonacci series.Nov/Dec 2017
ii)Explain how to declare arrays in Java.Give examples. Nov/Dec 2017
2.i)With an example discuss how to declare methods with multiple parameters in Java. Nov/Dec 2017
9
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
ii)Brief about inheritance in java. Nov/Dec 2017
3.i)Explain about various string operations in Java.April/May 2017
ii)Write a java program to find the maximum number of the given array.April/May2017
4.i)Explain about packages in java.April/May 2017
ii)Write a program to convert an integer array to string. April/May 2017
5. Discuss the various types of operators in java and explain with suitable examples. April/May 2015
6. What is an access modifier? Differentiate between private, protected and public access modifiers with
examples. April/May 2015
7. What are packages? How are they created and used? Illustrate it with an example. Nov/Dec 2015
8. How do you implement multiple inheritance in java? Explain. Nov/Dec 2015
9. Why java has been called as “Write once and run anywhere”? Explain.Nov/Dec 2015
10. Write a java application to implement mark processing system for a university consisting of various
disciplines such as engineering, science and arts. Grade calculation for the students differs across the
disciplines. Nov/Dec 2015
i) Grade calculation for undergraduate engineering students requires the involvement of technical events
apart from the marks obtained in their subjects and post graduate engineering students require research
project as an additional component.
ii) For post graduate science student, involvement of paper presentation is required whereas assignment
weightage is mandatory for post graduate arts students.
iii) Grades for research scholars would be computed based on the number of research articles published
and number of research project done. Tyr to implement the above system polymorphically.
11. a) List out the characteristics of JAVA. April/May 2016
b) Explain about dynamic method dispatch with an example. April/May 2016
12. a) Distinguish between instance methods and class methods with an example.April/May 2016
b) Implement a class student. A student has a name and a total quiz score. Supply an appropriate
constructor and methods getName(), addQuiz(int score), getTotalScore() and getAverageScore(). To
computer the latter, you also need to store the number of quizzes that the student took.April/May 2016
13. a) Write a java program to find factorial of a given number. May-10
b) Write a menu-based java program that can calculate the area of triangle, circle or square based on the
user’s choice. Dec-10
14. Explain the arrays and its types in detail with example program. May-14
15. Explain the concept of classes, objects and methods in Java. Dec-11
16. Discuss about Java command line arguments. Dec-13
17. Write short notes on Java virtual machines. May-14
18. a) Write a java program to create two single dimensional arrays, initialize
them and add them; store the result in another array. May-11,12
b) Write a program to convert an integer array to string. Dec-12
19. Write a java program using arrays to do the following : May-13
a) To copy one array content to another array.
b) To arrange the numbers in ascending order.
c) Find the maximum of an array.
20. a) Write a java program to find the maximum number of the given array.
Dec-12
10
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
b) Create a complex number class in java. The class should have a constructor and methods to add,
subtract and multiply two complex numbers
and to return the real and imaginary parts. Dec-11
UNIT-V 2 MARKS
1.Write some Java string class methods.Nov/Dec2017
2.State the use of try block in Java exception handling.Nov/Dec 2017
3.What are exceptions?April/May 2107
4.What is multithreading? April/May 2107
5. What is an interface? April/May 2015
6. Write short note on throw (). April/May 2015
7. Differentiate checked and unchecked exceptions. Nov/Dec 2015
8. How do you compare two strings by ignoring the case? Give an example.Nov/Dec 2015
9. Distinguish between interface and class. April/May 2016
10. What is multithreading? April/May 2016
11. What is meant by Exception? Nov/Dec 2011
12. List any four packages in java and highlight their features. May-10
13. What are packages? May-11,12
14. Define interfaces. State its use. May-11,12
15. What is the difference between an interface and an abstract class? Dec-12
16. What is API package? May-14
17. What is the difference between throw and throws? Dec-12
18. What are the two ways of creating java threads ? Dec-10,May-14
19. What is thread? How does it differ from a process? May-11,12
20. Which class and interface in java is used to create thread and which is the
most advantageous one? May-13
21. What is the difference between superclass and subclass? May-13
22. Write the methods of threads? May-14
11
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
23. What are the advantages of using exception handling? May-13 20. Name two superclasses used in
character stream.
24. What is the purpose of BufferedInputStream and BufferedOutputStream classes?
25. Name two super classes used in byte stream.
26. How threads are created in java?
27. What is thread pool?
28. How an exception is handled in java?
29. What is life cycle of thread?
30. What is the use of data input and output streams?
31. What is filtered stream?29. Define synchronization.
32. Java does not support multiple inheritance. Why?
16 MARKS
1.Explain the use of package in Java with an illustrative example.Nov/Dec2017
2.Develop java program to implement an interface with an example.Nov/Dec2017
3.Develop a Java program to illustrate the concept of multithreaded programming.Nov/Dec2017
4.Discuss the concepts of interfaces and inner classes in detail. Provide examples wherever necessary.
April/May2017
5.Explain the concept of threads in Java Write a java program with threads to solve producer consumer
problem.April/May 2017
6. Illustrate the use of try-catch clauses by sample statements for rare type of runtime error. April/May
2015
7. What is multi-threading? Write a multithread program in java and explain.April/May 2015
8. Create an application that executes two threads. First thread displays the alphabets A to Z at every one
second. The second thread will display the alphabets Z to A at every two seconds. Both the threads need
to synchronize the each other for printing alphabets. The second thread has to wait until the first thread
finishes its execution. The applicable waits for all the threads to
finish the execution. Nov/Dec 2015
9. What is an interface? How do you achieve multiple inheritance through interfaces? Explain with an
example. Nov/Dec 2015
10. Write a java program to accept a string from user and check whether it is a file or directory. If it is a
directory, count the number for files in that directory. If it is a file, count the number of consonants and
display the contents of the file in a reverse order. Nov/Dec 2015
11. Write a java program that enters an 8 digit string for a birthdate. The first two digits in the string are
the months of birth, the next two are the day and the remaining four are the year. The java program
should squeeze out these substrings and calculate the current age. Raise a negative age exception if the
calculated age is negative. Nov/Dec 2015
12. a) How to define an interface? Why do the members of interface are static and final? April/May 2016
b) Write a Java Program to implement nested packages. April/May 2016
13. a) Distinguish between arrays and strings. April/May 2016
12
5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE
b) Explain the methods available in the string buffer class.April/May 2016
c) Explain the use of command line arguments with an example.April/May 2016
14. a) What are packages? How do they created and used? Dec-11 b) Explain about packages in Java.
Dec-12
15. a) How do we add a class or interface to a package? Dec-13 b) Write a java program to implement
nested packages. Dec-13
16. a) What is an exception? List the java common exception types and causes.Nov-11
b) Write a java program to add 2 integers and raise exception when any other
character except number (0-9) is given as input. Dec-12
17. a) What is a thread? How do you create threads? Dec-11
b) What is multithreading? Explain with an example. Dec-12
18. a) Explain about thread synchronization with an example. Dec-13
b) Write a java program to perform all string operations using the string class.
May-11
19. a) Write short note on – Strings in Java. May-14
b) Write a program in java, which will read a text and count all occurrences
of a particular word. May-13
20. a) Explain the concept of stream and its byte stream classes in detail. May-14
b) Write short notes on various I/O streams in java.Dec-12
21. a) Write a java program to demonstrate how to read and write data to a file.Dec-11
b) Explain the methods used to handle input and output using character stream

More Related Content

What's hot

Mapping and visualization of source code a survey
Mapping and visualization of source code a surveyMapping and visualization of source code a survey
Mapping and visualization of source code a surveyNakul Sharma
 
Oop r&amp;s may 2019 (2)
Oop r&amp;s may 2019 (2)Oop r&amp;s may 2019 (2)
Oop r&amp;s may 2019 (2)ktuonlinenotes
 
difference between c c++ c#
difference between c c++ c#difference between c c++ c#
difference between c c++ c#Sireesh K
 
Unit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introductionUnit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introductionAKR Education
 

What's hot (7)

Mapping and visualization of source code a survey
Mapping and visualization of source code a surveyMapping and visualization of source code a survey
Mapping and visualization of source code a survey
 
Oop r&amp;s may 2019 (2)
Oop r&amp;s may 2019 (2)Oop r&amp;s may 2019 (2)
Oop r&amp;s may 2019 (2)
 
C sharp
C sharpC sharp
C sharp
 
C vs c++
C vs c++C vs c++
C vs c++
 
difference between c c++ c#
difference between c c++ c#difference between c c++ c#
difference between c c++ c#
 
Oop r&amp;s may 2019
Oop r&amp;s may 2019Oop r&amp;s may 2019
Oop r&amp;s may 2019
 
Unit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introductionUnit 1 of c++ part 1 basic introduction
Unit 1 of c++ part 1 basic introduction
 

Similar to Cs 6456-oop faq

FDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docFDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docjaba kumar
 
WP Solutions- Adi.pdf
WP Solutions- Adi.pdfWP Solutions- Adi.pdf
WP Solutions- Adi.pdfAdiseshaK
 
IMP questions for System programming for GTU
IMP questions for System programming for GTUIMP questions for System programming for GTU
IMP questions for System programming for GTUParas Patel
 
Assignments 150507052746-lva1-app6891
Assignments 150507052746-lva1-app6891Assignments 150507052746-lva1-app6891
Assignments 150507052746-lva1-app6891Mohit Saini
 
DBMS Assignments Questions
DBMS Assignments QuestionsDBMS Assignments Questions
DBMS Assignments QuestionsSara Sahu
 
Model questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-semModel questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-semNayanBakhadyo
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programmingsoni_nits
 
OOAD-FULL-UNITS (full unit) SEE6A
OOAD-FULL-UNITS (full unit) SEE6AOOAD-FULL-UNITS (full unit) SEE6A
OOAD-FULL-UNITS (full unit) SEE6AJKN JKN
 
Interoduction to c++
Interoduction to c++Interoduction to c++
Interoduction to c++Amresh Raj
 
1 intro
1 intro1 intro
1 introabha48
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsShanmuganathan C
 
cprogramming questions for practice end term
cprogramming questions for practice end termcprogramming questions for practice end term
cprogramming questions for practice end termSheelendra3
 
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...vtunotesbysree
 
Angularjs2 presentation
Angularjs2 presentationAngularjs2 presentation
Angularjs2 presentationdharisk
 

Similar to Cs 6456-oop faq (20)

141303 qb
141303 qb141303 qb
141303 qb
 
FDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docFDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.doc
 
WP Solutions- Adi.pdf
WP Solutions- Adi.pdfWP Solutions- Adi.pdf
WP Solutions- Adi.pdf
 
IMP questions for System programming for GTU
IMP questions for System programming for GTUIMP questions for System programming for GTU
IMP questions for System programming for GTU
 
Assignments 150507052746-lva1-app6891
Assignments 150507052746-lva1-app6891Assignments 150507052746-lva1-app6891
Assignments 150507052746-lva1-app6891
 
DBMS Assignments Questions
DBMS Assignments QuestionsDBMS Assignments Questions
DBMS Assignments Questions
 
Model questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-semModel questions-b.sc .csit-6th-sem
Model questions-b.sc .csit-6th-sem
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
 
EEE 3rd year oops cat 3 ans
EEE 3rd year  oops cat 3  ansEEE 3rd year  oops cat 3  ans
EEE 3rd year oops cat 3 ans
 
OOAD-FULL-UNITS (full unit) SEE6A
OOAD-FULL-UNITS (full unit) SEE6AOOAD-FULL-UNITS (full unit) SEE6A
OOAD-FULL-UNITS (full unit) SEE6A
 
Lab3cth
Lab3cthLab3cth
Lab3cth
 
C++ interview question
C++ interview questionC++ interview question
C++ interview question
 
Interoduction to c++
Interoduction to c++Interoduction to c++
Interoduction to c++
 
Expected questions in Artificial Intelligence
Expected questions in Artificial IntelligenceExpected questions in Artificial Intelligence
Expected questions in Artificial Intelligence
 
JavaScript functions
JavaScript functionsJavaScript functions
JavaScript functions
 
1 intro
1 intro1 intro
1 intro
 
OODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objectsOODP Unit 1 OOPs classes and objects
OODP Unit 1 OOPs classes and objects
 
cprogramming questions for practice end term
cprogramming questions for practice end termcprogramming questions for practice end term
cprogramming questions for practice end term
 
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
 
Angularjs2 presentation
Angularjs2 presentationAngularjs2 presentation
Angularjs2 presentation
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 

Cs 6456-oop faq

  • 1. 1 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE CS 6456-OBJECT ORIENTED PROGRAMMING-FAQ UNIT-I (2 Marks) 1. What are enumerated data types? Give an example.Nov/Dec2017 2. Define recursion.Nov/Dec 2017 3. Differentiate between an Object and a Class. April/May 2017 4. What is an abstract class in C++? April/May 2017 5. What are the advantages of object oriented programming over structured programming? April/ May 2015 6. What is the advantage of an inline function? April/ May 2015 7. Differentiate a constant pointer and a pointer to a constant with an example.Nov/Dec 2015 8. Illustrate the usage of this pointer in C++. Nov/Dec 2015 9. What is object oriented programming? April/May 2016, Dec 2013 10. Define data abstraction. April/May 2016, May 12, 13, Dec 13 11. What are the Concepts of OOPs? 12. Differentiate Procedure Oriented Programming (POP) and Object Oriented Programming (OOP). Nov/Dec 2011 13. What is Static Member Functions? What are the features of static data Member? Nov/Dec 2012 14.List any four advantages of OOPS. Nov/Dec 2012 15. What is encapsulation? How it helps the programmer to design the system better? April / May 2013, May 12,13,14 16. Differentiate between object and class. Dec-10,12,13 17.What is the difference between a pointer and a reference? Dec-11 18. State the purposes of namespaces with an example. May-11,12 19.What is namespace? Dec-12 20.What is abstract class? May-14 21.List the operators used in C++ for handling memory. May-10 22.What are the operators in C++? 23.What is meant by data hiding? 24.What are the access specifiers in C++? 25.What is ADT? What are the uses of ADT? 26.Give any four applications of the OOPS. 27.What is a default argument and constant argument? 28.State the difference between inline function and macro.
  • 2. 2 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE 29.Write the Block Structure of C++. 30.What is function? What are the types of function in C++? 31.What is polymorphism? What are the types of polymorphism? 32.What is a function prototype? Give its specification. 33.What are the features of inline function? 34.What are the components of functions? 16 MARKS 1.a)i)Show the rules of precedence and associativity for the operators in C++.Nov/Dec2017 ii) Explain the switch statement in C++ with Example. Nov/Dec2017 2.i)Write a C++ program to sort the given numbers using function. Nov/Dec2017 ii)Write a C++ program to swap two numbers using pointer. Nov/Dec2017 3.Explain the Object Oriented Programming concepts. April/May 2017 4.Write a C++ program for the following: Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary. Use constructors, destructor and member functions. April/May 2017 5. Explain the major principles of object oriented programming with illustrations and neat diagram. April/May 2015 6. Explain the various operators that are available on C++ with neat illustration for each it. April/May 2015 7. Write a C++ program to implement a binary search procedure to find whether the given element is present in the array or not using objects and classes. Nov/Dec 2015 8. Write short notes on casting primitive data types to object type and vice verse with an example for each. Nov/Dec 2015 9. What is namespace? How do you resolve the name conflicts using namespaces? Explain with an example. Nov/Dec 2015 10. Write a C++ program to find maximum of two numbers using inline functions.Nov/Dec 2015 11. Write a C++ program to find the area of the square, rectangle, circle using function overloading. Nov/Dec 2015 12. Briefly describe on the objected oriented features supported by C++. Nov/Dec 2015 13. a) List out differences between procedure oriented programming and object oriented programming. April/May 2016 b) Explain about pointers with an example. April/May 2016 14. a) Explain the characteristics of OOPs. April/May 2016 b) Write a C++ program to list out prime numbers between the given two limits. April/May 2016 15. a) Write a note on terms and concepts related object oriented programming. b) How it differs from procedural programming.
  • 3. 3 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE c) Explain the merits and demerits of the same. April-14 16.a) Explain the characteristics of OOPS in detail. b) List out the features of object oriented programming. c) Distinguish between abstraction and encapsulation. Dec-13 17. Write a C++ program to construct student mark list for three subjects. Write the program to display name, rollno, marks, avg and total. Use class and objects. 18. Explain the concept of passing the arguments by call by value and call by reference. 19. Explain the following concepts of object oriented programming in detail with an example. i) Data encapsulation ii) Inheritance. 20. Explain the implementation of ADT with some suitable example. UNIT-II 2 MARKS 1.Write the use of destructor.Nov/Dec 2107 2.What do you mean by container? Nov/Dec 2107 3.Compare Overloading and Overriding. April/May 2017 4.What is the size of a class having one or more virtual functions? April/May 2017 5. What is meant by data abstraction? April/May 2015 6. What is destructor? Illustrate with an example. April/May 2015 7. When do you call an object destructor? Nov/Dec 2015 8. What is a pure virtual function? Nov/Dec 2015 9. Distinguish between class and object. April/May 2016 10. What is the use of destructor? April/May 2016 11. Define Virtual Function? How can you access the virtual functions? Nov/Dec 2011 12. What is dynamic constructor? Give an example. May-10 13. Write copy constructor for class date(assume mm, dd, yy as its members ) Dec-10 14.When will the destructor be called? Is it implicit or explicit? May-11,12 15.What are copy constructors? Dec-11 16. Highlight the advantages of static data members and static functions in C++.May-12 17.What is destructor? May-14 18.Define attribute. May-13 19.Define operator overloading. May-10,14 20.State the significance of this pointer in C++. May-10 21.What is encapsulation? Do friend function violet encapsulation? Dec-10 22.List the operator that cannot be overloaded. May-11,12 23.What is friend function? Dec-11 24.Why can’t friend function be used to overload assignment operator? Dec-12
  • 4. 4 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE 25.What is the use of operator overloading? Dec-13 26.What is friend class? Dec-13 27.What are merits of using classes? May-14 28.What is ‘this’ pointer? Mention the advantages of using ‘this’ pointer. May-13 29.List out the rules used for defining constructors. May-13 30.Give an example in C++ for nested classes. Nov-11 31.What is a static variable? 32.Why is it necessary to overload an operator? 33.List out the operators that cannot be overload as friend functions. 34.What is function overloading? 35.Write at least four rules for operator overloading. 36.What is a scope resolution operator? 37.Define containers. What are the best situations for the use of the associative containers? 38.What are iterators? What are its characteristics? 16 MARKS 1.What are the different types of constructors in C++?Illustrate with an example.Nov/Dec 2107 2.i)Explain the concept of polymorphism with an example. Nov/Dec 2107 ii)Write the need for iterators in C++.Give an example.Nov/Dec 2107 3.i)Explain friend function with an example. April/May 2017 ii)Write a C++ program to concatenate two strings using + operator overloading. April/May 2017 4.i)What is Inheritance?List out the advantages of inheritance. April/May 2017 ii)Write a C++ program to implement hierarchical inheritance. April/May 2017 5. Explain the various types of constructors that are available in C++ with suitable examples. April/May 2015 6. What is meant by polymorphism? Explain the various types of polymorphism in C++ with suitable examples. April/May 2015 7. Develop a class polynomial whose internal representation is a term consisting of coefficient and an exponent. Develop a complete class containing proper constructor and destructor functions as well as set and get functions. Overload the additions and subtraction operator to add and subtract two polynomials and display the results. Overload the assignment operator to assign one polynomial to another using friend function. Nov/Dec 2015 8. Develop an abstract class polygon from which triangle and rectangle are derived. Each polygon should contain the function area () to calculate the area of them. Invoke appropriate area () function to calculate the area using pointer to base class and pointers to derived classes. Nov/Dec 2015 9. Create a “Vector” named student to add the names of the students in class. Also display the contents of the vector after adding necessary elements.Nov/Dec2015 10.a)What are constructors? Explain the concept of destructor with an example. April/May 2016 b) Explain array of objects with an example. April/May 2016 11. a) What is operator overloading? List out the rules to overload a binary operator. April/May 2016 b) Write C++ program to add two vectors using + operator overloading. 12. Explain the Friend function concept with an example program. May13,Dec13
  • 5. 5 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE 13. Explain in detail with examples the application of constructors and destructors. Nov/Dec 2011 14. Explain function overloading with an example program. May-10, Dec-11 15. Explain in detail about operator overloading with C++ coding. Dec 10,11,12,13,May-12,13,14 16. Write a C++ program to implement C=A+B,C=A-B and C=A*B where A,B and C are objects containing a int value(vector). Dec-11,May-12 17. Write a C++ program to define overloaded constructor to perform string initialization, string copy and string destruction. May-11,12. 18. Explain the constructor concept with its types with example programs. 19. a) Explain about runtime polymorphism in detail with example program. b) Write note on Virtual functions with example program. May-16 20. Describe manipulation of strings with overloading the following operators: <<,>>,+,-. UNIT-III 2 MARKS 1. List the benefits of using templates in C++.?Nov/Dec2017 2. Define Exception. Nov/Dec2017 3. Write any two stream classes and their functions for console operattions.April/May 2017 4. Give an example for nested namespaces. April/May 2017 5. What is template? April/May 2015 6. What is an exception? April/May 2015 7. What is an iterator? List out the characteristics of an iterator. Nov/Dec 2015 8. What do you mean by the term “Generic programming”?Nov/Dec 2015 9. What is generic programming?April/May 2016 10. What is meant by exception? April/May 2016 11.Write the syntax for function Template. Nov/Dec 2012 12. What is a difference between a function template and template function? Dec11,Apirl-13 13. How are virtual functions declared in C++? Dec-10 14. What is abstract class in cpp in C++? Dec-12 15. Compare overloading and overriding. May-13.Dec-13 16. Define exception. Give example. May-11,12 17. Give two real life examples for multilevel inheritance. April-14 18. What do you mean by inheritance in C++? April-14 19. Describe the syntax of multilevel inheritance. April-14 20. What happens when a catch handler throws an exception? April-14
  • 6. 6 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE 21. Write a C++ program to check whether the given string is palindrome or not.April-14 22. What is STL? What are the three components of STL? Nov-11 23. Define Virtual base class? Nov-11 24. Define virtual function. Nov-11 25. State the rules for the order of constructor execution in inheritance. Nov-11 26. How generic programming is implemented in C++? Nov-12 27. Give the general format for function templates. Nov-12 28. List out the ways of class template inheritance. 29. What are the challenges in the exception handling mechanism? 30. What are two types of file pointers used in C++? 31. What are the Unformatted I/O operations? 32. Difference between virtual function and pure virtual function. 33. Differentiate static binding and dynamic binding. 34. In C++ how do we handle multiple exceptions? 16 MARKS 1. Explain function template and class template with suitable examples.Nov/Dec2017 2. Explain inheritance in C++ with suitable examples. Nov/Dec2017 3.i)What are the various ways of handling exceptions?When do we use multicatch handlers?Explain with an example.April/May2017 ii)Draw the I/O stream hierarchy in C++ and exaplin it clearly. April/May2017 4.i)Write a C++ program to convert the given string from lowercase to uppercase using files. April/May2017 ii)Explain the following functions (with example) fo manipulating file pointers:seekg(),seekp(),tellg(),tellp().April/May2017 5. What is a function template? Write a template function to sort arrays of float and int using bubble sort. April/May 2015 6. What is inheritance? Discuss the various types of inheritance that are available in C++ with neat diagram. April/May 2015 7. Implement a dictionary name Index which consists of key terms and its descriptions using MAP STL. Try to display all the terms and descriptions present in the dictionary and if a key term has been provided as an input, the corresponding description should get displayed as an output to the user by searching the entire dictionary. Nov/Dec 2015 8. Implement a circular queue with proper insertion and deletion operations using class templates. Nov/Dec 2015
  • 7. 7 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE 9.Write a C++ program to accept integer or string values from the user within a specified range. If the input violates the range, appropriate exception needs to be raised. Nov/Dec 2015 10. Write a C++ program to sort a list of integers, floating point numbers and characters by quick sort mechanism using function templates. Nov/Dec 2015 11. Write short notes on the storage structures available with standard template libraries. Nov/Dec 2015 12. a) What is inheritance? List out the advantages of inheritance. April/May 2016 b) Write a C++ program to implement multiple inheritances. April/May 2016 13. a) Discuss about exception and its advantages. April/May 2016 b) Write a C++ program to generate an exception whenever user input is even number less than 100. April/May 2016 14. Explain virtual function concept with a program to find the distance between two objects. May- 10,11,Dec-11,12 15. Explain the inheritance types with example programs for last three types. 16. Write a C++ program to generate user defined exception whenever user inputs odd numbers. Dec-13 17. a) State the rules for virtual functions. Write a C++ program to declare a virtual function and demonstrate it. May-10,Dec-11 b) Explain about implementation of runtime polymorphism in C++ with an example. Dec-12 18. Explain how stack can be implemented using STL. 19. Draw the I/O stream hierarchy in C++ and explain it clearly. UNIT-IV 2 MARKS 1. Highlight the features of Java.Nov/Dec 2017 2. Give the syntax of while statement in Java.Nov/Dec2017 3. Define JVM in Java. April/May 2017 4.What is the advantage of using packages in Java Programming? April/May 2017 5. What is byte code? Mention its advantage. May-16,May-15,May-11,12 6. Java is robust. Comment. April/May 2016 7. What is JVM? April/May 2015,May-10 8. Define the keyword “static” in java. Nov/Dec 2015 9. Write the output produced by the following code fragments. Nov/Dec 2015 System.out.printin(“Reuslt:”+40+30); System.out.printin(“Result:”+(40+30)); 10. What are Nested classes? Nov/Dec 2011 11. Why is java language called as ‘robust’? Dec-12
  • 8. 8 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE 12. Is JVM’s platform independent? Justify. May-13 13. How do we allocate an array dynamically in Java? May-13 14. State the use of super keyword in java. Dec-11 15. What is inner class? Dec-12 16. What is the difference between superclass and subclass? May-13 17. What are wrapper classes in Java? Dec-11 18. Why does java make an executable file? Dec-12 19. Give two examples of java modifiers. Dec-10 20. What is mean by platform? Java is platform independent language. Justify. 21. What is meant by Java Application? 22. What is meant by Java Applet? 23. What are features supported and does not support by java? 24. How multiple inheritances are achieved in java? 25. What is by java? What are the features of java? 26. What are the two components of Java platform? 27. What are the components of JVM? 28. Write down the block structure of JAVA? 29. Write class declarations for the following relationship, assuming that all classes are public: Bulldog is a kind of dog and a Dog is a kind of animal. 30. Mention the various access levels supported in java. 31. What is an array? 32. Why java use Unicode? 33. List out the primitive types in java. 34. What are the methods used in string class? 35. What members does a subclass inherit? 16 MARKS 1.i)Write a Java program to generate Fibonacci series.Nov/Dec 2017 ii)Explain how to declare arrays in Java.Give examples. Nov/Dec 2017 2.i)With an example discuss how to declare methods with multiple parameters in Java. Nov/Dec 2017
  • 9. 9 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE ii)Brief about inheritance in java. Nov/Dec 2017 3.i)Explain about various string operations in Java.April/May 2017 ii)Write a java program to find the maximum number of the given array.April/May2017 4.i)Explain about packages in java.April/May 2017 ii)Write a program to convert an integer array to string. April/May 2017 5. Discuss the various types of operators in java and explain with suitable examples. April/May 2015 6. What is an access modifier? Differentiate between private, protected and public access modifiers with examples. April/May 2015 7. What are packages? How are they created and used? Illustrate it with an example. Nov/Dec 2015 8. How do you implement multiple inheritance in java? Explain. Nov/Dec 2015 9. Why java has been called as “Write once and run anywhere”? Explain.Nov/Dec 2015 10. Write a java application to implement mark processing system for a university consisting of various disciplines such as engineering, science and arts. Grade calculation for the students differs across the disciplines. Nov/Dec 2015 i) Grade calculation for undergraduate engineering students requires the involvement of technical events apart from the marks obtained in their subjects and post graduate engineering students require research project as an additional component. ii) For post graduate science student, involvement of paper presentation is required whereas assignment weightage is mandatory for post graduate arts students. iii) Grades for research scholars would be computed based on the number of research articles published and number of research project done. Tyr to implement the above system polymorphically. 11. a) List out the characteristics of JAVA. April/May 2016 b) Explain about dynamic method dispatch with an example. April/May 2016 12. a) Distinguish between instance methods and class methods with an example.April/May 2016 b) Implement a class student. A student has a name and a total quiz score. Supply an appropriate constructor and methods getName(), addQuiz(int score), getTotalScore() and getAverageScore(). To computer the latter, you also need to store the number of quizzes that the student took.April/May 2016 13. a) Write a java program to find factorial of a given number. May-10 b) Write a menu-based java program that can calculate the area of triangle, circle or square based on the user’s choice. Dec-10 14. Explain the arrays and its types in detail with example program. May-14 15. Explain the concept of classes, objects and methods in Java. Dec-11 16. Discuss about Java command line arguments. Dec-13 17. Write short notes on Java virtual machines. May-14 18. a) Write a java program to create two single dimensional arrays, initialize them and add them; store the result in another array. May-11,12 b) Write a program to convert an integer array to string. Dec-12 19. Write a java program using arrays to do the following : May-13 a) To copy one array content to another array. b) To arrange the numbers in ascending order. c) Find the maximum of an array. 20. a) Write a java program to find the maximum number of the given array. Dec-12
  • 10. 10 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE b) Create a complex number class in java. The class should have a constructor and methods to add, subtract and multiply two complex numbers and to return the real and imaginary parts. Dec-11 UNIT-V 2 MARKS 1.Write some Java string class methods.Nov/Dec2017 2.State the use of try block in Java exception handling.Nov/Dec 2017 3.What are exceptions?April/May 2107 4.What is multithreading? April/May 2107 5. What is an interface? April/May 2015 6. Write short note on throw (). April/May 2015 7. Differentiate checked and unchecked exceptions. Nov/Dec 2015 8. How do you compare two strings by ignoring the case? Give an example.Nov/Dec 2015 9. Distinguish between interface and class. April/May 2016 10. What is multithreading? April/May 2016 11. What is meant by Exception? Nov/Dec 2011 12. List any four packages in java and highlight their features. May-10 13. What are packages? May-11,12 14. Define interfaces. State its use. May-11,12 15. What is the difference between an interface and an abstract class? Dec-12 16. What is API package? May-14 17. What is the difference between throw and throws? Dec-12 18. What are the two ways of creating java threads ? Dec-10,May-14 19. What is thread? How does it differ from a process? May-11,12 20. Which class and interface in java is used to create thread and which is the most advantageous one? May-13 21. What is the difference between superclass and subclass? May-13 22. Write the methods of threads? May-14
  • 11. 11 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE 23. What are the advantages of using exception handling? May-13 20. Name two superclasses used in character stream. 24. What is the purpose of BufferedInputStream and BufferedOutputStream classes? 25. Name two super classes used in byte stream. 26. How threads are created in java? 27. What is thread pool? 28. How an exception is handled in java? 29. What is life cycle of thread? 30. What is the use of data input and output streams? 31. What is filtered stream?29. Define synchronization. 32. Java does not support multiple inheritance. Why? 16 MARKS 1.Explain the use of package in Java with an illustrative example.Nov/Dec2017 2.Develop java program to implement an interface with an example.Nov/Dec2017 3.Develop a Java program to illustrate the concept of multithreaded programming.Nov/Dec2017 4.Discuss the concepts of interfaces and inner classes in detail. Provide examples wherever necessary. April/May2017 5.Explain the concept of threads in Java Write a java program with threads to solve producer consumer problem.April/May 2017 6. Illustrate the use of try-catch clauses by sample statements for rare type of runtime error. April/May 2015 7. What is multi-threading? Write a multithread program in java and explain.April/May 2015 8. Create an application that executes two threads. First thread displays the alphabets A to Z at every one second. The second thread will display the alphabets Z to A at every two seconds. Both the threads need to synchronize the each other for printing alphabets. The second thread has to wait until the first thread finishes its execution. The applicable waits for all the threads to finish the execution. Nov/Dec 2015 9. What is an interface? How do you achieve multiple inheritance through interfaces? Explain with an example. Nov/Dec 2015 10. Write a java program to accept a string from user and check whether it is a file or directory. If it is a directory, count the number for files in that directory. If it is a file, count the number of consonants and display the contents of the file in a reverse order. Nov/Dec 2015 11. Write a java program that enters an 8 digit string for a birthdate. The first two digits in the string are the months of birth, the next two are the day and the remaining four are the year. The java program should squeeze out these substrings and calculate the current age. Raise a negative age exception if the calculated age is negative. Nov/Dec 2015 12. a) How to define an interface? Why do the members of interface are static and final? April/May 2016 b) Write a Java Program to implement nested packages. April/May 2016 13. a) Distinguish between arrays and strings. April/May 2016
  • 12. 12 5105-BHARATHIDASAN ENGINEERING COLLEGE Prepared by:M.BALASUBRAMANI AP/CSE b) Explain the methods available in the string buffer class.April/May 2016 c) Explain the use of command line arguments with an example.April/May 2016 14. a) What are packages? How do they created and used? Dec-11 b) Explain about packages in Java. Dec-12 15. a) How do we add a class or interface to a package? Dec-13 b) Write a java program to implement nested packages. Dec-13 16. a) What is an exception? List the java common exception types and causes.Nov-11 b) Write a java program to add 2 integers and raise exception when any other character except number (0-9) is given as input. Dec-12 17. a) What is a thread? How do you create threads? Dec-11 b) What is multithreading? Explain with an example. Dec-12 18. a) Explain about thread synchronization with an example. Dec-13 b) Write a java program to perform all string operations using the string class. May-11 19. a) Write short note on – Strings in Java. May-14 b) Write a program in java, which will read a text and count all occurrences of a particular word. May-13 20. a) Explain the concept of stream and its byte stream classes in detail. May-14 b) Write short notes on various I/O streams in java.Dec-12 21. a) Write a java program to demonstrate how to read and write data to a file.Dec-11 b) Explain the methods used to handle input and output using character stream