Principles of Programming Language PDF - MCADD-502 Exam - November 2023

Document Details

EnrapturedMeitnerium5690

Uploaded by EnrapturedMeitnerium5690

2023

Unknown

Tags

programming language compilation programming computer science

Summary

This is a past paper for the Principles of Programming Language exam, taken in November 2023. The exam paper contains questions on various topics related to programming languages, including compilation techniques, logic programming, concurrency, and functional programming. There are a total of 8 questions, covering a range of programming concepts. The document is suitable for those students studying programming languages in their undergraduate studies.

Full Transcript

## MCADD-502 ### M.C.A. (Integrated), V Semester #### Examination, November 2023 #### Principles of Programming Language **Time: Three Hours** **Maximum Marks : 70** **Note:** - Attempt any five questions. - All questions carry equal marks. ### Questions **1. a)** Discuss the important facto...

## MCADD-502 ### M.C.A. (Integrated), V Semester #### Examination, November 2023 #### Principles of Programming Language **Time: Three Hours** **Maximum Marks : 70** **Note:** - Attempt any five questions. - All questions carry equal marks. ### Questions **1. a)** Discuss the important factor that influences the evolution of Programming Language. **b)** What do you mean by compilation? Discuss briefly the various stages use in compilation. **2. a)** Write down a BNF grammar for the language composed of all binary numbers that contain atleast three consecutive 1s (e.g. 0011101011). **b)** Differentiate between compile time binding and run time binding. **3. a)** What is conditional statement and also write one example? **b)** Discuss the design issues of subprogram and operations. **4. a)** What is encapsulation and data hiding? Explain with suitable example. **b)** What is Logic Programming? Explain it with respect to relation, rules, facts and queries. **5. a)** Explain functional programming with suitable example. **b)** What is concurrency? Discuss various categories of concurrency. **6. a)** What is monitor? What are advantages and disadvantages over semaphores? **b)** Write a brief notes on generic sub-programs. **7. a)** Describe the similarities and difference between context free grammars and tree grammars. **b)** What are the arrays and variant records? How they differ from the conventional array and records? **8.** Write short notes on the following: - Semaphore - 4GL - Garbage collection - Scope and life time of variable

Use Quizgecko on...
Browser
Browser