|
Home / Test Papers / IGNOU / CC16 Introduction To C++ CC16 Introduction To C++ June 2007 | Ask a question Print this page |
Courses, Admissions & Eligibility
Admission to BA International Hospitality Administration - 2008-09 Session
Admission Procedure & Schedule
Colleges, Faculties & Departments
Partner Institutions outside India
IGNOU Test Papers (by Paper code)
IGNOU Dec 2008 Examination Timetables
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++, using the operator overloading to concatenate two strings. (10)
(b) With the help of an example for each, explain the use of the following operators in C++ : (10)
(i) Scope Resolution operator
(ii) Decrement operator
(iii) BITWISE OR operator
(iv) o/o operator
(v) New
(c) Write a program in C++ to perform the following : D Z : A + B - C . Here A, B, C and D are 2 x 2 matrices. (10)
2.(a) Explain the concept of Single Inheritance and illustrate this with the help of an example. (8)
(b) Identify which of the following are not the keywords in C++ :
(i) new
(ii) throw
(iii) long
(iv) medium
(v) intern
(vi) online
(vii) friend
(viii) double
(ix) section
(x) protected
(xi) macro
(xii) typedef
(xiii) non-volatile
(xiv) destruct
(xv) real
3.(a) Write a progarm in ' C++, using the inheritance concept, to define "player" as a base class and derive "cricket-player" "football-player","volleyball-player" and "chess_player" as derived classes. Incorporate meaningful data members and member functions. If the name of the person is given as input, it should display the game with which the player is associated along with the matches she/he played. (8)
(b) Distinguish between the procedural and object oriented programming language. (7)
4.(a) Write the syntax of the following and give an example for each : (8)
(i) Switch statement
(ii) Do-while
(b) Write a program in C++, using recursion to factorial of a given number. (7)
5. Describe the following and give their usage : (5*3=15)
(i) Friend function
(ii) Constructors and Destructors
(iii) Templates
(iv) Nested classes
(v) Files and Streams
Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - Forensic Science
Enter a detailed keyword. Ex: Question Papers of IGNOU MCA Ist Semester