Download AKTU B-Tech 5th Sem 2016-2017 Principles Of Programming Language Ncs 503 Question Paper

Download AKTU (Dr. A.P.J. Abdul Kalam Technical University (AKTU), formerly Uttar Pradesh Technical University (UPTU) B-Tech 5th Semester (Fifth Semester) 2016-2017 Principles Of Programming Language Ncs 503 Question Paper

Printed Pages: 3 NCS-503
(Following Paper ID and Roll No. to be filled in your
Answer Books)
Paper ll): 20l2277 Roll No.
B.TECH.
Regular Theory Examination (Odd Sem - V), 2016-17
PRINCIPLES OF PROGRAMMIN G
LANGUAGE
T ime : 3 Hours Max. Marks: 100
SECTION -A
l. ' Attempt all parts. All parts carry equal marks. Write
answer of each part in short. (10X2=20)
a) Write any four important uses of programming
languages
b) Compare the weakest precondition of the following
assignment a = 2 * (b ?1)?1 (a > 0).
i ,c) What are the advantages of inheritance?
d) Mention the component of referencing
environment.
e) What is an imperative language?
t) De?ne encapsulation. With suitable example.
g) Differentiate between compiler and interpreter.
503/12/2016/13260 (1) [P.T.O.

N CS-503
h) What do you mean by primitive data type?
i) What is a simple list?
j) De?ne lambda calculus.
. SECTION - B
Note : Attempt any ?ve questions from this section.
(5X10=50)
What are the various mechanism for storage
representation of structured data types?Also explain any
two major storage management issues.
Describe implementation of simple sub programs.
What are the key features supported by object oriented
programming languages? Explain with example.
Describe sequence control with various examples.
Write a recursive program to ?nd the length of a list in
LISP.
What is Lambda? Discuss brie?y. Use 3 -reductions to
simplify the following expression as much as possible
((lambda (x) (x(yx)))z).
503/12/2016/13260 (2)
NCS-503
SECTION-C
Note: Attempt any 2 questions from this section. (ZXI5=30)
8. Give the complete translation structure of the following
statement :
Result = start * 10 + phase * 20.
OR
Mention some multi-paradigm languages. How they are
different from other languages? Explain the features and
structures of multi-paradigm language.
9. Discuss about the fundamentals of functional
programming languages.
++++
503/12/2016/13260 (3)

This post was last modified on 29 January 2020