0% found this document useful (0 votes)
43 views

WWW - Manaresults.co - In: Principles of Programming Languages

This document contains a sample exam paper for the Principles of Programming Languages course. It has two parts - Part A with 6 short answer questions and Part B with 7 long answer questions. Some of the topics covered in the questions include lexing and parsing, attribute grammars, binding, dynamic variables, lambda expressions, context-free grammars, top-down and bottom-up parsing, type checking, parameter passing methods, functions, concurrency in ML, the dangling else problem, lambda calculus, predicate functions in Scheme, logic programming, and Prolog rules and facts. The document provides the framework for a comprehensive exam on programming language concepts and features.

Uploaded by

Sai Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

WWW - Manaresults.co - In: Principles of Programming Languages

This document contains a sample exam paper for the Principles of Programming Languages course. It has two parts - Part A with 6 short answer questions and Part B with 7 long answer questions. Some of the topics covered in the questions include lexing and parsing, attribute grammars, binding, dynamic variables, lambda expressions, context-free grammars, top-down and bottom-up parsing, type checking, parameter passing methods, functions, concurrency in ML, the dangling else problem, lambda calculus, predicate functions in Scheme, logic programming, and Prolog rules and facts. The document provides the framework for a comprehensive exam on programming language concepts and features.

Uploaded by

Sai Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Code No: RT31053 R13 SET - 1

III B. Tech I Semester Supplementary Examinations, May – 2019


PRINCIPLES OF PROGRAMMING LANGUAGES
(Computer Science and Engineering)
Time: 3 hours Max. Marks: 70
Note: 1. Question Paper consists of two parts (Part-A and Part-B)
2. Answering the question in Part-A is compulsory
3. Answer any THREE Questions from Part-B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PART –A
1 a) Define Lexeme, Pattern and Token. [4M]
b) What is attribute grammar? Explain how attribute grammar is use for [4M]
evaluation of the expressions.
c) Define Shallow and Deep binding for referencing environment of subprograms [4M]
that have been passed as parameters.
d) What are advantages and disadvantages of dynamic local variables? [4M]
e) What does a lambda expression specify? [3M]
f) Mention the various applications of multi paradigm languages. [3M]

PART -B
2 a) Discuss about Context-free grammar and regular expression? Give the parse [6M]
tree of a following statement: A = (B+C) * (D / E).
b) Describe differences between Top-Down and Bottom-Up Parsers. [4M]
c) What are the main features of the programming paradigm with examples? [6M]

3 a) What is meant by type checking? Differentiate between static type checking and [7M]
dynamic type checking and give their relative advantages.
b) Discuss about Guarded Command. [3M]
c) How subprogram names are passed as parameters? Explain. [6M]

4 a) Give different parameter passing methods and explain each of them with an [8M]
example.
b) Briefly discuss design issues of functions. [8M]

5 a) Explain how concurrency is provided in ML. [8M]


b) What is dangling-else problem? Discuss How it can be handled by the [8M]
programming language.

6 a) Discuss the fundamental concepts of lambda calculus. [8M]


b) Explain about Predicate functions in Scheme. [8M]

7 a) For what sort of application logic programming is useful? Briefly explain. [8M]
b) Explain Fact and Rule Statements in Prolog with suitable examples. [8M]

*****

www.manaresults.co.in

You might also like