Code No:221501 1
II B.Tech., II-Semester Supplementary Examinations, November-2003
1.a) Write the rules for translating BNF into syntax graphs. Give suitable examples.
b) What are the major differences between procedure-oriented and object-oriented
programming.
4.a) Distinguish the following parameter passing methods with suitable examples.
(i) Call by value (ii) Call by reference (iii) Call by name
b) Discuss different parameter passing mechanisms in ADA.
5.a) Explain the dynamic scoping in programming languages, with a suitable example.
b) Define a liasing. Explain its merits and demerits.
!!!!!
Set No.
Code No:221501 2
II B.Tech., II-Semester Supplementary Examinations, November-2003
1.a) What is meta language. Demonstrate BNF description of the ALGOL-60 ‘for’
statement.
b) Draw the syntax graph for ALGOL-60 ‘for’ statement.
3.a) What are the characteristics of enumerated data type. Give an example using Pascal
language.
b) What are the design issues in pointer data types. What are its merits and demerits.
5.a) Distinguish between parameter passing by name and parameter passing by text.
b) What is scope and extent? Explain the dynamic scoping rule.
6.a) What is coroutine? Which languages support it? Distinguish coroutine and
procedure.
b) Define abstract data type. Give an abstract specification of binary search tree.
!!!!!
Set No.
Code No:221501 3
II B.Tech., II-Semester Supplementary Examinations, November-2003
2.a) What is the difference between static binding and dynamic binding? Demonstrate
with a suitable example.
b) List and explain different conditional statements in Pascal and ADA.
3.a) Explain the string processing features available in SNOBOL language with suitable
examples.
b) What is dangling pointer ? When does it occur?
7.a) What is the objective of monitor? Explain how the monitor is implemented in
SIMULA.
b) What is concurrency ? Briefly explain the concurrency features in ADA.
!!!!!
Set No.
Code No:221501 4
II B.Tech., II-Semester Supplementary Examinations, November-2003
3.a) What is type coercion. How the issue of coercion handled in Pascal, ALGOL-68 and
ADA.
b) Distinguish array and record? Give an example of C record (structure) declaration.
6.a) List and briefly explain different exception handlers available in ADA.
b) How is raising an exception different from procedure invocation.
7.a) Explain how message passing is achieved in ADA, between two tasks.
b) Give a solution to producer-consumer problem using monitors.
!!!!!