



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Questions 1 – 10 carry 2 marks each. Answer only by entering a check mark in the appropriate box for each question, and leaving the other one blank. Questions 11 – 20 carry 2 marks each. Answer only by filling in the blank by writing the correct answer. Questions 21 – 30 carry 2 marks each. Answer only by writing the value that the variable x will have after the statements shown are executed. Questions 31 and 32 each carry 10 marks, and Question 33 carries 20 marks. Answer as directed. It should be possible to answer the questions in the space provided. Use the back of the paper where you are specifically asked to. Otherwise, do not use the back of the paper or attach extra sheets unless you absolutely have to. You may consult any books, notes, etc., but no other person. You must not use a cellphone, computer, PDA, or any other information processing device. This is a three hour test.
s1 = s2;
x = x+i+++--j;
x = (w / y) + (w % y) * y;
b = &a[10]; x = (a + 19) – b;
do {x += (i += j);} while (j-- > 0);
*(p++) = 20;
x = y >> 2;
*p = px;
x = (w && y) | y;
int i = 3, *ip = &i, x; x = *(ip = &k[3]-1);