You are on page 1of 1

TM

M N MSBTE Next Icon UR ENGINEERING FRIEND


I Discover the way to excellence with UEF
#1 stop Destination for Diploma & Degree

C++ ( ONLY PROGRAMS )


Theory test

Chapters to be Covered

Topics : classes , object , function & constructor

5 Marks Question - Attempt all. ( 5 x 10 = 50 marks )

1. Write a program to find out greatest number between three numbers


using class and object. Define function outside the class.
2. Write a program to find out whether a number is prime or not using
class and object.
3. Write a program to find out all even number from 1 to n. Develop a
parameterized constructor to accept the value of n .
4. Write a C++ Program to Display Date using Constructors.
5. Write a program to create default and parametrized constructor in a
single program. Use appropriate example.
6. Write a program to calculate simple interest using appropriate data.
7. Write a program to display table of n .
8. Write a program to display all prime numbers between 1 to 100.
9. Write a program to accept name , roll and marks . Use array of objects
to take 4 input from user.
10. Write a program to show to difference between variable and static
variable.

www.urengineeringfriend.in Maharashtra's No.1 E-learning Platform

You might also like