PART A (25 Marks)
Convert the given Binary number into its equivalent Octal and Hexadecimal number
systems. (2)
(i) 11101110 (ii) 10.11011101
--- Content provided by FirstRanker.com ---
2 Draw a flowchart to find the sum of any 'n' numbers.(
3
)
3 Write a code to find the all even numbers in any array.
--- Content provided by FirstRanker.com ---
(3
)
4 Write a code to print the Command line arguments. (2)
5 What is self referential pointer? Give example.
--- Content provided by FirstRanker.com ---
(3)6 Explain the random accessing of the file. (2)
7 What is use of default argument?
(
3
--- Content provided by FirstRanker.com ---
)8 What is destructor? (2)
9 What is the need of template functions? (2)
10 How static member of a class can be initialized and accessed. Give example.
(
--- Content provided by FirstRanker.com ---
3)
PART --13 (5O Marks)
11 (a) What are the components of the coMputr? Explain the functions of each
component. (6)
--- Content provided by FirstRanker.com ---
(b) Write a program to find the _su m of all digits of a number..
(4)
12 (a) Write a program to find te second maximum in an array using function.
(5)
--- Content provided by FirstRanker.com ---
(b) What are the various ' : pre-processor directives or commands and explain themwith simple prowp_11*,.,
(5)
13 (a) Write a program to copy the content of one file into another.
(
--- Content provided by FirstRanker.com ---
5)
(b) Explain,the defining and initializing the structure variable and structure pointers.
(
5
--- Content provided by FirstRanker.com ---
)14 (a) Writ6,a program to overload << operator.
(
5
)
--- Content provided by FirstRanker.com ---
(b) ,Define'a,
Class called 'Figure', member function area () to find area and
constructors
(
--- Content provided by FirstRanker.com ---
5)
(1)''
,
4with different number of arguments
--- Content provided by FirstRanker.com ---
(ii) with default argument(iii) with object of Figure as argument
15 (a) What is exception? Explain exception handling with example.
(
5
--- Content provided by FirstRanker.com ---
)(b) Explain the dynamic binding with example.
(5)
16 (a) Explain type conversion with example.
(
--- Content provided by FirstRanker.com ---
5)
(b) Write a C-program to multiply two matrices of size N x N.
(5)
17 Write the short notes on the following:
--- Content provided by FirstRanker.com ---
(a) Different access specifiers used in C++ (4)(b) Virtual functions
(
3
)
--- Content provided by FirstRanker.com ---
(c) New and delete operators(3)
FirstRanker.com - FirstRanker's Choice