HSB Bcom Ii Year C++ PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

HSB (Hyderabad School of Business) Degree College

BCOM II Year 4th SEM Object Oriented Programing C++

10 X 1/2=10

Choose the Best Answer to a Question

1) The default access specifer for the class members is

a) Public b) private c) protected d) None of the above.

2) Which feature of the OOPS gives the concept of reusability?

a) Abstraction b) Encapsulation c) Inheritance d) None of the above.

3) Who created C++?


a) Bjarne Stroustrup b) Dennis Ritchie c) Ken Thompson d) Brian Kernighan

4) Wrapping data and its related functionality into a single entity is known as _____________
a) Abstraction b) Encapsulation c) Polymorphism d) Modularity
5) How access specifiers in Class helps in Abstraction?
a) They does not helps in any way
b) They allows us to show only required things to outer world
c) They help in keeping things together d) Abstraction concept is not used in classes
6) C++ is ______________
a) procedural programming language b) object oriented programming language
c) functional programming language
d) Both procedural and object oriented programming language
7) What is this operator called( ? : )
a) conditional b) relational c) casting operator d) unrelational
8) Which of the following is important in a function?
a) Return type b) Function name c) Both return type and function name
d) The return type, function name and parameter list
9) Pick out the other definition of objects.
a) member of the class b) associate of the class c) attribute of the class d) Instance of the class
10) How many objects can present in a single class?
a) 1 b) 2 c) 3 d) as many as possible

10 X 1/2=10

Fill In the Blanks with Suitable Answers:

1. A class is a collection of and .


2. The member of a class cannot be accessed from outside the class.
3. An is a instance of a class.
4. A is used to initialize the objects of a class.
5. A is used to free the memory space.
6. A destructor name is preceded by a symbol.
7. A constructor that takes no argument is known as .
8. The technique of creating a new class from an existing class is known as_______.
9. A class can inherit some or all the properties of a class.
10. When a class is privately inherited, the public members of the base class become In the derived class.
5 X 1=5

Answer Any Three Of The Following Questions:

1) Write Short Notes for Looping with Example?


2) Write a Program to Print Student Mark List in that to read (Rollno, Name, Dept, m1, m2, and m3) and to Find Total, Average,
Result, Geade of the Student using class and objects.
3) Write a Short note for Operators with Example?
4) Write a Short note for Constructors and Destructors with Example?
5) Write a Short note for Inheritance with Example?
6) Write a Program to find FACTORIAL of N Numbers?
7) Write a Program to find SUM of N Numbers?

You might also like