C Programming

Practise Exercise 1: Defining Variables

Only use this if you have a forms compatible browser [Note: You must have an Internet connection in order to have these tests marked]

1. The statement that correctly defines an integer called sum is

2. The statement that correctly defines a character called letter is

3. The correct define statement for a constant called TRUE, which has a value of 1 is

4. The correct definition for a variable called money which can be used to hold currency, is

5. The correct definition of a variable called arctan which will hold scientific notation values (+e), is

6. The correct definition of an integer variable called total initialised to zero, is

7. The correct definition of a variable called loop, which can hold an integer value, is

8. The correct define statement for a constant called GST with a value of .125, is


To submit your comments, press this button:

To clear the form, press this button:


©Copyright B Brown. 1984-1998. All rights reserved.