July 8, 2021 in C and CPP
Differentiate between early binding and late binding.
a) Differentiate between early binding and late binding.
July 8, 2021 in C and CPP
a) Differentiate between early binding and late binding.
July 8, 2021 in C and CPP
d) How do structures in ‘C’ and ‘C++’ differ? How does a ‘C++’ structure differ from a class?
July 8, 2021 in C and CPP
c) Why does the function arguments are called as "signatures"? Give example.
July 8, 2021 in C and CPP
b) What are the merits and demerits of friend function?
July 8, 2021 in C and CPP
a) How can a '::' operator be used as unary operator?
July 8, 2021 in C and CPP
c) Write a class employee with two function get data and put data to read the name and
number of employee and display them respectively. Drive two classes one manager and
other scientist. In manager class add one more variable title. In scientist class add more
variable publication and display them.
July 8, 2021 in C and CPP
b) Explain the concept of exception handling.
July 8, 2021 in C and CPP
a) Differentiate between declaration and definition in C++.
July 8, 2021 in C and CPP
A. class name B. object C. new
D. brackets E. comment F. zero
G. iostream H. inheritance I. multilevel
J. static K. public L. virtual
M. protected N. istream O. catch
4.1 ___________ is used to document a program.
4.2 A constructor’s name is same as _______________.
4.3 A(n) ________ function causes its class to be abstract.
4.4 A pointer to _________ can hold pointers to any data type.
4.5 _________ are used to change the order of precedence in evaluation of expression.
4.6 The process by which objects of one class acquire the attributes of objects of another
class is known as __________.
4.7 The class _____________ declares input function such as get( ) and read( ).
4.8 The___________ operator dynamically allocates memory for the object of a specific
type.
4.9 A virtual function can be made pure virtual function by placing__________ at the end of
its prototype in the class definition.
4.10 Exceptions are thrown from a try statement to a(n) __________ block.
July 8, 2021 in C and CPP
Each statement below is either TRUE or FALSE. Choose the most appropriate one
and ENTER in the “tear-off” sheet attached to the question paper, following
instructions therein.
2.1 A ‘Do’ loop is executed at least once.
2.2 Objects of the string class can be copied with the assignment operator.
2.3 Inheritance is used to improve data hiding and encapsulation.
2.4 An abstract class is never used as a base class.
2.5 A file pointer always contains the address of the file.
2.6 Template creates different versions of a function at run time.
2.7 Throwing an exception always causes program termination.
2.8 Derived classes of an abstract class that do not provide an implementation of a pure
virtual function are also abstract.
2.9 A function template can have more than one template argument.
2.10 The function that has return type void does not return anything.