CICT PART II SECTION 3: STRUCTURED PROGRAMMING WEDNESDAY: 5 JUNE 2013: TIME ALLOWED: 3 HOURS. Answer ALL questions. Marks allocated to each question are shown at the end of the question. Show ALL your workings. ALL programs written should be in C programming language. QUESTION ONE (a) Describe the uses of the following terms in the context of structured programming environment: (i) Compilation (2 marks) (ii) Linking (2 marks) (iii) Build (2 marks) (iv) IDE (2 marks) (b) Citing suitable examples in each case, describe three types of declarations in structured programming. (9 marks) (c) Below is a programming declaration. Int *ptv1,} (i), x, } (ii), a[10]; } (iii) Required: Identify the parts labeled (i) to (iii). (3 marks) QUESTION TWO (a) (i) Distinguish between “declaring a function” and “defining a function”. (4 marks) (ii) Write a C language function that calculates and returns the square of an integer number. (4 marks) (b) Use illustrations to exp...
Comments
Post a Comment