PPL 2marks
PPL 2marks
Question Bank
UNIT – 1
Part:A
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.
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
UNIT - 2
Part:A
1. What are the advantages and disadvantages of decimal data types?
2. What are the design issues for character string types?
3. Describe the three string length option.
4. Describe ordinal, enumeration, and subrange types.
5. What are the advantages of user-defined enumeration types?
6. What are the design issues for arrays?
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?