0% found this document useful (0 votes)
14 views4 pages

C++ Questions

C ++ questions for theory exams point of view

Uploaded by

Shlok khunte
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

C++ Questions

C ++ questions for theory exams point of view

Uploaded by

Shlok khunte
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

C++ Codes Questions

1) WAP to overload '= =' operator


2) WAP to print prime number using Constructor
3) Write a program to find area of circumference
,triangle, cylinder using function overloading concept
4) WAP to print the string in reverse order
5) Write a program to illustrate try-catch concept enter
user id and password from user if entered wrongly
throw an exception
6) WAP to display the entered string is palindrome or
not
7) Write a program to copy the contents of one file to
another file
8) WAP to overload ' << ' and ' >> ' operator
9) WAP to display Simple Interest using inline function
10) WAP to overload ‘*’ operator
11) WAP to print Armstrong of a number
12) Write a program to find the area and perimeter of
square and triangle by creating the class 'shape',
'square', 'triangle' and required data members and
functions like inputvalues(), area().perimeter().
13) Write a program to find out maximum of three
numbers using INLINE function.
14 )Write a program to accepts item details like
(itemcode,cost) and display that in the file.
15 )Write a program to show a main function can be
friend function of a class.
16) Write a program to illustrate try-catch with the
division by zero exception.
17) Write a program to overload '<,>` '==` operators.
18) print the following pattern using CONSTRUCTOR
1
23
456
78910
19) Write a program to overload '+' operator.
20) Write a program to find factorial of a number using
copy constructor.
21) Write a program to overload '* 'operator.
22) Write a program to find fibonacii of a number.
23) Write a program to accept age, if age is greater
than or equal to 18 print msg' driving 1) license can be
issued otherwise throw an exception
24) Write a program to print Armstrong of number
using constructor
25) Write a program to print number is odd or even if
even square root of that number
26) Write a program to accept two numbers from user
and display sum of two numbers using constructor
27) Write a program to find square root of an number
with different data type using function overloading
concept
28) Write a program to overload "++" and "-" operator
29) Write an inline function that returns largest of 3
numbers.
30) Write a program to overload "-" operator
31) Write a program to illustrate try-catch enter user id
and password from user if entered wrongly throw an
exception
32) Write a program to print the following pattern
A
AB
ABC
ABCD
33) Write program to print given string is palindrome
or not
34) Write a program to illustrate try-catch concept
enter user id and password from user if entered
wrongly throw an exception
35) WAP to illustrate multilevel inheritance concept
36) Write a C++ program for division by zero using
exception handling.
37) Write a C++ program to calculate volume of
rectangle, cube, and cylinder using Function
overloading with Class
38) Write a C++ program using class to print factorial
of number
39) Write a C++ program to show '*' and '+' operator
overloading.
40) Write a C++ program to compare strings (length
wise) using '>', '<', '=" operator.
41) WAP to display area of circle using inline function
42) WAP to print prime number using Constructor
43) WAP to print Fibonacci of a number using
Constructor

You might also like