Question Bank Ii - Cse - Programming Language: 10. Explain in Detail Multiple Selection Constructs?

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

QUESTION BANK

II – CSE –PROGRAMMING LANGUAGE


1. Explain the different aspects of cost of a programming language?
2. What common programming language statements in your opinion is most deter to readability.
3. Define CFG. State whether CFG is a language generator or recognizer?
4. Describe the process of Array initialization?
5. Compare and Contrast union, free union and discriminated union?
6. Explain with an example how operator associativity can be incorporated in grammars
7. Using the above grammar, show a parse tree and the below grammar is ambiguous.
A=(A+B)*(C/D)
8. What role does the symbol table play in a complier?
9. Define the following?
a) Stack Dynamic
b) Explicit Heap Dynamic
c) Implicit Heap Dynamic
d) Static
10. Explain in detail multiple selection constructs?
11. Difference between Static and Dynamic strings?
12. Explain BNF, EBNF
13. What is primary used of attributes ambiguous .
14. Explain Short -Circuit Evaluation
15. Explain Guarded Commands

Unit 3 shot question :

1. Define scope and lifetime of a variable.


2. Differentiate shallow and deep binding.
3. Define subprogram.
4. Define procedures.
5. Define local referencing environment.
6. Differentiate static and dynamic binding.
7. Define the phrase 'Adhoc-binding'
8. Differentiate co-routines and subprograms
9. Define the phrase 'overloaded subprogram'
10. Discuss Generic sub programs.

Unit 3 Long question :

1. Discuss generic subprograms in C++ and java.


2. Explain about the concept of local referencing environment?
3. Define subprograms. What are the advantages of subprograms?
4. Discuss in detail about lifetime of a variable.
5. Discuss the design issues of subprogram and its operations performed on them.
6. Explain different methods of parameter passing mechanisms to subprograms.
1
7. Explain about Co routines.
8. Explain the design considerations of parameter passing.
9. Discuss about procedures and functions in subprograms.
10. Define shallow and deep binding for referencing environment of subprograms that have been passed as
parameters.

Unit 4 shot question :

1. Define an exception
2. Define a thread
3. Define concurrency.
4. Define binary semaphore.
5. Define monitors.
6. Define mutual exclusion.
7. Define deadlock.
8. Define an abstract data type.
9. Define logic programming language.
10. Define data abstraction

Unit 4 Long Answers

1. Discuss the reasons for using exception handlers in a programming language. What if there exist
programming languages with no exception handlers.
2. Explain the concept of object oriented programming in Smalltalk.
3. Explain the design issues related to Data abstraction
4. Describe briefly about Semaphores.
5. Describe briefly about Monitors.
6. Write about goal statements and simple arithmetic in PROLOG.
7. Define binary semaphore. What is counting semaphore? What are the primary problems with
using semaphores to provide synchronization?
8. Explain different types of propositions present in logic programming.
9. Describe the cooperation synchronization and competition synchronization in message passing.

UNIT 5 SHOT Question


1. Give the meaning of lazy evaluation mean.
2. Define procedural abstraction.
3. List few characteristics of Python language.
4. Define functional language.
5. Define imperative language.
6. Give the meaning of scripting language.
7. List few examples of scripting languages.
8. List keywords of Python language.
9. List data types of Python language.
10. Define the term separate compilation in Python.

2
UNIT 5 LONG Questions

1. Write about control constraints in Python.


2. Write about data abstraction in Python.
3. Write about data types and structures of LISP and LISP interpreter.
4. List the ways in which ML is significantly different from scheme.
5. Describe the scoping rule in common LISP, ML and HASKELL. Common
6. Explain about LISP functional programming language.
7. Explain the features of scripting languages.
8. Record the advantages of Python scripting language over other scripting languages
9. Discuss the concept of pragmatics in scripting languages.

You might also like