0% found this document useful (0 votes)
10 views2 pages

Program Question Bank 2026

The document is a question bank containing 25 C++ programming exercises. Each exercise focuses on different programming concepts such as calculations, data manipulation, and user input handling. The tasks range from basic operations like calculating the area of a circle to more complex functions like printing Fibonacci series and checking for prime numbers.

Uploaded by

kartik15107
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)
10 views2 pages

Program Question Bank 2026

The document is a question bank containing 25 C++ programming exercises. Each exercise focuses on different programming concepts such as calculations, data manipulation, and user input handling. The tasks range from basic operations like calculating the area of a circle to more complex functions like printing Fibonacci series and checking for prime numbers.

Uploaded by

kartik15107
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

Question Bank for C++ Programs

1) Write a program in C++ to accept radius & print area of a circle.


2) Write a program in C++ to accept Basic salary & print the Gross
salary as follows.
HRA= 40% of Basic salary DA= 20% of Basic salary
GS= BASIC SALARY + HRA+ DA
3) Write a program in C++ to accept 5 numbers and arrange them in
ascending order.
4) Write a program in C++ to print Fibonacci series. Accept end of
the series from user.
5) Write a program in C++ to accept start of the series & End of the
series from user. Print all numbers of a series.
6) Write a program in C++ to accept three numbers & print largest
among them with user defined function.
7) Write a program in C++ to accept a number & print whether
entered number is PRIME number or not.
8) Write a program in C++ to accept a number & store & print
entered number in reverse order. Ex: 456 should be printed as
654.
9) Write a program in C++ to accept a number & print whether it is
positive, negative or zero.
10) Write a program in C++ to accept username & greed the user
with welcome message with username.
11) Write a program in C++ to accept a number & print TABLE of it.
12) Write a program in C++ to accept a character and print same
character in reverse case.
13) Write a program in C++ to accept a character and print whether it
is a character, Number or a special character.
14) Write a program to accept two numbers from user & print sum of
it with user defined function.
15) Write a program in C++ to accept three subject marks & print
result as follows: If any subject marks are less than 35 or
percentage is less than 35 then “fail” else “Pass”.
16) Write a program in C++ to print Fibonacci series accept last
number of series from user.
17) Write a program to accept number & print summation of its
digits.
18) Write a program to print multiple of 5 between 1 to 100.
19) Write a program to accept a string & print same string in reverse
order. Ex:- HELLO should be printed as OLLEH.
20) Write a program in C++ to accept string from user & print string
as follows: Ex: If string is “NICE”. Print string as follows:
N
NI
NIC
NICE
21) Write a program to accept 5 numbers & print largest among
them. (Use Array)
22) Write a program with UDF to calculate area of a circle . Accept
radius from user.
23) Write a program with UDF to check whether entered number is
an EVEN or ODD. Accept number from User.
24) Write a program in C++ with UDF to print factorial of an entered
number.
25) Write a program in C++ with UDF to interchange two numbers
with use of Reference variable.

You might also like