0% found this document useful (0 votes)
95 views2 pages

MC0066

The document contains assignments for a Master of Computer Application semester 2 OOPS using C++ course. It includes 4 questions from 2 books for Assignment Set 1 worth 40 marks, and 4 more questions from the same books for Assignment Set 2 worth another 40 marks. Students must write C++ programs to check matrix multiplication, check for palindromes, implement a product structure and store 100 products, explain exception handling, generate prime numbers, implement a stack with push and pop, describe allocators and sequence container adapters, and demonstrate throwing and catching exceptions with examples.

Uploaded by

Sk Sahani J
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views2 pages

MC0066

The document contains assignments for a Master of Computer Application semester 2 OOPS using C++ course. It includes 4 questions from 2 books for Assignment Set 1 worth 40 marks, and 4 more questions from the same books for Assignment Set 2 worth another 40 marks. Students must write C++ programs to check matrix multiplication, check for palindromes, implement a product structure and store 100 products, explain exception handling, generate prime numbers, implement a stack with push and pop, describe allocators and sequence container adapters, and demonstrate throwing and catching exceptions with examples.

Uploaded by

Sk Sahani J
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

http://www.scribd.

com/collections/3154490/MCA-SEM-2 July 2011 Master of Computer Application (MCA) Semester 2 MC0066 OOPS using C++ 4 Credits
(Book ID: B0681 & B0715)

Assignment Set 1 (40 Marks)


Answer all Questions Book ID: B0681 Each Question carries ten Marks

1. Write a program in C++ for matrix multiplication. The program should accept the
dimensions of both the matrices to be multiplied and check for compatibility with appropriate messages and give the output.

2. Write a program to check whether a string is a palindrome or not. Please note that palindrome is one which remains the same if you reverse the characters in the string. For example MADAM.

3. What is structure in C++? Define a structure named product with elements productcode, description, unitprice and qtyinhand. Write a C++ program that implements the structure and enables to store atleast 100 product data.

Book ID: B0715 4. What is the purpose of exception handling? How do you infer from the phrase, Throwing an exception?. . .

July 2011 Master of Computer Application (MCA) Semester 2 MC0066 OOPS using C++ 4 Credits
(Book ID: B0681 & B0715)

Assignment Set 2 (40 Marks)


Answer all Questions Each Question carries ten Marks

Book ID: B0681 1. Write a program which accepts a number from the user and generates prime numbers till that number 2. Implement a class stack which simulates the operations of the stack allowing LIFO operations. Also implement push and pop operations for the stack.

Book ID: B0715 3. What are allocators? Describe the sequence container adapters. 4. Write about the following with the help of suitable programming examples: A) Throwing an Exception B) Catching an Exception

You might also like