Introduction to C programming/Quizes/Variables
Question 1[edit | edit source]
List all the native C types. State whether they store integer or floating point data.
Question 2[edit | edit source]
Declare an integer with the name totalMoney.
Question 3[edit | edit source]
What storage type would you use for the following ideas?
- The area of a triangle?
- The number of people in the United States?
- The average number of people living in a house?
- The amount of money in your wallet?
- The number of hours you worked last week?
Question 4[edit | edit source]
What real types would you use for those variables?
Question 5[edit | edit source]
What names would you use to describe them?
Question 6[edit | edit source]
What are the values of x, y, and z after each line of the following code?
- int x,y,z;