{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ICS 2304 - Programming Paradigms August 2013.pdf - MERU...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 MERU UNIVERSITY OF SCIENCE AND TECHNOLOGY P.O. Box 972-60200 Meru-Kenya. Tel: 020-2069349, 061-2309217. 064-30320 Cell phone: +254 712524293, +254 789151411 Fax: 064-30321 Website: www.mucst.ac.ke Email: [email protected] University Examinations 2012/2013 THIRD YEAR, FIRST SEMESTER EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN COMPUTER SCIENCE ICS 2304: PROGRAMMING PARADIGMS DATE: AUGUST 2013 TIME: 2 HOURS INSTRUCTIONS: Answer question one and any other two questions QUESTION ONE 30 MARKS a. Explain each of the following statements as used in imperative languages and write an example of each. (4 Marks) i. Declarative statements ii. Imperative statements b. Translate each of the following decision making structures to explicit goto snippets or fragments: (6 Marks) i. switch(a) { case patter1: statement1; break; case patter2: statement 2; default:defStatement; } ii. For (statement 1; condition; statement2){ loopBody } c. i. Differentiate between call-by-value and call-by-reference as used in declarative languages.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}