AFE BABALOLA UNIVERSITY
COLLEGE OF SCIENCES
DEPARTMENT OF MATHEMATICAL SCIENCES (COMPUTER SCIENCE PROGRAMME)
Second Semester 2017/2018 300Level Examination Questions
Course: CSC302 (Survey of Programming Languages)
Instruction: Answer Questions One and any other Three. Time Allowed: 2Hrs 15Mins
Question One (24mks)
a. List four procedural programming languages
List four object oriented programming languages
List four scripting languages
List four scripting/programming languages
List four dialects of the C programming language.
List four dialects of the pascal programming language
List the authors of the following programming languages:C; Java; Pascal and Ada
List four strongly typed languages
List four not strongly typed languages
J. List three aspect oriented programming languages
Question Two (12mks)
2. What was the impact of programming languages SrSoftware development?
b. Explain the. specific requirements that influenced the design of different programming
languages;
¢. Give the reasons why some languages and computer architectures did not stand the test of
time a
Question Three (12mks)
a. Present the drawbacks incidental to the various classes or categories of programming
language.
b. What is an abstract syntax tree?
c. What is the major benefit of being able to create new data types in some programming
languages?
Question Four (12mks)
a. What is extensional semantics?
b. What does denotational and natural semantics have in common?
c. Explain the concept, TYPE? What is the consequence of omitting the type information
from variables?
Question Five (12mks)
‘a, Type errors can have significant consequences. Why?
b. State the benefit of using common standards for the format and algorithms that
manipulate floating point numbers?
c. What is type error? And what is the benefit of type checking?
Question Six (12mks)
a. State the benefits of relying on other garbage collection programs
b. Why are higher order procedures powerful abstraction mechanisms?
¢. Draw the schematics of the three models of parameters passing that involves copying of
values
ree me aos
Scanned with CamScannerAFE BABALOLA UNIVERSITY, ADO-EKITI, NIGERIA
COLLEGE OF SCIENCES
DEPARTMENT OF MATHEMATICAL & PHYSICAL SCIENCES
SECOND SEMESTER EXAMINATION 2014/2015 SESSION
‘SURVEY OF PROGRAMMING LANGUAGES - (3UNITS)
’ ‘ATTEMPT ANY FOUR (4) QUESTIONS.
TIME ALLOWED:- 2Hrs 30Mins
Liestion 1 :
How can the knowledge of programming language characteristics benefit the whole computing
community? |
b. What does it mean for a program to be reliable?
Name any and explain any 3 criteria by which languages can be judged.
Question 2
2. Assume the following rules of associativity and precedence for expressions:
Precedence Highest *, /, not
+=, & mod
: Precedence Lowest
Associativity Left to right
“Show the order of evluation ofthe fllowing expressions by parenthesizing all sub-expressions and
placing @ superscript on the right parenthesis to indiate order
| a a*b-1re 5
b. a*(b-1)/emodd Sane
ce (a-b)/ea(d*e/a-3)
d. -aorczdonde wv
fe a>bxorcor de 17
b. Define syntax and semantics.
| « Do you think language design by committee is « good idea? Support your opinion with reasons.
Question 3
eeeerringuages continually evolve, What sort of restrletins do you think are oppropriate for changes in
programming languages? Compare your answers withthe evolution of Fortran
‘make for the idea ofa single language forall programming domains?
b. What arguments ean you
! | What arguments can you make ogainst the idea of a single language for el programming domains?
ion 4
See at is your opinion of the argument that languages that are too complex are too dangerous fo se,
3.
and we should therefore Keep oll languages small and simple?
Explain the different aspects of the cost of «programming language.
E Describe, in your own words, the concept of orthogonality in programming language design.
Question 5 :
Soest any languages distinguish between upperease and lowercase leNtersin usersdefined names, Whet
d cons of this design decision? -
cre the pros ani
b. Whavare the pitfalls that can cause run time bugsin programming?
r Heanor the similarities and Differences between Functional programming and Loge programming?
Scanned with CamScanner.FE BABALOLA UNIVERSITY, ADO-EKITI, NIGERIA
COLLEGE OF SCIENCES
BSc. Computer Science Programme
‘OND SEMESTER 2015/2016 ACADEMIC SESSION EXAMINATION QUESTIONS
Course Title: Survey of Programming Languages Course Code: CSC 302
Units: 3 Time allowed: 2hr 30mins
Instructions: 1. Answer any four questions
2. Start every fresh (new) question on a fresh (new) page
3. Leave one or two spaces to clearly delineate between sub questions in a
page
Question One (15mks)
1. Briefly explain how a good knowledge of different programming languages can aid
the development of better programming languages. [3mks]
Il. List the various areas of need and their associated programming languages in the
earlier periods of computer development. [3mks]
TIL. List the development tools that were intricately linked with the development of
programming languages. [3mks}
IV. _ Inthe context of object oriented programming, what is a message? Distinguish
between passing a message and calling a subprogram [3mks]
V. List three programming languages each, different from the ones already listed against
the following programming languages categories [mks]
a. Object oriented programming languages [Java, C++]
b. Procedural programming languages [C, Pascal]
c. Scripting/programming languages [PhP, Python]
Question Two (1Smks)
i. List the desirable features of programming languages [3mks]
Show the schematic d of an unstructured approach to programming [3mks]
Explain the drawbacks incidental to unstructured programming approach [3mks]
With the aid of a schema, explain how procedural programming languages organizes
program statements. (3mks}
v. Inthe conext of object oriented programming, explain the following terminologies
[mks]
a. Methods;
b. Subclass
c. Parent class
Scanned with CamScannerid ofa schema, illustrate the organization of program components in
ch between a modular programming language and a structured programming
ject oriented programming and ordinary
gral aspects ofa language specification
the definition of datatypes as integral
List the steps in the garbage collection po
How do good programming languages provide
List the atrbutes of a good module specification in modular programming [3mks]
Scanned with CamScanner