Need help about a course? |
|
Home / Test Papers / IGNOU / CC16 (S) Introduction To C++ CC16 (S) Introduction To C++ June 2007 | Ask a question Print this page |
BACHELOR IN COMPUTER APPLICATIONS
Term-End Examination
June, 2007
CC16 (S) : INTRODUCTION TO C++
Time: 2 hours
Maximum Marks: 75
1.(a) Write a program in C++ to search for a given integer among the list of integers and display the position where that integer is present in the list, using linear search technique. (10)
(b) With the help of an example for each, explain the use of the following operators in C++ : (10)
(i) Increment operator
(ii) Size of operator
(iii) Arithmetic if operator
(iv) Comma operator
(v) Bitwise AND operator
(c) Write a program to add 2 matrices of size 2 x 2 by sending objects by reference method. (10)
2.(a) Explain the concept of polyrnorphism.illustrate this concept with the help of any C++ program. (8)
(b) With the help of an example for each, explain the implicit and explicit type conversions in C++.(7)
3.Write a program in C++, using the inheritance concept to define "employee" as a base class and derive "Manager" , "'Engineer" , "Technical officer" , "Clerk" as derived classes. Incorporate meaningful data in each respective class and display the name of the person, designation, department she/he is working with if the person-name is given as input. (8)
(b) Distinguish between C and C++. (7)
4. (a) What are macros ? How are ,macros defined in C++ ? With the help of an example, illustrate the usage of it in prograrnming. (8)
(b) Distinguish between the private and public member functions with the help of an example for each.(7)
5.(a) Write a program in C++. to define a class namely "student" with rneaningful data mernbers and functions" .Declare an array of 25 objects frorn the respective class and display the data by using a looping construct. (8)
(b) What is the basic purpose of operator overloading ?Explain the concept with the help of an example. (7)
Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - IGNOU
Enter a detailed keyword. Ex: Question Papers of IGNOU MCA Ist Semester