Tutor
 for You
Home Add a Question Search a Tutor Learning Tips Tutor Registration Mathematics Physics
  Arrays....
Why arrays are used?
 
 
What is the difference between a variable and an array?
 
 
 

Classes....
What do you mean by constructor?
 
What do you mean by separation of Interface from the implementation?
 
Discuss different types of constructor.
 
 

Functions....
What is the advantage of compiling a function separately?
 
 
What are the differences between passing a parameter by value and by reference?
 
 
What is the difference between a function and its definition?
 
 
 

Input / Output....
Write a program that finds the roots of the quadratic equation.
 
Why we include iostream.h file in all of the programs of c++?
 
 
 

Introduction....
Write main steps involved in writing a C/C++ program.
 
What is the purpose of escape sequences?
 
What is a variable? Also write the rules to give name to a variable.
 
 

Loops....
Write a program that will generate a random number in the range 1 to 999. The user is to guess the number. Your program provides maximum 10 attempts to the user. The user inputs his/her guess. The program helps the user in such a way that it tells the user if the guess is larger or smaller than the number. In case of success the program displays - You have succeeded - along with number of attempts made, other wise -Sorry you could not guess-.
 
Differentiate between break and continue statements.
 
Write a program to calculate the factorial of n. The value of n should be accepted through keyboard
 
 

Operators....
Calculate the length of the hypotenuse of a right triangle whose base and height are given.
 
Write a program that inputs a five-digit number, find the number in reverse order. Also find the difference between the new number and the original number.
 
Write a program to accept temperature in Centigrade and convert into Fahrenheit.
 
 

Selection Structures....
Explain switch statement with an example.
 
What is the purpose of break statement with reference to switch statement?
 
 
Write a program to calculate the electricity bill on the following rates. Cost is USD 0.213 per unit for first 100 units, US$ 0.423 per unit for next 200 units and US$ 0.675 for remaining units. General Sales Tax is added to the bill at the rate of 15% of the total cost of electricity.
 
 

Structures....
What is a structure?
 
Describe the syntax for defining the composition of a structure.
 
 

 

Ask a question:

    Topic :               

Type your question
Sum of 5 and 4 is  

 
Here you can find questions about different topics in c language and c++ language. Similarly programming problems with their solutions by different people of the field. So that you can choose best answer of a theory question or a best solution of a programming problem.

Life before Computers:

Window was a square or rectangular hole in a room.

Application was something written in paper.

Mouse was an animal.

Keyboard was a Piano.

File was an important office material.

Hard Drive was an uncomfortable road trip.

Cut was done with Knife and Paste was done with Glue.

Web was spider's home.

Virus was flue.

Apple and Blackberry were just fruits.