Get premium membership and access revision papers, questions with answers as well as video lessons.

Ics 2204 Programming Languages Question Paper

Ics 2204 Programming Languages 

Course:Bachelor Of Science In Computer Science

Institution: Jomo Kenyatta University Of Agriculture And Technology question papers

Exam Year:2017



JOMO KENYATTA UNIVERSITY OF AGRICULTURE AND TECHNOLOGY
COMPUTER SCIENCE
PROGRAMMING LANGUAGES
TIME: 2hrs
QUESTION ONE
a) Outline five reasons for studying concepts of Programming Languages(5mks)
b) Distinguish five distinct Programming Domains and give an example of a language that is suited to each(10mks)
c) State and clearly explain 5 criteria that maybe used to evaluate programming languages(10mks)
d) State 5 characteristics of pure functions(5mks)
QUESTION TWO
a) Explain four aspects of readability(8mks)
b) State and defend 4 arguments against having a single language for all domains(8mks)
c) Explain on advantage and disadvantage of having type less language(4mks)
QUESTION THREE
a) Explain three aspects of writability (6mks)
b) State three language requirements for implementing Abstract Data Types(ADT’s)(3mks)
c) In object oriented languages there are three ways a subclass can differ from its parent. Outline them(3mks)
d) Using a diagram show the typical activation record for a language with stack dynamic local variables (4mks)
e) Explain the concept of referential transparency in programs and provide an example(4mks)
QUESTION FOUR
a) Explain four aspects of reliability(8mks)
b) State and expound on the four properties of pure functions(8mks)
c) State type checking is better than dynamic type checking for two reasons. Briefly explain them(2mks)
d) Show any two ways C++ client program can reference a namespace defined in a header file (assume the namespace is MyStack and the variable is named topPtr)(2mks)






More Question Papers


Popular Exams


Mid Term Exams

End Term 1 Exams

End Term 3 Exams

Opener Exams

Full Set Exams



Return to Question Papers