University of Technology, Jamaica
School of Computing & Information Technology
Programming II – Tutorial Week 1
1. Indicate whether the identifiers below are valid or invalid by putting a ( √ ) for valid
and ( × ) for invalid.
⃝ _height ⃝ My_name
⃝ Hei$ght ⃝ _height1
⃝ First name ⃝ 1height
2. Fill in the blanks in each of the following.
a) Every C program begins execution at the function _______________________.
b) The ________________ begins the body of every function and the ends
____________ the body of every function.
c) Every statement ends with a(n) ________________________.
d) The __________________________ standard library function displays
information on the screen.
e) The escape sequence \n represents the _______________________ character,
which causes the cursor to position to the beginning of the next line on the
screen.
f) The _________________________ Standard Library function is used to obtain
data from the keyboard.
g) The conversion specifier __________________________ is used in a scanf
format control string to indicate that an integer will be input and in a printf
format control string to indicate that an integer will be output.
h) Whenever a new value is placed in a memory location, that value overrides the
previous value in that location. This process is said to be
__________________________.
i) When a value is read out of a memory location, the value in that location is
preserved; this process is said to be _____________________________.
3. Complete the following exercises from the C How To Program text.
2.16, 2.17, 2.18, 2.19 and 2.20