July 8, 2021 in C and CPP
The range of values for the long data type on a 16-bit machine is
1.1 The range of values for the long data type on a 16-bit machine is
A) -2^31 to 2^31-1
B) -2^64 to 2^64
C) -2^63 to 2^63-1
D) -2^16 to 2^16-1
July 8, 2021 in C and CPP
1.1 The range of values for the long data type on a 16-bit machine is
A) -2^31 to 2^31-1
B) -2^64 to 2^64
C) -2^63 to 2^63-1
D) -2^16 to 2^16-1
July 8, 2021 in C and CPP
b) What is a class template? Write a template-based complete program for adding two
objects of the vector class. Use dynamic data members instead of arrays for storing
vector elements.
July 8, 2021 in C and CPP
a) Write a program to demonstrate the catching of all exceptions. What happens when a
raised exception is not caught by catch-block (in the absence of catching all exceptions
block)?
July 8, 2021 in C and CPP
c) Write down all the rules with respect to virtual functions.
July 8, 2021 in C and CPP
b) What is a copy constructor? What are the advantages of a copy constructor? Give
examples?
July 8, 2021 in C and CPP
Explain the concept of operator overloading? Illustrate with suitable examples? What
are the operators that cannot be overloaded?
July 8, 2021 in C and CPP
July 8, 2021 in C and CPP
b) What are the different forms of inheritance supported by C++? Explain by writing
statements of each type.
July 8, 2021 in C and CPP
a) What is containership or delegation? How does it differ from inheritance? Explain with
suitable example.
July 8, 2021 in C and CPP
b) What is runtime memory management? What support is provided by C++ for this and
how does it differ from C’s memory management?