B.TECH - Semester 4 object oriented techniques Question Paper 2020 (sep)
Practice authentic previous year university questions for better exam preparation.
- Create a class vector to hold an array of integers and perform the following operations using constructor for dynamic allocation of array based on size given as argument. (a) Create two vectors using constructor
- Create a class vector to hold an array of integers and perform the following operations using constructor for dynamic allocation of array based on size given as argument. (b) Add the vectors and return the resultant vector
- Create a class vector to hold an array of integers and perform the following operations using constructor for dynamic allocation of array based on size given as argument. (c) Multiply all elements in the vector by a given number $X$ and display the resultant vector.
- (a) With a sample C++ program explain overloading of unary operators. 10
- What is a friend function? Why is it required? Explain with an example.
- Briefly explain the use of scope resolution operator in C++.
- Differentiate between static and dynamic memory allocation.
- (b) Briefly describe the different types of inheritance.
- List out operators that can't be overloaded. Explain the reason.
- Differentiate between a template class and a class template. > Answer any one full questions from each Module.
- (b) Write the syntax of new and delete operator in C++. What are the advantages of using them instead of malloc () and free ()?
- Explain with examples storage class specifiers.
- (a) Write a C++ program to evaluate the following function $$ \sin (x)=x-\frac{x^{3}}{3!}+\frac{x^{5}}{5!}-\frac{x^{7}}{7!}+\ldots $$
- (b) Explain explicit Constructors, Parametrized Constructors, and copy Constructors with suitable examples.
- (a) Write a C++ program to compute area of a rectangle and circle using run time polymorphism.
- (b) Differentiate between compile time polymorphism and run time polymorphism.
- (a) When do we need multiple catch blocks for a single try block? Give an example.
- (b) Define a function template to sort given $n$ data items. Use it to sort integer and real valued data items.
- (a) Explain the role of seekg(), tellg(), seekp(), tellp() functions in the process of random access in a binary file.
- (b) Write a C++ program that reads a text file and creates another file that is identical except that every sequence of consecutive blank spaces is replaced by a single space.
- (a) What are the advantages of object oriented design paradigm?
Browse Previous Year Question Papers →