CS6456-Object Oriented Programming
CS6456-Object Oriented Programming
DEPARTMENT OF
COMPUTER SCIENCE AND ENGINEERING
QUESTION BANK
Prepared by
Mr.T. Rajasekaran &
Mr. N. Leo Bright Tennisson
VALLIAMMAI ENGINEERING COLLEGE
SRM Nagar, Kattankulathur 603 203.
QUESTION BANK
UNIT-1
UNIT I OVERVIEW
Why Object-Oriented Programming in C++ - Native Types and Statements Functions and
Pointers-Implementing ADTs in the Base Language.
PART A (2 MARKS)
S.
QUESTIONS COMPETENCE LEVEL
No
1. Lists some characteristics of object-oriented language. Remember BTL1
2. With respect to C++ distinguish objects and classes. Understand BTL2
3. Evaluate Procedural programming with OO programming. Evaluate BTL5
4. Analyze how data encapsulation supports reusability Analyze BTL4.
5. Create a friend function which violates encapsulation? Create BTL6
6. Classify the native types in C++. Understand BTL2
7. Create an example for Enumerated data types. Create BTL6
8. Discuss a statement/Expression with an example? Understand BTL2
9. Examine function prototype and give an example. Apply BTL3
10. Summarize pointer and outline pointer arithmetic. Evaluate BTL5
11. Compare pointer and a reference? Analyze BTL4
12. Show the syntax to dynamically allocate memory to a constructor. Apply BTL3
13. What is function overloading? List out its advantages. Remember BTL1
14. What are inline functions? Give an example. Remember BTL1
What is an Abstract Data Type? Give an example and how it
15. Remember BTL1
differs from class?
16. Differentiate between stack and queue and give its applications. Understand BTL2
17. How Struct relates with Union/Class. Give an example. Apply BTL3
18. Point out the operations supported by the list ADT? Analyze BTL4
19. Define Type casting. Remember BTL1
20. List out various formats of bit field. Remember BTL1
UNIT-2
1. Write and explain a C++ program to create Pascal triangle. Evaluate BTL5
Develop a function the computes and displays the area of a
Triangle and the area of a Circle. Declare this function as a friend
2. Apply BTL3
function in Triangle and Circle classes and compute the area of a
Triangle and Circle objects from the main function.(Any Program)
UNIT-3
PART A (2 MARKS)
S.
QUESTIONS COMPETENCE LEVEL
No
Construct the syntax of try catch- throw in exception handling in
1 Create BTL6
C++
2 Differentiate function template and class template Analyze BTL4
3 What are the manipulators available in C++? Remember BTL1
4 What is a hierarchy inheritance? Give an example Remember BTL1
5 Give any five functions used for file processing Understand BTL2
6 What is the use of templates? Understand BTL2
7 What are manipulators? How do you create a one? Analyze BTL4
8 Give any two examples of exceptions Understand BTL2
Why is it not possible to refer an exception declared within try
9 Apply BTL3
block outside try block?
10 Illustrate the exception handling mechanism Apply BTL3
List out any four containers supported by Standard Template
11 Remember BTL1
Library?
12 What is rethrowing an expression? Remember BTL1
13 What is an exception? Give any four examples of exception Understand BTL2
14 Examine virtual base class with an example Apply BTL3
15 Point out the reason templates used in the C++ Analyze BTL4
16 List the way of class template inheritance Remember BTL1
17 List the different types of inheritance Remember BTL1
18 Summarize the classes in the iostream. h Evaluate BTL5
19 Draw console stream class hierarchy Create BTL6
20 Explain file pointer and give its types Evaluate BTL5
UNIT-4
6. Write a java program to find the maximum number of the given array. Apply BTL3
7. Write a java to calculate and convert an Integer array to string. Apply BTL3
8. Write a simple java program to classify basic Calculator operations. Analyze BTL4
UNIT-5
Packages and Interfaces, Exception handling, Multithreaded programming, Strings, Input /Output
PART A (2 MARKS)
S.
QUESTIONS COMPETENCE LEVEL
No
1. Define interface. State its use. Remember BTL1
2. What is thread? How does is it differ from a process? Understand BTL2
3. Under which context would you use final and finally? Analyze BTL4
4. Give one example on streams. Understand BTL2
5. List the advantage of using package s in Java Programming? Remember BTL1
6. What are the similarities between interfaces and classes in Java? Analyze BTL4
7. How do we set priorities for threads? Apply BTL3
What happens if an exception handler is not defined when Apply
8. BTL3
exception is thrown?
9. Explain the life cycle of thread. Evaluate BTL5
10. What are the two methods by which we may stop threads? Apply BTL3
11. What is an exception? Give any four examples of exception. Understand BTL2
12. What is multithreading? Remember BTL1
13. State threads Synchronization. Remember BTL1
14. Draw I/O Stream Hierarchy. Create BTL6
15. Compare String and String Buffer. Analyze BTL4
16. List the various string method. Remember BTL1
17. Express the various ways to import packages. Understand BTL2
18. Which method can be used for changing case of characters? Evaluate BTL5
19. Sketch the Exception Hierarchy. Create BTL6
20. How to create a user defined exception with example. Remember BTL1