Beruflich Dokumente
Kultur Dokumente
PIBT TrimesterOne
Trimester 3, 2016
2014
Students are not permitted to write on the examination or any other paper during
reading time.
Page 1 of 5
Section A (100 marks)
Attempt ALL Questions.
Page 2 of 5
Q3) What problems exist in the following code snippet? Please circle the issues
and explain below. (10 marks)
Q4) What problems exist in the following code snippet? Please circle the issues
and explain below (10 marks)
Page 3 of 5
Q5) Write a function to perform the following calculation (30 marks)
Page 4 of 5
Q6) Write a program that prints all numbers divisible by 2 up to a maximum
number provided by the user. You should use a for loop and scanf to achieve
this. (30 marks)
Page 5 of 5