22316-2023-Winter-Question-Paper (Msbte Study Resources)
22316-2023-Winter-Question-Paper (Msbte Study Resources)
22316-2023-Winter-Question-Paper (Msbte Study Resources)
23124
3 Hours / 70 Marks Seat No.
Marks
P.T.O.
22316 [2]
Marks
2. Attempt any THREE of the following: 12
a) Explain the rules for naming variables in C++. (Any four points)
b) Explain the access specifiers in C++.
c) What is inheritance? Give different types of inheritance.
d) Write a C++ program to find out whether the given number
is even or odd (taking input from keyboard).
Fig. No. 1
b) Describe ‘this’ pointer in C++ with an example.
c) Write a program to declare a class ‘employee’ containing data
members ‘emp-id’ and ‘salary’. Accept and display this data
for 10 employees.