Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
Rr310505 Principles of Programming Languages

Rr310505 Principles of Programming Languages

Ratings: (0)|Views: 210|Likes:
Published by SRINIVASA RAO GANTA

More info:

Published by: SRINIVASA RAO GANTA on Aug 21, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/01/2013

pdf

text

original

Code No: RR310505
Set No. 1
III B.Tech I Semester Supplimentary Examinations, February 2008

PRINCIPLES OF PROGRAMMING LANGUAGES
( Common to Computer Science & Engineering and Computer Science &
Systems Engineering)

Time: 3 hours
Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
\u22c6 \u22c6 \u22c6 \u22c6 \u22c6

1. What is the signi\ufb01cance of abstraction. What are the two di\ufb00erent categories of abstractions that a programming language can support. Explain with examples from di\ufb00erent languages.

[16]
2. What do you mean by program veri\ufb01cation. Explain the steps involved in program
veri\ufb01cation.

[16] 3. Write short notes on coercion, type error, type checking and strong typing. [16] 4. Assume a programming language is used to extensively manipulate arrays. What

are the di\ufb00erent array operations which you permit as language designer. Justify
your choices.
[16]
5. (a) Explain the local referencing environments.
[8]
(b) Explain with examples pass-by-value and pass-by-result parameter passing
techniques.
[8]
6. (a) De\ufb01ne abstract types. What are the language design requirements for a lan-
guage that supports abstract data types?
[8]
(b) What are the di\ufb00erences between private and limited private types in Ada?[8]
7. (a) Discuss about standard functions in prolog.
[8]
(b) What are the design issues that are involved in exception handling?
[8]
8. Describe brie\ufb02y about expressions, functions and exceptions in Meta Language.
[16]
\u22c6 \u22c6 \u22c6 \u22c6 \u22c6
1 of 1
Code No: RR310505
Set No. 2
III B.Tech I Semester Supplimentary Examinations, February 2008

PRINCIPLES OF PROGRAMMING LANGUAGES
( Common to Computer Science & Engineering and Computer Science &
Systems Engineering)

Time: 3 hours
Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
\u22c6 \u22c6 \u22c6 \u22c6 \u22c6
1. Explain in detail programming domains.
[16]
2. Give BNF notation for if loop, case statement, does-while statement in C. give the
corresponding syntax graph.
[16]
3. Explain how C language deals with scope of the variables.
[16]
4. (a) What are the design issues for pointer types.
[6]
(b) What are the two common problems with pointers.
[6]
(c) Why are pointers of most languages restricted to pointing at a single type
object.
[4]
5. (a) Discuss the design issues of subprograms.
[8]
(b) Discuss about the procedures and functions in subprograms.
[8]
6. (a) Explain data abstraction in Ada.
[8]
(b) De\ufb01ne a task. What are the di\ufb00erent states of tasks? Explain.
[8]
7. Explain any three de\ufb01ciencies of prolog with examples.
[16]
8. (a) Explain the di\ufb00erences between functional and imperative languages.
[8]
(b) Explain how Meta Language di\ufb00ers from Haskell.
[8]
\u22c6 \u22c6 \u22c6 \u22c6 \u22c6
1 of 1
Code No: RR310505
Set No. 3
III B.Tech I Semester Supplimentary Examinations, February 2008

PRINCIPLES OF PROGRAMMING LANGUAGES
( Common to Computer Science & Engineering and Computer Science &
Systems Engineering)

Time: 3 hours
Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
\u22c6 \u22c6 \u22c6 \u22c6 \u22c6
1. (a) What are the steps in compilation process.
[6]
(b) What does it mean for a program to be reliable.
[5]
(c) Why is readability important to writability.
[5]
2. (a) What is the signi\ufb01cance of mathematical logic in the context of axiomatic
semantics. Explain with examples.
[6]
(b) What is the signi\ufb01cance of denotational semantics in describing the meaning
of programs. Explain with examples.
[10]
3. (a) What is strongly typed language. Give examples of strongly typed languages.
[6]
(b) What are the advantages and disadvantages of strongly typed languages. [10]
4. (a) Discuss precedence and associativity rules of di\ufb00erent programming languages.
[8]
(b) What is the signi\ufb01cance of precedence and associativity. Give examples. [8]
5. (a) What are the advantages and disadvantages of dynamic local variables? [8]
(b) What are the design issues for subprograms?
[8]
6. (a) What are the three levels of concurrency in programs? Explain.
[8]
(b) What is a semaphore? What are the operations that can be performed on
semaphores? Explain.
[8]
7. (a) Discuss Terms and Goal statements in prolog.
[8]
(b) Explain prolog interfacing process.
[8]
8. (a) Explain structures and arrays in ML. Give examples.
[8]
(b) Discuss brie\ufb02y about expressions in ML.
[8]
\u22c6 \u22c6 \u22c6 \u22c6 \u22c6
1 of 1

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
abhinay1111 liked this
Fitsum Mekuria liked this
Must Be Viv liked this
j2oct liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->