In these exercises you must use the notes above to come up with answers to the questions below (no peeking at the answers in advance!)

1. I want to hold the following, suggest sensible variable types for them:

- Number of chickens in the hen house

- Average weight of each chicken

- Speed of the car in miles per hour

- Price in pence of the ice cream

2. Which of the following are not sensible variable names, and why:

- count

- 2sensor

- car_speed

- engine-size

- x

3. What would be the result of the following expressions:

- 2 + 2

- 2 + 3 * 5

- (2+3) * 4

- 5 & 8

- 4 | 5

- 5 ^ 7

- 5 ^ 2

- 'A' + 3

- 7 >> 1

- 3 << 2

- 10 % 3

4. Explain the value that the variables would have after the following C had been obeyed:

/* equation A */
int i, result ;
i = 0 ;
result = i + 1 ;

/* equation B */
int i = 1, result ;
result = ++i ;

/* equation C */
float x ;
x = 7 / 2 ;

/* equation D */
float x ;
int i ;
x = 7.0 / 2.0 ;
i = x ;