You are on page 1of 4

www.andhracolleges.

com The Complete Information About Colleges in Andhra Pradesh

Code No: RR310505 Set No. 1


III B.Tech I Semester Supplementary Examinations, March 2006
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

www.andhracolleges.com
⋆⋆⋆⋆⋆

1. Compare procedure oriented and object oriented programming. Explain the object
oriented features supported by C++. [16]

2. What is the relation between BNF notation and syntax graph. How do you convert
from BNF notation to syntax graph. [16]

3. Define static, stack-dynamic, explicit heap-dynamic, and implicit heap-dynamic


variables. What are the advantages and disadvantages of these. [16]

4. (a) What is mixed mode assignment. What mixed mode assignments are allowed
in ADA and java. [12]
(b) In C language if a=5 then what are the values of x and a, after x = ++a.
What are the values of x and a, after execution of statement x = a++. [4]

5. (a) Explain how multidimensional arrays are passed as parameters? [8]


(b) Explain how subprograms are overloaded? [8]

6. Briefly describe cooperation synchronization and competition synchronization in

www.andhracolleges.com
semaphores. [16]

7. (a) Explain the uses of exception handling in programming languages. [8]


(b) Explain the salient features of prolog. [8]

8. Describe briefly about expressions, functions and exceptions in Meta Language.


[16]

⋆⋆⋆⋆⋆

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications


1 ofUSA-UK-Australia-Germany-France-NewZealand
1 Universities List

www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information


www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

Code No: RR310505 Set No. 2


III B.Tech I Semester Supplementary Examinations, March 2006
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

www.andhracolleges.com
⋆⋆⋆⋆⋆

1. Explain in detail programming domains. [16]

2. (a) In what way do operational semantics differ from denotational semantics. [8]
(b) What purpose do predicates serve in an attribute grammar. [8]

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) What is a C++ reference type and what is its common use. [10]
(b) Why are the reference variables in C++ better than the pointers for formal
parameters. [6]

5. (a) What are the advantages and disadvantages of dynamic local variables? [8]
(b) What are the design issues for subprograms? [8]

6. (a) How are C++ class objects created? Explain with example. [8]

www.andhracolleges.com
(b) Explain asynchronous message passing techniques in Ada. [8]

7. Explain exception handling in C++ with example. [16]

8. (a) Define Cambridge polish and lambda notation. Explain with examples. [8]
(b) What is S-Expression and how is evaluated. Give an example. [8]

⋆⋆⋆⋆⋆

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications


1 ofUSA-UK-Australia-Germany-France-NewZealand
1 Universities List

www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information


www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

Code No: RR310505 Set No. 3


III B.Tech I Semester Supplementary Examinations, March 2006
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

www.andhracolleges.com
⋆⋆⋆⋆⋆

1. (a) What do you mean by imperative programming language. [6]


(b) What makes a language portable. [5]
(c) What are the differences between the special purpose and general purpose
programming languages. [5]

2. [8]

(a) How EBNF removes the inconveniences of BNF. Give BNF and EBNF gram-
mars for expression.
(b) Give an unambiguous grammar for if-then-else statement. [8]

3. Explain how C language deals with scope of the variables. [16]

4. Define associative array. What are the different design and implementation issues
associated with associative arrays. [16]

5. (a) Explain with examples pass-by-result and pass-by-name parameter passing

www.andhracolleges.com
techniques. [8]
(b) Explain the design issues involved in subprogram. [8]

6. (a) Explain data abstraction in Ada. [8]


(b) Define a task. What are the different states of tasks? Explain. [8]

7. (a) Discuss about standard functions in prolog. [8]


(b) What are the design issues that are involved in exception handling? [8]

8. (a) Discuss about MetaLanguage value declaration statements. [8]


(b) Explain how Haskell differs from ML. [8]

⋆⋆⋆⋆⋆

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications


1 ofUSA-UK-Australia-Germany-France-NewZealand
1 Universities List

www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information


www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

Code No: RR310505 Set No. 4


III B.Tech I Semester Supplementary Examinations, March 2006
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

www.andhracolleges.com
⋆⋆⋆⋆⋆

1. A programming language can be compiled or interpreted. Give relative advantages


and disadvantages of compilation and interpretation. Give examples of compiled
and interpreted languages. [16]

2. What is BNF notation. Explain it with examples. [16]

3. (a) What is the general problem with static scoping. [6]


(b) What is block. How scope of a variable is dependent on block. [5]
(c) What is life time. [5]

4. What is selection statement. Explain different types of selection statements. [16]

5. (a) Explain how multidimensional arrays are passed as parameters? [8]


(b) Explain how subprograms are overloaded? [8]

6. (a) Explain how message passing is implemented in Ada 83. [8]


(b) Discuss about binary semaphores. [8]

www.andhracolleges.com
7. (a) Write prolog program to compute the sum of numbers using arrays. [8]
(b) Explain exception handling in java. [8]

8. (a) Explain structures and arrays in ML. Give examples. [8]


(b) Discuss briefly about expressions in ML. [8]

⋆⋆⋆⋆⋆

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications


1 ofUSA-UK-Australia-Germany-France-NewZealand
1 Universities List

www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information

You might also like