You are on page 1of 2

BCA (New) II Semester Assignments for February 2009 Session

Subject Code Subject Name Credits: 04 : BC 0037 : OOPS Using C++ Assignment No: 01 Marks : 40

Books ID: B 0681 Each question carries Five marks 1. Write a program in c++ to divide a and b and display the quotient and remainder. 2. Explain Break and continue statements in c++. 3. Write a program in c++ to read N numbers in an array, the user should be able to search a particular number in the array using sequential search algorithm. 4. Explain the scope and visibility of variables in c++ functions. 5. Explain concepts of constructors and destructors with an example. 6. Overload += operator for the string class which should allow statements like s1+=s2. This should concatenate strings s1 and s2 and store the result in s1. 7. What is an inheritance? Explain different types of inheritance. 8. Discuss polymorphism in c++. 08 x 05 = 40

BCA (New) II Semester Assignments for February 2009 Session


Subject Code Subject Name Credits: 04 : BC 0037 : OOPS Using C++ Assignment No: 02 Marks : 40

Books ID: B 0681 Each question carries Five marks 08 x 05 = 40

1.

Write a program in c++ to read two floating point numbers and find 2. Write a program in c++ to compute the factorial of a given number.

their sum and average.

3. 4.
5.

Write a program in c++ to read a 3X2 matrix and find smallest Write a function that input radius of the circle and return the area of Implement a class called employee that contains name, employee

number in that matrix. the circle. number and department code. Include a member function getdata() to get data from user and store it in the object. Write a program to test the class and it should store information of 100 employees. 6. Create a class String which stores a string value. Overload ++ operator which converts the characters of the string to uppercase (toupper() library function of ctype.h can be used) 7. Explain the concepts of virtual functions with an example.

8.

Explain different Stream classes available in c++.

You might also like