Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Roll No:
Choices: Date:
Invigilators Signature: IT/B -Tech (IT)/sem-5/IT-5!"/#$%&
'R()R*++IN) 'R*CTIC,S -SIN) C..
*ns/er an0 t/o o1 the 1ollo/ing (#$2#) .#$ (3iva 3oce)
Time: &hours
1. Write a program using inline function perform addition, subtraction, multiplication
and show the output?
2. Write a program to overload area() to calculate area of triangle, circle, rectangle?
3. Write a program to create two objects i.ea1 and a2.!reate a class emplo"ee.
#sing parameteri$ed constructor show the output in this manner
%bject 1 %bject 2
&' ('
2)) 1))
*. Write a program to create 1) objects and destro" 1) objects?
'. Write a program to implement single level inheritance as public and show
output?
+. Write a program to swap two numbers using third implementing friend function?
&. ,mplement inheritance through virtual base class to print -students information -
roll, mar.s and total mar.s?
(. Write a program to implement unar" operator overloading?
/. Write a program to implement multilevel inheritance?
1). Write a program to implement addition of two comple0 numbers using binar"
operator overload?
11. Write a program to implement multiple inheritance?
12. Write a program using manipulator show the output in this manner
1asic /')
2llowances 1)))
3otal 1/')