SlideShare a Scribd company logo
No. of Printed Pages : 2                              CC-16

       BACHELOR IN COMPUTER APPLICATIONS
 0
 (N1              Term-End Examination
 00
 O                         June, 2011
 O
          CC-16 : INTRODUCTION TO C+ +

Time : 2 hours                           Maximum Marks : 75
Note : Question number 1 is compulsory. Answer any three
        questions from the rest. Use C++ wherever necessary.


1.     (a) Write a program to swap the values of two        10
            integer variables.
       (b) What is the function of a Constructor ? Give     10
            an example of Constructor. What is the
            function of a Destructor ? Give an example
            of Destructor.
       (c) What is a Virtual Function ? How does it         10
            differ from a Pure Virtual Function ? Also,
            give an example of a Pure Virtual Function.


2.     (a) Write a program that accepts two strings         10
            T1 and T2 as input. The program should
            find the starting position of right most
            occurrence of T2 in T1 and print the position
            to the standard output.
       (b) List any five operators of C++ that can be         5
            overloaded.

CC-16                          1                       P.T.O.
3.   (a) Write a program that accepts a file as input 10
          and prints the number of lines in it.
     (b) What is meant by abstraction ? Does C++      5
          support it. Justify your answer.


4.   (a) Write a program for the multiplication of    10
          two matrices. Overload the operator '*'.
     (b) List the differences between cin and scanf   5
          statements.


5.   (a) Explain any two exceptions supported by      7
          C++.
     (b) What are templates ? What are their          8
         advantages ?




CC-16                      2

More Related Content

What's hot

Assignment2
Assignment2Assignment2
Assignment2
Kiran Acharya
 
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
AKSHAY SACHAN
 
C test
C testC test
C++ training day01
C++ training day01C++ training day01
C++ training day01
Gamindu Udayanga
 
Prepostinfix
PrepostinfixPrepostinfix
Prepostinfix
MohitKumawat27
 
Assignment 4
Assignment 4Assignment 4
Assignment 4
Kiran Acharya
 
C multiple choice questions and answers pdf
C multiple choice questions and answers pdfC multiple choice questions and answers pdf
C multiple choice questions and answers pdf
choconyeuquy
 
C __paper.docx_final
C __paper.docx_finalC __paper.docx_final
C __paper.docx_final
Sumit Sar
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
soni_nits
 
C++ day2
C++ day2C++ day2
Games no Windows (FATEC 2015)
Games no Windows (FATEC 2015)Games no Windows (FATEC 2015)
Games no Windows (FATEC 2015)
Fabrício Catae
 
Mid ii important quess
Mid ii important quessMid ii important quess
Mid ii important quess
Anantharaman Rathinam
 
CSC – 184 Programming C
CSC – 184 Programming CCSC – 184 Programming C
CSC – 184 Programming C
ABIR A HAPZU
 
C quiz
C quizC quiz
C quiz
hardeep01
 
Assembly language-lab9
Assembly language-lab9Assembly language-lab9
Assembly language-lab9
AjEcuacion
 
C Programming
C ProgrammingC Programming
C Programming
amitymbaassignment
 
C++:Lab 2
 C++:Lab 2 C++:Lab 2
C++:Lab 2
سلمى شطا
 
C to C++ Migration Strategy
C to C++ Migration Strategy C to C++ Migration Strategy
C to C++ Migration Strategy
Colin Walls
 
C++ lab -4
C++ lab -4C++ lab -4
C++ lab -4
سلمى شطا
 

What's hot (19)

Assignment2
Assignment2Assignment2
Assignment2
 
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
 
C test
C testC test
C test
 
C++ training day01
C++ training day01C++ training day01
C++ training day01
 
Prepostinfix
PrepostinfixPrepostinfix
Prepostinfix
 
Assignment 4
Assignment 4Assignment 4
Assignment 4
 
C multiple choice questions and answers pdf
C multiple choice questions and answers pdfC multiple choice questions and answers pdf
C multiple choice questions and answers pdf
 
C __paper.docx_final
C __paper.docx_finalC __paper.docx_final
C __paper.docx_final
 
17432 object oriented programming
17432   object oriented programming17432   object oriented programming
17432 object oriented programming
 
C++ day2
C++ day2C++ day2
C++ day2
 
Games no Windows (FATEC 2015)
Games no Windows (FATEC 2015)Games no Windows (FATEC 2015)
Games no Windows (FATEC 2015)
 
Mid ii important quess
Mid ii important quessMid ii important quess
Mid ii important quess
 
CSC – 184 Programming C
CSC – 184 Programming CCSC – 184 Programming C
CSC – 184 Programming C
 
C quiz
C quizC quiz
C quiz
 
Assembly language-lab9
Assembly language-lab9Assembly language-lab9
Assembly language-lab9
 
C Programming
C ProgrammingC Programming
C Programming
 
C++:Lab 2
 C++:Lab 2 C++:Lab 2
C++:Lab 2
 
C to C++ Migration Strategy
C to C++ Migration Strategy C to C++ Migration Strategy
C to C++ Migration Strategy
 
C++ lab -4
C++ lab -4C++ lab -4
C++ lab -4
 

Similar to Cc 16

Cs 72
Cs 72Cs 72
Mcs 011 ignou question paper c language
Mcs 011 ignou question paper c languageMcs 011 ignou question paper c language
Mcs 011 ignou question paper c language
wolverine x-man
 
7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
2013-June: 5th Semester CSE / ISE Question Papers
2013-June: 5th  Semester CSE / ISE Question Papers2013-June: 5th  Semester CSE / ISE Question Papers
2013-June: 5th Semester CSE / ISE Question Papers
B G S Institute of Technolgy
 
5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Pcd201516
Pcd201516Pcd201516
Pcd201516
sheikhmoidin
 
Oops qb cse
Oops qb cseOops qb cse
5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
C g.2010 supply
C g.2010 supplyC g.2010 supply
C g.2010 supply
sairamchowdary
 
A109210503 digitallogicdesign1
A109210503 digitallogicdesign1A109210503 digitallogicdesign1
A109210503 digitallogicdesign1
jntuworld
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
Sreeju Sree
 
Cs 69
Cs 69Cs 69
07 A1 Ec01 C Programming And Data Structures
07 A1 Ec01 C Programming And Data Structures07 A1 Ec01 C Programming And Data Structures
07 A1 Ec01 C Programming And Data Structures
guestac67362
 
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Www
D I G I T A L  I C  A P P L I C A T I O N S  J N T U  M O D E L  P A P E R{WwwD I G I T A L  I C  A P P L I C A T I O N S  J N T U  M O D E L  P A P E R{Www
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Www
guest3f9c6b
 
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
guest3f9c6b
 
5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Computer science sqp
Computer science sqpComputer science sqp
Computer science sqp
B Bhuvanesh
 
1st Semester M Tech Computer Science and Engg (Dec-2013) Question Papers
1st Semester M Tech Computer Science and Engg  (Dec-2013) Question Papers 1st Semester M Tech Computer Science and Engg  (Dec-2013) Question Papers
1st Semester M Tech Computer Science and Engg (Dec-2013) Question Papers
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
annaunivedu
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
chinthala Vijaya Kumar
 

Similar to Cc 16 (20)

Cs 72
Cs 72Cs 72
Cs 72
 
Mcs 011 ignou question paper c language
Mcs 011 ignou question paper c languageMcs 011 ignou question paper c language
Mcs 011 ignou question paper c language
 
7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
 
2013-June: 5th Semester CSE / ISE Question Papers
2013-June: 5th  Semester CSE / ISE Question Papers2013-June: 5th  Semester CSE / ISE Question Papers
2013-June: 5th Semester CSE / ISE Question Papers
 
5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers5th Semester CS / IS (2013-June) Question Papers
5th Semester CS / IS (2013-June) Question Papers
 
Pcd201516
Pcd201516Pcd201516
Pcd201516
 
Oops qb cse
Oops qb cseOops qb cse
Oops qb cse
 
5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...
 
C g.2010 supply
C g.2010 supplyC g.2010 supply
C g.2010 supply
 
A109210503 digitallogicdesign1
A109210503 digitallogicdesign1A109210503 digitallogicdesign1
A109210503 digitallogicdesign1
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
 
Cs 69
Cs 69Cs 69
Cs 69
 
07 A1 Ec01 C Programming And Data Structures
07 A1 Ec01 C Programming And Data Structures07 A1 Ec01 C Programming And Data Structures
07 A1 Ec01 C Programming And Data Structures
 
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Www
D I G I T A L  I C  A P P L I C A T I O N S  J N T U  M O D E L  P A P E R{WwwD I G I T A L  I C  A P P L I C A T I O N S  J N T U  M O D E L  P A P E R{Www
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Www
 
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
 
5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...
 
Computer science sqp
Computer science sqpComputer science sqp
Computer science sqp
 
1st Semester M Tech Computer Science and Engg (Dec-2013) Question Papers
1st Semester M Tech Computer Science and Engg  (Dec-2013) Question Papers 1st Semester M Tech Computer Science and Engg  (Dec-2013) Question Papers
1st Semester M Tech Computer Science and Engg (Dec-2013) Question Papers
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
 

More from Web Developer

Eco 2
Eco 2Eco 2
Cs 612
Cs 612Cs 612
Cs 611 (p)s4
Cs 611 (p)s4Cs 611 (p)s4
Cs 611 (p)s4
Web Developer
 
Cs 611 (p)s3
Cs 611 (p)s3Cs 611 (p)s3
Cs 611 (p)s3
Web Developer
 
Cs 611 (p)s2
Cs 611 (p)s2Cs 611 (p)s2
Cs 611 (p)s2
Web Developer
 
Cs 611 (p)s1
Cs 611 (p)s1Cs 611 (p)s1
Cs 611 (p)s1
Web Developer
 
Cs 611
Cs 611Cs 611
Cs 610
Cs 610Cs 610
Cs 601
Cs 601Cs 601
Cs 74 (p)s8
Cs 74 (p)s8Cs 74 (p)s8
Cs 74 (p)s8
Web Developer
 
Cs 75
Cs 75Cs 75
Cs 74 (p)s7
Cs 74 (p)s7Cs 74 (p)s7
Cs 74 (p)s7
Web Developer
 
Cs 74 (p)s6
Cs 74 (p)s6Cs 74 (p)s6
Cs 74 (p)s6
Web Developer
 
Cs 74 (p)s5
Cs 74 (p)s5Cs 74 (p)s5
Cs 74 (p)s5
Web Developer
 
Cs 74 (p)s4
Cs 74 (p)s4Cs 74 (p)s4
Cs 74 (p)s4
Web Developer
 
Cs 74 (p)s3
Cs 74 (p)s3Cs 74 (p)s3
Cs 74 (p)s3
Web Developer
 
Cs 74 (p)s2
Cs 74 (p)s2Cs 74 (p)s2
Cs 74 (p)s2
Web Developer
 
Cs 74 (p)s1
Cs 74 (p)s1Cs 74 (p)s1
Cs 74 (p)s1
Web Developer
 
Cs 74
Cs 74Cs 74
Cs 73
Cs 73Cs 73

More from Web Developer (20)

Eco 2
Eco 2Eco 2
Eco 2
 
Cs 612
Cs 612Cs 612
Cs 612
 
Cs 611 (p)s4
Cs 611 (p)s4Cs 611 (p)s4
Cs 611 (p)s4
 
Cs 611 (p)s3
Cs 611 (p)s3Cs 611 (p)s3
Cs 611 (p)s3
 
Cs 611 (p)s2
Cs 611 (p)s2Cs 611 (p)s2
Cs 611 (p)s2
 
Cs 611 (p)s1
Cs 611 (p)s1Cs 611 (p)s1
Cs 611 (p)s1
 
Cs 611
Cs 611Cs 611
Cs 611
 
Cs 610
Cs 610Cs 610
Cs 610
 
Cs 601
Cs 601Cs 601
Cs 601
 
Cs 74 (p)s8
Cs 74 (p)s8Cs 74 (p)s8
Cs 74 (p)s8
 
Cs 75
Cs 75Cs 75
Cs 75
 
Cs 74 (p)s7
Cs 74 (p)s7Cs 74 (p)s7
Cs 74 (p)s7
 
Cs 74 (p)s6
Cs 74 (p)s6Cs 74 (p)s6
Cs 74 (p)s6
 
Cs 74 (p)s5
Cs 74 (p)s5Cs 74 (p)s5
Cs 74 (p)s5
 
Cs 74 (p)s4
Cs 74 (p)s4Cs 74 (p)s4
Cs 74 (p)s4
 
Cs 74 (p)s3
Cs 74 (p)s3Cs 74 (p)s3
Cs 74 (p)s3
 
Cs 74 (p)s2
Cs 74 (p)s2Cs 74 (p)s2
Cs 74 (p)s2
 
Cs 74 (p)s1
Cs 74 (p)s1Cs 74 (p)s1
Cs 74 (p)s1
 
Cs 74
Cs 74Cs 74
Cs 74
 
Cs 73
Cs 73Cs 73
Cs 73
 

Cc 16

  • 1. No. of Printed Pages : 2 CC-16 BACHELOR IN COMPUTER APPLICATIONS 0 (N1 Term-End Examination 00 O June, 2011 O CC-16 : INTRODUCTION TO C+ + Time : 2 hours Maximum Marks : 75 Note : Question number 1 is compulsory. Answer any three questions from the rest. Use C++ wherever necessary. 1. (a) Write a program to swap the values of two 10 integer variables. (b) What is the function of a Constructor ? Give 10 an example of Constructor. What is the function of a Destructor ? Give an example of Destructor. (c) What is a Virtual Function ? How does it 10 differ from a Pure Virtual Function ? Also, give an example of a Pure Virtual Function. 2. (a) Write a program that accepts two strings 10 T1 and T2 as input. The program should find the starting position of right most occurrence of T2 in T1 and print the position to the standard output. (b) List any five operators of C++ that can be 5 overloaded. CC-16 1 P.T.O.
  • 2. 3. (a) Write a program that accepts a file as input 10 and prints the number of lines in it. (b) What is meant by abstraction ? Does C++ 5 support it. Justify your answer. 4. (a) Write a program for the multiplication of 10 two matrices. Overload the operator '*'. (b) List the differences between cin and scanf 5 statements. 5. (a) Explain any two exceptions supported by 7 C++. (b) What are templates ? What are their 8 advantages ? CC-16 2