Академический Документы
Профессиональный Документы
Культура Документы
12
UNIT-III
5. a) Explain container class in C++
b) What are abstract classes? Give examples
c) Write rules for operator overloading
4
4
4
OR
UNIT-IV
7. a) What is the purpose of new operator in C++? What does delete
operator do in C++?
b) What are virtual destructors? How are they used in C++?
6
6
OR
6
6
UNIT-V
9. a) Describe the limitations of exception handling in C++
b) Define a function template that returns the sum of an array of
elements. The function must use two arguments-the type of
array (generic) and the size of array (int)
OR
6
6
[123456789/II S/111]
[A-11]
[EURCS 206]
UNIT-I
1. Write a program to read a positive integer less than 99999 and
prints the individual digits of the number on a line with three spaces
in between them. The first line is to start with left most digit (it can
be zero if the given number has less than 5 digits) and prints all the
five digits. Second line starts with second digit from left and prints
four digits and so on. For example, if the given number is 1234, the
out put lines should be respectively.
0 1 2 3 4; 1 2 3 4; 2 3 4; 3 4 and 4
12
OR
4
4
OR
12
UNIT-III
5. a) Explain container class in C++
b) What are abstract classes? Give examples
c) Write rules for operator overloading
4
4
4
OR
UNIT-IV
7. a) What is the purpose of new operator in C++? What does delete
operator do in C++?
b) What are virtual destructors? How are they used in C++?
6
6
OR
6
6
UNIT-V
9. a) Describe the limitations of exception handling in C++
b) Define a function template that returns the sum of an array of
elements. The function must use two arguments-the type of
array (generic) and the size of array (int)
OR
6
6
[123456789/II S/111]
[A-11]
[EURCS 206]
UNIT-I
1. Write a program to read a positive integer less than 99999 and
prints the individual digits of the number on a line with three spaces
in between them. The first line is to start with left most digit (it can
be zero if the given number has less than 5 digits) and prints all the
five digits. Second line starts with second digit from left and prints
four digits and so on. For example, if the given number is 1234, the
out put lines should be respectively.
0 1 2 3 4; 1 2 3 4; 2 3 4; 3 4 and 4
12
OR
4
4