CP7203 PrinciplesofProgrammingLanguagequestionbank
CP7203 PrinciplesofProgrammingLanguagequestionbank
in
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
UNIT - 1
2 MARK QUESTIONS:
1. Why is it useful for a programmer to have some background in language design, even
though he or she may never actually design a programming language
2. How can knowledge of programming language characteristics benefit the whole
computing community?
3. What language was the first to support the three fundamental features of object-oriented
programming
4. What are the three fundamental features of an object-oriented programming language
5. Define Syntax and Semantics.
6. Who are language descriptions for?
7. Describe the operation of a general language generator.
8. Describe the operation of a general language recognizer.
9. What is the difference between a sentence and a sentential form?
10. What the primary use of attribute grammars?
11. Describe the two levels of uses of operational semantics.
12. On what branch of math is axiomatic semantics based?
13. What is the use of the WP function? Why it is called a predicate transformer?
14. Give the difference between total correctness and partial correctness.
Page1
www.universityquestions.in
www.universityquestions.in
15. What are the design issues for names?
16. What is an Alias
17. . What is the l value of a variable?
18. What is the r value .What is Block
19. What are the advantages of named constant?
20. What is Bottom up parsing
16 MARK QUESTIONS:
1. What are the formal methods of describing the syntax? Explain the Grammar.
2. What are the rules of EBNF. Explain in detail the advantage and disadvantage of EBNF
.Compare the BNF with EBNF
3. Explain Dynamic semantics
4. What is Parsing problem? What are the two parsing algorithms What are the
complexities of Parsing process
5. What is Lexical Analyzer .What are the approaches for building a lexical analyzer.
Implement using an example using state diagram
6. Explain Attribute Grammar
7. Explain life time .What is Referencing environment
8. Explain Semantics .What are the various methods
9. What is recursive Parsing
10. What is bottom Parsing
UNIT - 2
2 MARK QUESTIONS:
Page2
www.universityquestions.in
www.universityquestions.in
7. Define row major order and column major order.
8. Define fully qualified and elliptical references to fields in records.
9. Define union, free union and discriminated union.
10. What are the design issues for unions?
11. What is a compatible type?
12. Define type error.
13. Define strongly typed.
14. What is a ternary operator?
15. What is a prefix operator?
16. What operator usually has right associatively?
17. What is no associative operator?
18. What is a conditional expression?
19. What is short-circuiting evaluation?
20. What is cast?
16 MARK QUESTIONS:
Page3
www.universityquestions.in
www.universityquestions.in
UNIT- 3
2 MARK QUESTIONS:
16 MARK QUESTIONS:
Page4
www.universityquestions.in
www.universityquestions.in
7. Implant the various subprogram
8. Explain stack and dynamic variables
9. Explain the nested subprograms
10. What is dynamic scoping
UNIT-4
2 MARK QUESTIONS:
16 MARK QUESTIONS:
www.universityquestions.in
4. Explain with an example about semaphores
5. Explain with an example monitors
6. Explain with an example about message passing
7. What is Thread explain
8. What are the various methods of Exception handling
9. What is State level concurrency
10. What is Event handling
Unit-5
2 MARK QUESTIONS:
Page6
www.universityquestions.in
www.universityquestions.in
16 MARK QUESTIONS:
www.universityquestions.in
Page7