Code No: 07A40501
R07
Set No. 2
1. (a) Explain in detail about the protected objects.
[10+6]
ld .
(b) Give brief description about binary semaphores.
in
II B.Tech II Semester Examinations,APRIL 2011 PRINCIPLES OF PROGRAMMING LANGUAGES Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????
2. (a) What are control statements? Why do we need control Statements?
(b) Explain the importance of the control statements in context with the Readability. [16] 3. (a) Explain the scoping rule used in scheme, in common LISP, in ML, in Haskell.
or
(b) Mention the three ways that ML is different from scheme.
[10+6]
4. (a) How default values can be used in formal parameters for Ada. Explain. (b) What is prototype. Explain the importance of prototype in C language. [8+8]
uW
5. Write a simple assignment statement with one arithmetic operator in C language. For each component of the statement, list the various bindings that are required to determine the semantic when the statement is executed. For each binding, indicate the binding time used for the language. [16] 6. (a) Discuss the advantages and disadvantages of Short Circuit Evaluation.
nt
(b) Consider the rules of associativity and precedence of Java language, show the order of evaluation of the following expression a * b - c / ( d * e / f %g ) +h [8+8] 7. (a) What is the basic concept of declarative semantics. Explain.
(b) What are different forms of a prolog terms. Explain.
[8+8]
Aj
8. (a) Explain what the preconditions and post conditions of a given statement mean in axiomatic semantics. (b) Convert the following EBNF TO BNF S → A {bA} A → a[b]A ?????
1
[8+8]
Code No: 07A40501
R07
Set No. 4
in
II B.Tech II Semester Examinations,APRIL 2011 PRINCIPLES OF PROGRAMMING LANGUAGES Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) How default values can be used in formal parameters for Ada. Explain.
ld .
(b) What is prototype. Explain the importance of prototype in C language. [8+8] 2. (a) What are control statements? Why do we need control Statements?
(b) Explain the importance of the control statements in context with the Readability. [16]
or
3. (a) Explain what the preconditions and post conditions of a given statement mean in axiomatic semantics.
(b) Convert the following EBNF TO BNF S → A {bA} A → a[b]A
[8+8]
uW
4. (a) Explain in detail about the protected objects.
(b) Give brief description about binary semaphores.
[10+6]
5. (a) Discuss the advantages and disadvantages of Short Circuit Evaluation. (b) Consider the rules of associativity and precedence of Java language, show the order of evaluation of the following expression a * b - c / ( d * e / f %g ) +h [8+8]
nt
6. Write a simple assignment statement with one arithmetic operator in C language. For each component of the statement, list the various bindings that are required to determine the semantic when the statement is executed. For each binding, indicate the binding time used for the language. [16] 7. (a) What is the basic concept of declarative semantics. Explain.
Aj
(b) What are different forms of a prolog terms. Explain.
[8+8]
8. (a) Explain the scoping rule used in scheme, incommon LISP, in ML, in Haskell. (b) Mention the three ways that ML is different from scheme. ?????
2
[10+6]
Code No: 07A40501
R07
Set No. 1
1. (a) Explain in detail about the protected objects.
[10+6]
ld .
(b) Give brief description about binary semaphores.
in
II B.Tech II Semester Examinations,APRIL 2011 PRINCIPLES OF PROGRAMMING LANGUAGES Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????
2. (a) Explain the scoping rule used in scheme, incommon LISP, in ML, in Haskell. (b) Mention the three ways that ML is different from scheme.
[10+6]
3. (a) What is the basic concept of declarative semantics. Explain.
[8+8]
or
(b) What are different forms of a prolog terms. Explain.
4. Write a simple assignment statement with one arithmetic operator in C language. For each component of the statement, list the various bindings that are required to determine the semantic when the statement is executed. For each binding, indicate the binding time used for the language. [16]
uW
5. (a) How default values can be used in formal parameters for Ada. Explain. (b) What is prototype. Explain the importance of prototype in C language. [8+8] 6. (a) What are control statements? Why do we need control Statements? (b) Explain the importance of the control statements in context with the Readability. [16]
nt
7. (a) Explain what the preconditions and post conditions of a given statement mean in axiomatic semantics. (b) Convert the following EBNF TO BNF S → A {bA} A → a[b]A
[8+8]
Aj
8. (a) Discuss the advantages and disadvantages of Short Circuit Evaluation. (b) Consider the rules of associativity and precedence of Java language, show the order of evaluation of the following expression a * b - c / ( d * e / f %g ) +h [8+8] ?????
3
Code No: 07A40501
R07
Set No. 3
in
II B.Tech II Semester Examinations,APRIL 2011 PRINCIPLES OF PROGRAMMING LANGUAGES Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????
ld .
1. Write a simple assignment statement with one arithmetic operator in C language. For each component of the statement, list the various bindings that are required to determine the semantic when the statement is executed. For each binding, indicate the binding time used for the language. [16] 2. (a) Explain the scoping rule used in scheme, incommon LISP, in ML, in Haskell. (b) Mention the three ways that ML is different from scheme.
[10+6]
or
3. (a) Discuss the advantages and disadvantages of Short Circuit Evaluation.
(b) Consider the rules of associativity and precedence of Java language, show the order of evaluation of the following expression a * b - c / ( d * e / f %g ) +h [8+8]
uW
4. (a) Explain what the preconditions and post conditions of a given statement mean in axiomatic semantics. (b) Convert the following EBNF TO BNF S → A {bA} A → a[b]A
[8+8]
5. (a) What are control statements? Why do we need control Statements?
nt
(b) Explain the importance of the control statements in context with the Readability. [16] 6. (a) How default values can be used in formal parameters for Ada. Explain. (b) What is prototype. Explain the importance of prototype in C language. [8+8]
7. (a) What is the basic concept of declarative semantics. Explain.
Aj
(b) What are different forms of a prolog terms. Explain.
[8+8]
8. (a) Explain in detail about the protected objects. (b) Give brief description about binary semaphores. ?????
4
[10+6]