Professional Documents
Culture Documents
D-BCA-020 Programming in C
D-BCA-020 Programming in C
ASSIGNMENT
NOTE:
1. Last date for submission of assignments is 26-12-2022. Assignments received after 26-12-2022
2. Assignments should be in the own handwriting of the student concerned and not type-written
or printed or photocopied.
Q. 1
(a) Explain the various types of control statements available in C++ language
and
Design a C++ program to print the prime numbers between n1 and n2, where n1 and n2 are
any two integers.
(b) Write a C++ programme to multiply two given matrices A, B and store the result in C.
Q. 2
(a) Explain dynamic memory allocation techniques of C++.
(b) What is constructor? Explain various types of constructors with suitable examples.
(c) Explain [] and ++ operator overloading with example.
(d) What is polymorphism? How can you achieve polymorphism at run-time and
compile-time?
and
Write a program to find the volume of cube, cuboids, cone and cylinder using a user
defined function volume( ).