You are here: Home > Computer Science CSE
All posts from

Data Structure through C++ B.Tech Question Bank : tits.ac.in

Name of the College : Turbomachinery Institute of Technology &Sciences (TITS)
University : JNTU Hyderabad
Department : Computer Science Engineering
Subject Name : Data Structure through C++
Degree : B.Tech
Year/Sem : II/IV
Website : tits.ac.in
Document Type : Question Bank

Download Model Question Paper : https://www.pdfquestion.in/uploads/3041-dscqb.pdf

Data Structure through C++ Question Paper

Subject: Data Structure through C++
Class: II/IV B.Tech I Sem

Unit – I

1. a)Write a C++ program to determine sum of first ‘n’ natural numbers by using class.
b)Explain about the friend function with an example. (Reg.NOV.09)
2. a)Write a C++ program to check whether the given string is palindrome of not.

Related : Turbomachinery Institute of Technology &Sciences Basic Electrical Engineering B.Tech Question Bank : www.pdfquestion.in/3040.html

b)Differentiate between pass by value and pass by reference with an example. (Reg.NOV.09)
3. a)Write a C++ program to arrange the given numbers in ascending order using pointers.
b)Describe the different types of data types that are used in C++ (Reg.NOV.09)
4. What is constructor? Explain the different types of constructor that are used in C++ with an example. (Reg.NOV.09)
5. a)Each class has some special member-functions,which calls can be inserted by the compiler into a code without explicit instruction of the programmer. (Supl.FEB.08)
b)If when creating a variable the programmer explicitly did not intialize it, in some cases, the compiler itself would give it a certain, predefined initial value, and in some cases the initial value would be unpredictable. What does it depend on?


6. a)Can you think of a situation where your program would crash without reaching the breakpoint which you set at the beginning of main()? (Supl.FEB.08)
b)When are copy constructors called?
c)Can a copy constructor accept an object of the same class as parameter, instead of reference of the of the object?
7. a)Explain the need for OOP? And also explain the principals of Object Oriented Programming?
b)Explain the differences between procedural languages and Object Oriented Languages. (Supl.FEB.08)
8. a)Can you think of a situation where your program would crash without reaching the breakpoint which you set at the beginning of main()? (Supl.FEB.08)
b)When are copy constructors called?
c)Can a copy constructor accept an object of the same class as parameter, instead of reference of the object?

Unit – II

1. a)What is template?Explain class templates with an example. (Reg.NOV.09)
b)Write a C++ program to overload the logical AND operator(&&).
2. Write a C++ program to implement to add two complex numbers by overloading operator using friend function. (Reg.NOV.09)
3. Write a C++ program that substitutes an overloaded += operator for the overloaded operator, = concatenating string such as S1=S2 where S2 is added to S1 and the result is left in S1. (Reg.NOV.09)
4. Write a C++ program using templates to implement for finding the minimum and maximum value contained in an array. (Reg.NOV.09)
5. a) When should my destructor be virtual? (Supl.FEB.08)
b)What is a “Virtual constructor”?
c) What’s the difference between how virtual and non-virtual member functions are called?
6. a)Explain the need for “Virtual Destructor”? (Supl.FEB.08)
b)Can we have “ Virtual Constructor?
7. a) What are the different types of polymorphism? (Supl.FEB.08)
b)What are virtual Function? How to implement virtual function in “C++”
8. a) What is multiple inheritance? Write a program to illustrate the concept of Multiple Inheritance. (Supl.FEB.07)
b)What is Hybrid inheritance? Write a program to illustrate the concept of Hybrid Inheritance.

Leave a Reply

How to add comment : 1) Type your comment below. 2) Type your name. 3) Post comment.

www.pdfquestion.in © 2021

Contact Us   Privacy Policy   SiteMap