Guru Nanak Dev University
B.Sc Information Technology
Object Oriented Programming Using C++
2011 Question Paper
Time:3 Hrs
Minimum Marks:100.
Note:-Attempt any FIVE questions carry equal marks.
1. Explain various control statements of c++ with examples. 20
2. Differentiate between function and operator overloading. Also give one example of each. 20
3. (a) Differentiate between:
(1) Call by value and call by reference.
(2) Structure and union. 10
(b) What is recursion? Explain with the help of an example. 10
4. (a) Explain various storage class specifiers of c++. 10
(b) What is string? write a program to enter a line of text and count how many vowels are there. 10
5. (a) What do you mean by inheritance? Give example of single inheritance. 10
(b) Explain various types of files available in c++. What operations can be performed on a file? give suitable examples. 10
6. (a) What do you mean by constructor? Write main characteristics of a constructor. How it is defined? 10
(b) Describe the use of friend function in c++ with examples. 10
7. Define Polymorphism. Explain its types. How polmorphism is implemented in c++? Give suitable examples. 20
8. Explain the following features of C++:-
(a) Classes and objects
(b) Enumerations
(c) Virtual functions
(d) File stream classes. 20
B.Sc Information Technology
Object Oriented Programming Using C++
2011 Question Paper
Time:3 Hrs
Minimum Marks:100.
Note:-Attempt any FIVE questions carry equal marks.
1. Explain various control statements of c++ with examples. 20
2. Differentiate between function and operator overloading. Also give one example of each. 20
3. (a) Differentiate between:
(1) Call by value and call by reference.
(2) Structure and union. 10
(b) What is recursion? Explain with the help of an example. 10
4. (a) Explain various storage class specifiers of c++. 10
(b) What is string? write a program to enter a line of text and count how many vowels are there. 10
5. (a) What do you mean by inheritance? Give example of single inheritance. 10
(b) Explain various types of files available in c++. What operations can be performed on a file? give suitable examples. 10
6. (a) What do you mean by constructor? Write main characteristics of a constructor. How it is defined? 10
(b) Describe the use of friend function in c++ with examples. 10
7. Define Polymorphism. Explain its types. How polmorphism is implemented in c++? Give suitable examples. 20
8. Explain the following features of C++:-
(a) Classes and objects
(b) Enumerations
(c) Virtual functions
(d) File stream classes. 20
0 comments:
Pen down your valuable important comments below