SELF TEST
Click here for a FORMS compatible inter-active version of this test

1. Write a Pascal statement which sums the two integer variables digit and value into the variable total

2. Write a Pascal statement which subtracts the value 10 from the variable loop, leaving the result in the variable sum

3. Write a Pascal statement to display the value of the integer variable total

4. Write a Pascal statement to read in a character value into the variable letter

5. Write a Pascal statement to display the value of the real variable small_value using a field width of three places

Answers


Copyright B Brown/P Henry/CIT, 1988-1997. All rights reserved.

1