PPL Question Bank
PPL Question Bank
PPL Question Bank
Noida
Department Of Information Technology
Question Bank
Of
Principal Of Programming Language
For IT 3rd year
Date:16/Nov/2015
Er.Vikash
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.
15. What are the design issues for names?
16. What is an Alias
UNIT-2
2 MARK QUESTIONS:
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?
8 or 16 MARK QUESTIONS:
1. Explain briefly about scope and its lifetime
2. What is binding .How the variables are binded. What are the various methods of binding
3. Explain in detail the Pointers and References
4. Explain in detail the attribute grammar
5. Explain Arithmetic expression? Explain with example Relational and Boolean Expressions.
6. What is meant by data type ?What are the various Primitive Data type .Evaluate the various data types
7. Explain briefly about control Structures
8. Explain Overloaded Operators
9. What is Selection ?Explain various branching Statements
10. What are the various assignments statements
UNIT-3
2 MARK QUESTIONS:
1. What are the three general characteristics of subprograms?
2. What are formal parameters? What are actual parameters?
3. What are the differences between a function and a procedure?.
4. What are the design issues for subprograms?. What is an overloaded subprogram?
5. What is ad hoc binding?
6. What is multicast delegate?
7. What exactly is a delegate?
8. What is a closure?
9. Which of the caller or callee saves execution status information?
10. What is the task of a linker?
11. What is the difference between an activation record and an activation record instance?
12. What kind of machines often use registers to pass parameters?
13. What is an EP, and what is its purpose?
8 or 16 MARK QUESTIONS:
1. What is subprogram Explain with an example?
2. What are the design issues of subprogram?
3. What are the various parameter Passing methods explain with an example
4. What is overloaded methods .Explain the generic methods
5. Explain the design issues of functions
6. What is Semantic call .Explain?
7. Implant the various subprograms
8. Explain stack and dynamic variables
9. Explain the nested subprograms
10. What is dynamic scoping?
UNIT-4
2 MARK QUESTIONS:
1. What are the two kinds of abstractions in programming language?
2. Define abstract data type.
3. What is the difference between private and limited private types in Ada?
4. What is the use of the Ada with clause?
5. What is the use of the Ada use clause?
6. What is the fundamental difference between a C++ class and an Ada package?
7. What is the purpose of a C++ destructor?
8. What are the legal return types of a destructor?
9. What are initializes in Objective-C?
10. What is the use of @private and @public directives?
11. Where are all Java methods defined?
12. What is a friend function? What is a friend class?
8 or 16 MARK QUESTIONS:
1. What are the design issues of OOP LANGUAGES?
2. Implement the oops constructor
3. Explain with an example Concurrency
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
1. What is lamda? Describe briefly
2. Write the fundamentals of FP languages
3. Write a Program with scheme
4. Explain in brief about programming with ML
5. Describe Logic and Logic Programming
6. Explain Prolog
7. What are the Multi paradigm languages
8. Explain the various programming languages
9. Write a program in scheme
10. Write an program using prolog