100% found this document useful (1 vote)
73 views3 pages

CIA II C++ QP Set1

Uploaded by

trainingdesk6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
73 views3 pages

CIA II C++ QP Set1

Uploaded by

trainingdesk6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Format No:CIA-QP-01

ST. PETERS INSTITUTE OF HIGHER EDUCATION AND RESEARCH Issue No.:01


Issue Date: 17.10.2024
I B.Sc Computer Science/ BCA I Semester
Continuous Internal Assessment Test – II
24CPU101 Object Oriented Programming Using C++ (Regulation-2024)
TIME: 2 Hours MAXIMUM: 50 MARKS
DATE: 30.10.2024
COURSE OBJECTIVES:
1. To learn functions in C++.
2. To understand and implement the principles like Abstraction, Data Hiding, Dynamic Binding,
Polymorphism, and Inheritance.
COURSE OUTCOMES:
CO 3: Gain technical skills to elucidate the overloading mechanism.
CO 4: Apply different types of inheritance to solve the given problems.
BLOOMS TAXONOMY LEVEL
K1- Remember
K2-Understand
K3- Apply
K4-Analyze
K5- Evaluate
K6-Create
PART –A (10x1=10 Marks)

MULTIPLE CHOICE QUESTIONS (MCQ)


ANSWER ALL QUESTIONS
Course Knowledge
Q Questions Mark Outcome Level
No.
1. What is automatically called when an object is created?
a) Constructor b) Destructor c) Operator d) Function 1 CO3 K1

2. What is the process of changing a variable from one type to


another? 1 CO3 K1
a) Conversion b) Overloading c) Destructor d) Static
3. What keyword is used to define a member function that
belongs to a class? 1 CO3 K1
a) static b) virtual c) member d) void
4. What term refers to converting one data type to another in C+
+?
1 CO3 K1
a) Casting b) Binding c) Overloading d) Converting

5. What is inheritance inC++?


a) Deriving new classes from existing classes
b) Overloading of classes
1 CO3 K1
c) Classes with same names
d) Wrapping of data into a single class
6.
What is virtual inheritance in C++?
a) C++ technique to enhance multiple inheritance

b) C++ technique to ensure that a private member of the


base class can be accessed somehow. K1
1 CO4
c) C++ technique to avoid multiple inheritance of classes.

d) C++ technique to avoid multiple copies of the base


class into derived class

Which type of inheritance allows a derived class to inherit


from multiple base classes while still having a common base
7. class?
1 CO4 K1
a) Single Inheritance b) Hierarchical Inheritance
c) Hybrid Inheritance d) Multilevel Inheritance

8.
What operator is used to access members of a class through a
pointer? 1 CO4 K1
a) . (dot) b) -> (arrow) c) & (address of) d) * (dereference)

9.
What type of class cannot be instantiated in C++?
a) Base b) Abstract c) Concrete d) Derived 1 CO4 K1

10. What is the purpose of a virtual base class in C++?


a) To allow multiple inheritance b) To prevent ambiguity
c) To create abstract classes d) To manage pointers 1 CO4 K1

PART –B (10x2=20 Marks)


SHORT ANSWERS
ANSWER ALL QUESTIONS
Course Knowledge
Q.no Questions Marks Outcome Level
11. What is a class? 2 CO3 K1

12. Define member function. 2 CO3 K1


13. Define list and array 2 CO3 K1

14. What is virtual base class? 2 CO3 K1


15. Define stack. 2 CO3 K1
16. What is a pointer? 2 CO4 K1
17. Differentiate between list and array. 2 CO4 K1

18. Define linked list 2 CO4 K1


19. Define the term recursion. 2 CO4 K1
20. What are the two types of polymorphism? 2 CO4 K1

PART-C (2x10=20)
ESSAY TYPE ANSWERS
ANSWER ANY TWO QUESTIONS
Course knowledge
Q.No. Questions Marks outcome level

21. Explain the process of type conversion in C++ with the help of
suitable examples. Discuss both implicit and explicit 10 CO3 K2,K3
conversions and their impact on class design.
22. Design and implement a C++ program that defines a class
named Rectangle. This class should encapsulate the attributes 10 CO3 K2,K3
for length and breadth, and include a member function to
calculate and return the area of the rectangle.
23. Evaluate the advantages and disadvantages of using hybrid
inheritance in C++. Use an example to explain how hybrid 10 CO4 K4
inheritance is implemented.

ASSESSMENT TOOL K1 K2 K3 K4
Course Outcome CO3, CO4 CO2 CO3 CO4
CIA - I (50) 30 5 5 10

Prepared by Approved by

Mrs. B. Ambiga Dr. S. Brindha

(Course Teacher) HoD

Dean FASCMH

You might also like