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

Info icon This 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.
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 ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern