Code No:221501 II B.Tech., II-Semester Supplementary Examinations, November-2003
PRINCIPLES OF PROGRAMMING LANGUAGES (Computer Science and Systems Engineering) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks ---Write the rules for translating BNF into syntax graphs. Give suitable examples. What are the major differences between procedure-oriented and object-oriented programming.
2.a) b)
What is a variable ? What are its components? Explain how conditional statements are implemented in ALGOL-60, PL/1, and C languages.
3.a) b)
Distinguish type coercion and type equivalence. What are different structured data types. Give a typical ALGOL 68 record declaration.
4.a)
Distinguish the following parameter passing methods with suitable examples. (i) Call by value (ii) Call by reference (iii) Call by name Discuss different parameter passing mechanisms in ADA.
ld .
or
b)
in
1.a) b)
Explain the dynamic scoping in programming languages, with a suitable example. Define a liasing. Explain its merits and demerits.
6.a) b)
Explain briefly how exception handling is carried out in PL/1. What is meant by abstract data type? Give an abstract specification for queue.
7.a) b)
Distinguish between semaphore and monitor. How monitor is implemented in CSP/K.
Code No:221501 II B.Tech., II-Semester Supplementary Examinations, November-2003
PRINCIPLES OF PROGRAMMING LANGUAGES (Computer Science and Systems Engineering) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks ----
b)
What is meta language. Demonstrate BNF description of the ALGOL-60 ‘for’ statement. Draw the syntax graph for ALGOL-60 ‘for’ statement.
in
1.a)
Distinguish between static and dynamic allocation of memory. Explain different conditional statements in ALGOL-68 and C languages.
3.a)
What are the characteristics of enumerated data type. Give an example using Pascal language. What are the design issues in pointer data types. What are its merits and demerits.
b)
ld .
2.a) b)
Define ahasing. What are its merits and demerits? Explain different parameter passing methods permissible in C language.
5.a) b)
Distinguish between parameter passing by name and parameter passing by text. What is scope and extent? Explain the dynamic scoping rule.
6.a)
What is coroutine? Which languages support it? Distinguish coroutine and procedure. Define abstract data type. Give an abstract specification of binary search tree.
uW
b)
or
4.a) b)
What is semaphore? Explain how a binary semaphore is implemented. Give a solution to producer-consumer problems using monitors.
8.
Briefly explain the following : (a) Monitors (b) Message passing (c) Generic functions.
Aj
nt
7.a) b)
!!!!!
Set No.
3
Code No:221501 II B.Tech., II-Semester Supplementary Examinations, November-2003
in
PRINCIPLES OF PROGRAMMING LANGUAGES (Computer Science and Systems Engineering) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks ---What are the salient features of a programming language? Explain with suitable examples, how different BNF descriptions are converted into syntax graphs.
2.a)
What is the difference between static binding and dynamic binding? Demonstrate with a suitable example. List and explain different conditional statements in Pascal and ADA.
3.a) b)
Explain the string processing features available in SNOBOL language with suitable examples. What is dangling pointer ? When does it occur?
or
b)
ld .
1.a) b)
Distinguish between scope and extent ? Explain the following parameter passing methods with suitable examples. (i) Call by value (ii) Call by reference (iii) Call by value-result.
5.a) b)
Distinguish between subroutine and function. What is generic function. Give a suitable example.
6.a) b)
What are various design issues of exception handling? Explain how the exception handling is implemented in PL/1.
7.a)
What is the objective of monitor? Explain how the monitor is implemented in SIMULA. What is concurrency ? Briefly explain the concurrency features in ADA.
b)
Briefly explain the following : (a) Basics of LISP (b) Type equivalence (c) Coroutine.
Aj
nt
8.
uW
4.a) b)
!!!!!
Set No.
4
Code No:221501 II B.Tech., II-Semester Supplementary Examinations, November-2003
in
PRINCIPLES OF PROGRAMMING LANGUAGES (Computer Science and Systems Engineering) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks ---Write the BNF description of ‘for’ statement in ALGOL-68 language. Define syntax, semantics and pragmatics of a language.
2.a)
Distinguish the following : (i) Compile time (ii) Link time (iii) Load time (iv) Run time. Explain how ‘for’ statement is implemented in ADA, Pascal and C languages.
3.a) b)
What is type coercion. How the issue of coercion handled in Pascal, ALGOL-68 and ADA. Distinguish array and record? Give an example of C record (structure) declaration.
or
b)
ld .
1.a) b)
Distinguish between static scope and dynamic scope. What is activation record. Briefly explain its role while program execution.
5.
What are different parameter passing mechanisms? examples.
6.a) b)
List and briefly explain different exception handlers available in ADA. How is raising an exception different from procedure invocation.
7.a) b)
Explain how message passing is achieved in ADA, between two tasks. Give a solution to producer-consumer problem using monitors.
8.
Write short notes on : (a) Functional programming (b) Function overloading (c) Semaphore.
Code No:221501 II B.Tech., II-Semester Supplementary Examinations ...
SIMULA. b) What is concurrency ? Briefly explain the concurrency features in ADA. 8. Briefly explain the following : · (a) · Basics of LISP · (b) · Type equivalence.
starter, (iii) Auto transformer starter limiting the supply line starting current to · twice the full-load value. Find the auto-transformer tapping in this case. - - -.
c) A simple Delavel steam turbine nozzle ring is supplied with 200 kg/hr of dry · steam at 10 ... iii) The dryness of steam just as it leaves the turbine rotor blading.
a) Follower moves outwards through 40mm during 60° of cam rotation. ... Draw the profile of the cam when the axis of the follower is offset 20mm towards.
Code No: 220155. II-B.Tech. II-Semester Supplementary Examinations, April/May-2004 · PROBABILITY AND STATISTICS · (Common to Civil Engineering, Mechanical Engineering, Production ... b) If X is normally distributed with mean 8 and S.D 4, find ... 3.a
b) Explain the concept of Tunnel diode in detail. Draw and explain its ... voltage for a P channel JFET with a=2Ã10-4 cm and channel resistively · Ï=10ohm-cm.
State the second law of thermodynamics and explain how it is applied for · development of heat engine. 6. A reversible heat engine absorbs 252 kcal at 260°C, ...
b) Describe MOTT & WHEELER method of test Coke. 2.a) Describe a method for the manufacture of producer gas. b) Mention important properties and uses of ...
1.a) Explain the star-delta transformation. b) Using mesh analysis, find the currents in all the branches of the network given · below. 2.a) Explain Lenz's law and ...
Derive the equation for steady-state heat transfer through a spherical shell of inner · radius r1 and ... C and the outer wall of the annulus is insulated. Neglecting ...
(a) Job order production and batch production system. (b) Mass production and flow production. [4+4+4+4] · 7. DefineâCritical pathâ, âslack timeâand âDummy ...
(c) Explain sign conventions of heat and work in thermodynamics. [5+5+6] · 3. (a) State and explain second law of thermodynamics. (b) Define and explain ...
b=4.318 cm is fed by a 4 GHz carrier from a coaxial cable. Determine if a · TE10 mode will be propagated. If so calculate the phase velocity and group · velocity.
1.a) Explain with a neat sectional view the operation and advantages of hot blast · cupola. b) Discuss the various types of refractories used for cupola lining.
5.a) What is sine bar. Sketch an arrangement for any one of the applications. b) Describe the constructional features and working of optical collimator.
Polynomials in single variable are stored in the form of linked lists. Each · structure has space for one coefficient and one exponent and a link. Assume.
armature and field resistances are 0.03 ohm. And 60 ohm ... 6.a) Explain with the help of diagrams how a rotating magnetic field is produced in · the air gap of a ...
b) With the help of a neat sketch of psychometric chart show the various psychrometric · processes naming them clearly. c) Explain what effective temperature is ...
b) State the method of manufacturing and special qualities of the following bricks. (i) sand â lime bricks (ii) Fly ash bricks (iii) Stabilised bricks. c) Explain briefly ...
(b) One bag contains 4 White balls and 3 black balls and a second bag contains 3 ... [8+8] · 3. (a) The amount of bread ( in hundreds of pounds) X that a certain ...
the following (with comments and indentation) · a) To read the ... OR. Develop a complete COBOL program with indentation and comments to do the · following:.