#1
| |||
| |||
![]()
Will you please share the previous year question paper of Sathyabama University for B.E/B. Tech in Computer Science Engineering (CSE)-IInd Semester Programming in C++ (6C0094) Exam????
|
#2
| ||||
| ||||
![]()
Here I am sharing the previous year question paper of Sathyabama University for B.E/B. Tech in Computer Science Engineering (CSE)-IInd Semester Programming in C++ (6C0094) Exam PART - A (10 X 2 = 20) Answer ALL the Questions 1. List out the characteristics of object oriented programming. 2. What are the merits and demerits of object oriented methodology? 3. Can the parameter of a copy constructor be passed by value? 4. How does a constructor differ from a normal function? 5. Define a class time with hr, min, sec and create 10 objects of it. 6. Specify the limitation of multiple inheritance. 7. What is pure virtual function? 8. In what order are the class constructor called when derived class object is created? 9. Justify the need for virtual function in C++. 10. Distinguish between synchronous and asynchronous exception. PART – B (5 x 12 = 60) Answer All the Questions 11. Explain the basic concept of object oriented programming. (or) 12. With examples, discuss the various control flow statements in C++. 13. List out the different types of constructors and destructors with examples. (or) 14. (a) Define Friend class and specify its importance with an example this. (b) What is the pointer? When is it used? Give an example. 15. Write a C++ program to swap multiple type values using templates. (or) 16. Write a C++ program to compare two distances given in feet and inches to check whether one distance is less than the other by overloading < operator. 17. Create an abstract base class ‘polygon’ with ‘base’ and ‘height’ as members, a function for initialization and a pure virtual function to compute area. (or) 18. (a) What is the use of virtual base class? Explain with an example. (b) Explain multiple inheritance with an example. 19. What is an exception? Explain the various constructs used for handling exceptions. Give an example. (or) 20. Discuss in detail the various file operations and file modes in C++. Address: Sathyabama University Rajiv Gandhi Road, Jeppiaar Nagar, Sholinganallur, Chennai, Tamil Nadu 600119 044 2450 3150 Map:
__________________ Answered By StudyChaCha Member |
#4
| |||
| |||
![]()
Here is the question paper of the Sathyabama University B.E/B. Tech CSE IInd Sem Programming in C++ Exam: SATHYABAMA UNIVERSITY Course & Branch: B.E/B.Tech – AERO/AUTO/CSE/MECH/M&P/IT Title of the Paper: Programming in C++ Max. Marks:80 Sub. Code: 6C0094 (2007/08/09) Time: 3 Hours PART - A (10 X 2 = 20) Answer ALL the Questions 1. List out the characteristics of object oriented programming. 2. What are the merits and demerits of object oriented methodology? 3. Can the parameter of a copy constructor be passed by value? 4. How does a constructor differ from a normal function? 5. Define a class time with hr, min, sec and create10 objects of it. 6. Specify the limitation of multiple inheritance. 7. What is pure virtual function? 8. In what order are the class constructor called when derived class object is created? 9. Justify the need for virtual function in C++. 10. Distinguish between synchronous and asynchronous exception. PART – B (5 x 12 = 60) Answer All the Questions 11. Explain the basic concept of object oriented programming. (or) 12. With examples, discuss the various control flow statements in C++. 13. List out the different types of constructors and destructors with examples. (or) 14. (a) Define Friend class and specify its importance with an example this. (b) What is the pointer? When is it used? Give an example. 15. Write a C++ program to swap multiple type values using templates. 16. Write a C++ program to compare two distances given in feet and inches to check whether one distance is less than the other by overloading < operator. 17. Create an abstract base class ‘polygon’ with ‘base’ and ‘height’ as members, a function for initialization and a pure virtual function to compute area. (or) 18. (a) What is the use of virtual base class? Explain with an example. (b) Explain multiple inheritance with an example. 19. What is an exception? Explain the various constructs used for handling exceptions. Give an example. (or) 20. Discuss in detail the various file operations and file modes in C++. PART - A (10 x 2 = 20) Answer ALL the Questions 1. What is object oriented programming? How is it different from the procedure oriented programming? 2. What do you mean by dynamic initialization of a variable? Give a example. 3. How is a member function of a class defined? 4. List some of the special properties of the constructor. 5. How many arguments are required in the definition of an overloaded unary operator? 6. Distinguish between overloaded functions and function templates. 7. Describe the syntax of the Single Inheritance in C++. 8. What is pure virtual function? 9. What is the difference between the statements? cin >> ch ch = cin.get(); 10. When should a program throw an exception? PART – B (5 x 12 = 60) Answer All the Questions 11. Distinguish between the following terms: (a) Objects and Classes (b) Data Abstraction and Data Encapsulation. (c) Inheritance and Polymorphism (d) Dynamic binding and message passing (or) 12. (a) What are the benefits of OOP? (b) Explain the structure of C++ program. 13. Define a class to represent a bank account Include the following members: Data members: 1) Name of the depositor 2) Account Number 3) Type of Account 4) Balance amount in the account. Member Functions: 1) To assign initial values. 2) To deposit an account. 3) To withdraw an amount after checking the balance. 4) To display name and balance. Write a main program to test the program. (or) 14. (a) Write a program to demonstrate parameterized constructor. (b) Write a program to demonstrate copy constructor. 15. What is function overloading? Write overloaded function for computing area of a circle, a triangle and a rectangle. (or) 16. Write a C++ program overloading + operator to add two object content and store result in another object. 17. Explain Multiple Inheritance with an example. (or) 18. Consider an example of book shop which sells books and video tapes. These two classes are inherited from the base class called media. The media class has command data members such as title and publication. The book class has data members for storing number of pages in a book and the tape class has the playing time in a tape. Each class will have the member functions such as read() and show(). In the base class, these members have to be defined as virtual functions. Write a program which models the class hierarchy for book shop and process objects of these classes using pointers to the base class. 19. Explain the various methods of performing formatted stream I/O operations. (or) 20. Explain the Exception handling model of C++ with various constructs supported by it. PART - A (10 x 2 = 20) Answer ALL the Questions 1. Distinguish between data abstraction and data encapsulation. 2. Explain iostream.h. 3. Explain inline functions. 4. Explain new, delete operators. 5. Why is it necessary to overload an operator? 6. Explain Class Template. 7. When do we use the protected visibility specific to a class member? 8. What is virtual base class? 9. Explain under what circumstances the throw would be used. 10. Explain bad(). PART – B (5 x 12 = 60) Answer All the Questions 11. (a) Describe the major parts of a C++. (4) (b) Write a program that will ask for a temperature Fahrenheit and display in Celsius. (8) (or) 12. (a) Write a program to print the following output using for loop. 1 2 2 3 3 3 4 4 4 4 (b) Compare new operator and malloc function with example. 13. (a) Explain briefly Parameterized Constructor. (5) (b) Write a program using friend function to exchange the private values of two classes. (7) (or) 14. (a) Explain Copy Constructor with example. (8) (b) Explain Class member Accessibility. (4) 15. (a) Write a Program to show how the unary minus operator is overloaded. (8) (b) Which operators cannot to be overloaded? (4) (or) 16. (a) Define a class string. Write a program to overload == operator and compare two strings. (8) (b) What are the rules for overloading operators? (4) 17. (a) Write a program to implement multilevel and multiple inheritance. (9) (b) What are the various Functions that can have access to these members? (3) (or) 18. (a) Write how constructors are implemented when the classes are inherited. (8) (b) What is Containership? How does it differ from inheritance? (4) 19. (a) Write a program that illustrates the application of multiple catch statements. (8) (b) Explain Catch(…) (4) (or) 20. (a) Write a program to demonstrate how certain exception types are not allowed to be throwing. (7) (b) Explain briefly the concept of re throwing an exception. (5)
__________________ Answered By StudyChaCha Member |