0% found this document useful (0 votes)
50 views4 pages

Btech Cse It Principles Progrmmng Language 20161460440258

This document is a model question paper for a sixth semester B.Tech course in Principles of Programming Languages. It contains 4 parts with multiple choice and long answer questions. Part A contains 5 short answer questions worth 4 marks each on topics like activation records, subroutines, short-circuit evaluation, object-oriented languages, and just-in-time compilers. Part B contains 2 long answer questions from each of 4 modules worth 10-12 marks on topics like memory layout, logical control loops, scope rules, static/dynamic linking, Prolog searching, Scheme, regular expressions, inheritance, threading, and debugging. Students must answer 1 long question from each module totaling 4 questions.
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)
50 views4 pages

Btech Cse It Principles Progrmmng Language 20161460440258

This document is a model question paper for a sixth semester B.Tech course in Principles of Programming Languages. It contains 4 parts with multiple choice and long answer questions. Part A contains 5 short answer questions worth 4 marks each on topics like activation records, subroutines, short-circuit evaluation, object-oriented languages, and just-in-time compilers. Part B contains 2 long answer questions from each of 4 modules worth 10-12 marks on topics like memory layout, logical control loops, scope rules, static/dynamic linking, Prolog searching, Scheme, regular expressions, inheritance, threading, and debugging. Students must answer 1 long question from each module totaling 4 questions.
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/ 4

SIXTH SEMESTER B.

TECH-MODEL QUESTION PAPER


13.602 PRINCIPLES OF PROGRAMMING LANGUAGES
Model Question Paper

Time: 3.00 Hrs Max. Marks: 100


PART – A
Answer all questions
1) With the help of a neat diagram, explain activation record.
2) Can a user access a non-local object in case of subroutines? Give valid reasons.
3) Draw short circuit evaluation for:
if((A>B)and(C>D)) or(E<>F) then
then-clause.
else
else-cause.
Explain the advantages of short-circuit?
4) Explain the significance of this parameter in object oriented languages?
5) What is a just-in-time (JIT) compiler? What distinguishes dynamic compilation from
just-in-time compilation? (5*4=20)

PART– B
Answer any one full question out of the two from each module

MODULE – I

6)
a) Consider the following records of a particular language. Let the size of each char
variable be 1 byte, int variable be 4 bytes and double be 8 bytes.

1) struct employee{ 2) union employee{


char name[2]; char name[2];
int age; int age;
double mark; double mark;
} }
. Draw the memory layout for the records (1) and (2) 12

b) Explain Logically Controlled Loop with suitable examples. 8

OR

7)
a) Which of the programming language uses nested-scope rule? Explain the concept of
nested-scope rule with an example. 10
b) What is the use of static links? Compare declaration order in Pascal, Modula-3 and
C++. 10

MODULE - II

8)
a) Explain static link, dynamic link and activation record with help of given figure. 10

b) Explain database manipulation and searching strategies used in Prolog. 10


OR

9)

a) Give an overview of Scheme with suitable examples .Write its applications? 10


b) Explain co-routine? Why cactus-stack is used in co-routine? Distinguish from
subroutine? 10
MODULE - III
10)
a) What are the characteristics of scripting languages? 5
b) Write down the matching strings of following regular expression of a scripting
language
1) /ab(cd|ef)g*/
2) /b[aeiou]d/
3) /0x[0-9a-fA-F]+/ 3
c) Write short note on
1) Modifiers and Escape Sequences.
2) Greedy and Minimal Matches.
3) Data types of Scripting Language. 12

OR

11)
a) Write short note on Dynamic Method Binding of object oriented languages. 10
b) Consider the following program
class student: public person, public gp_list_node {…
Explain the type of inheritance is used in this program? 6
c) Write a short note on constructors? 4

MODULE - IV
12)

a) Explain why synchronization is necessary in thread? 10


b) Explain
i) Symbolic debugging 5
ii) Reflection . 5

. OR
13) Explain the working principles of threads. With a neat diagram show the architecture of
thread? 20

You might also like