Guru Nanak Dev University 2009 B.C.A Computer Application Bachelor of s(Part-2nd),C++ (OOP Language) - Question Paper
Tuesday, 22 January 2013 03:20Web
[Time allowed-Three Hours]
[Maximum Marks-100]
Note:Attempt any FIVE ques..All ques. carry equal marks.The students can use only non-programmable and non-storage kind calculator.
1.What are expressions ? discuss various kinds of expressions with suitable examples.
[Marks 20]
2.What are different loop control statements used in C++ language ? discuss with suitable examples.[Marks 20]
3.Define the different storage classes available in C++. discuss the use of various storage classes.[Marks 20]
4. (a) elaborate inline functions ? elaborate the restrictions on the use on inline functions ? elaborate its advantages and disadvantages ?
[Marks 10]
(b) elaborate default arguments ? discuss with examples.What are its advantages and disadvantages?[Marks 10]
5.Explain the role of constructors and destructors in C++. Distinguish ranging from default and copy constructor and discuss whether constructors and destructors can be overloaded or not.
[Marks 20]
6.Write a C++ program to sort a list of n numbers.
[Marks 20]
7. (a) explain in detail advantages of pointers.Give suitable examples.
[Marks 10]
(b) It is stated that strings are best implemented by using pointers.Support your arguments.[Marks 10]
8.What are the different file handling functions available in C++ ? discuss every with the help of examples.[Marks 20]
Earning: Approval pending. |