PART ? A (25 Marks)
1 Differentiate compiler and interpreter. 3
2 How one type of data can be converted into another type? Give example. 2
3 What are the different ways of passing values to functions? 2
--- Content provided by FirstRanker.com ---
4 List the operations performed on pointer vairbales. 35 Differentiate structure and union. 2
6 Explain the random accessing of the file. 3
7 What is inline function? 3
8 What is the use of 'this' pointer? 2
--- Content provided by FirstRanker.com ---
9 Differentiate overloading and overriding. 210 How static members of a class can be initialized and accessed? Give example. 3
PART ? B (50 Marks)
11 a) Draw and explain the block diagrarfrot a computer. 6
b) What are the various C pre-procesSor dir,ectives or commands and explain
--- Content provided by FirstRanker.com ---
them with simple programs? 412 a) Write a program to find thepaximum in an array using pointer to array and
function. 5
b) Explain the pointer arithmetic with example 5
13 a) Write a program to read the numbers from a file and print all prime numbers
--- Content provided by FirstRanker.com ---
in it.4
b) Write a program to read the 'n' student information and display the information
about the students in the increasing order of marks. Student structure should
have following fields-roll-no, name, marks in 3 subjects. 6
--- Content provided by FirstRanker.com ---
14 a) Write a program to overload + operator.5
b) Define a class called 'BOX', member function volume 0 to find volume and
constructors
i) with different number of arguments
--- Content provided by FirstRanker.com ---
ii) with default argumentiii) with object of BOX as argument
15 a) Explain the different access specifiers used in C++ with examples.
5
b) Explain the dynamic binding with example.
--- Content provided by FirstRanker.com ---
516 a) Write a program to check for `divisible by zero' exception.
5
b) Write a template class to search the array elements of integer or floats.
5
--- Content provided by FirstRanker.com ---
17 Write the short notes on :4+3+3
a) Programming Languages
b) Friend class
c) Operating system
--- Content provided by FirstRanker.com ---
FirstRanker.com - FirstRanker's Choice