Unit 2: CP1204

Home Assignments: 10/03/2021

1) What are keywords in C? Write all the 32 keywords along with their usage.

2) Which of the following are invalid variable names and why?

  1. BASICSALARY

  2. _basic

  3. basic-hra

  4. #MEAN

  5. group.

  6. 422

  7. population in 2006 over time

  8. mindovermatter

  9. FLOAT

  10. hELLO

  11. queue.

  12. team’svictory

  13. Plot # 3

  14. 2015_DDay

3) If the total selling price of 15 items and the total profit earned on them is input through the keyboard, write a program to find the cost price of one item.

4) Write the following decimal numbers using exponential notation:

  1. 126.00

  2. 656.23

  3. 3426.95

  4. 4893.2

  5. .321

  6. .0123

  7. .006789