Beruflich Dokumente
Kultur Dokumente
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]
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]
www.andhracolleges.com
semaphores. [16]
⋆⋆⋆⋆⋆
www.andhracolleges.com
⋆⋆⋆⋆⋆
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]
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]
⋆⋆⋆⋆⋆
www.andhracolleges.com
⋆⋆⋆⋆⋆
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]
4. Define associative array. What are the different design and implementation issues
associated with associative arrays. [16]
www.andhracolleges.com
techniques. [8]
(b) Explain the design issues involved in subprogram. [8]
⋆⋆⋆⋆⋆
www.andhracolleges.com
⋆⋆⋆⋆⋆
www.andhracolleges.com
7. (a) Write prolog program to compute the sum of numbers using arrays. [8]
(b) Explain exception handling in java. [8]
⋆⋆⋆⋆⋆