Sei sulla pagina 1di 1

Q-1. Who discovered C++ and when?

Q-2. What are the different data types in C++?


Q-3. Give an example of if else if statement.
Q-4. What is the use of switch case, give example.
Q-5. Why do we use loops? Write down the syntax of for loop.
Q-6. Give the use of the following:
a) cin
b) cout
c) iostream.h
d) header files
e) getch()
Q-7. Write a program to add, subtract, multiply or divide two numbers depending
upon a choice.
Q-8. Print all even numbers between 50 to 500.
Q-9. Calculate 81% of 555 and print.
Q-10. Input a number and print the number, its square and cube.

Potrebbero piacerti anche