Karnataka State Open University (KSOU) 2011 B.C.A Computer Application- C++ Lab - Question Paper
nminiiin BCAP3
Max. Marks : 75Time : 3 Hours
II Semester B.C.A. Examination, August 2011 C++LAB
Answer any five questions : (5x15=75)
1. Write a C++ program to check whether a date is valid or invalid.
2. Write $ C++ program, to check a number is prime or not using friend function.
3. Create a class called Time that contains seconds, minutes and hours. Use public functions called readtimeQ to read time, addtimeQ to add two times and displaytime to display time.
4. Write a C++ program to find the sum of natural numbers using constructors.
5. Create a base class for a stack and implement Push and Pop operations. Include a derived class to check and stack critereas.
6. Write a C++ program, to find the GCD and LCM of two numbers.
7 . Write a C++ program to read a matrix and display its transpose.
Attachment: |
Earning: Approval pending. |