Comp SC - Viva & List of Programs-1
Comp SC - Viva & List of Programs-1
VIVA QUESTIONS
i. Which operator used to access member functions of a class.
ii. Which operator used to define the member functions outside the class.
iii. Which is the default access specifiers of a class
iv. What is a class?
v. What is an object?
vi. Mention the access specifiers in C++
vii. Give an example for data encapsulation.
VIVA QUESTIONS
i. What is an array?
ii. What is insertion operation with respect to data structure? (Exclusively
asked for inserting an element into an array program )
iii. What is deletion operation with respect to data structure? (Exclusively
asked for deletion an element from an array program )
iv. What is searching? (Exclusively asked for Binary search program )
v. What is the condition to apply binary search technique to search an
element in an array (Exclusively asked for Binary search program )
vi. What is sorting? (Exclusively asked for Sorting program)
vii. Give an example for the primitive data structure
viii. Give an example for a linear data structure
ix. Give an example for non-linear data structure
10. Write a program to find the sum of the series 1+x+x2+...+xn using constructor.
VIVA QUESTIONS
i. What is a constructor?
ii. When does a constructor is invoked?
iii. Mention the types of constructor.
iv. Which section of a class a constructor can be defined.
11. Create a base class containing the data members roll number and name. Also
create a member function to read and display the data using the concept of single
level inheritance. Create a derived class that contains marks of two subjects and
total marks as the data members.
VIVA QUESTIONS
i. What is inheritance?
ii. What is a base class
iii. What is derived class?
iv. Mention the operator used to create a derived class in C++
12. Create a class containing the following data members register No., name and
fees. Also create a member function to read and display the data using the
concept of pointers to objects.
VIVA QUESTIONS
i. What is a pointer?
ii. Mention the address operator in C++
iii. Which operator is used to allocate memory dynamically?
iv. Which operator is used to deallocate memory dynamically?
PART-B
(HTML)
(SQL)