(SEM-V) THEORY EXAMINATION 2017-18 PRINCIPLES OF PROGRAMMING LANGUAGES

B.Tech Engineering 0 downloads
₹29.00

Principles of Programming Languages (NCS-503)

Section-Wise Important Questions & Study Notes


SECTION–A

(Attempt all questions | 2 × 10 = 20)
This section checks definitions, short explanations, and basic concepts.

Write 2–3 lines only, very crisp answers.


(a) Programming Environment & Language Design

Programming environment (hardware, OS, users, tools) influences syntax, features, efficiency, and security of a language.


(b) Language Semantics

Semantics defines the meaning of program statements, i.e., what a program actually does.


(c) Access Specifiers

Public: accessible everywhere

Private: accessible only within class

Protected: accessible in class and derived classes


(d) Bootstrapping

Bootstrapping is the technique of writing a compiler for a language in the same language itself.


(e) Need of Language Translators

Translators convert high-level language into machine code so that computer can execute programs.


(f) Compiler vs Interpreter

Compiler translates whole program at once; interpreter translates line by line.


(g) Inline Function

Inline function expands function code at call point, reducing function call overhead.


(h) Properties of Constructor

Same name as class, no return type, automatically invoked, used to initialize objects.


(i) LISP Procedure to Find Cube

 

(defun cube (x) (* x x x))

(j) Abstract Data Type (ADT)

ADT defines data + operations without specifying implementation details.


SECTION–B

(Attempt any THREE | 10 × 3 = 30)
Write structured answers with headings and examples.


2(a) Phases of a Compiler

Explain with block diagram:                         Lexical Analysis

Syntax Analysis                                             Semantic Analysis

Intermediate Code Generation                    Code Optimization

Code Generation                                          Symbol Table & Error Handler


2(b) Facts & Rules in Prolog

Fact: basic statement (e.g., parent(john, ram).)

Rule: logical relation
Example:

 

grandparent(X,Y) :- parent(X,Z), parent(Z,Y).

2(c) Storage Representation of Data Structures

Explain:                                                    Static allocation

Stack allocation                                       Heap allocation
Mention advantages and use cases.


2(d) Syntactic Criteria of Programming Language

Discuss:                                                    Simplicity

Readability                                               Orthogonality

Expressiveness                                         Uniformity


2(e) Activation Record

Explain fields:                                           Local variables

Parameters                                               Return address

Control link                                              Access link

Explain activation tree and show recursive calls for factorial.


SECTION–C

(Attempt any ONE | 10 × 1 = 10)

3(a) Lambda Calculus

Explain:                                                      Lambda expression

Function abstraction                                 Application

Free variables: not bound by lambda     Bound variables: defined within lambda


OR


3(b) Inheritance                                         Explain concept and types:

Single                                                        Multiple

Multilevel                                                  Hierarchical
Give simple examples in OOP.

File Size
24.16 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

Guitar Classes Near By Lajpat Nagar Learn Guitar with Expert Trainers & Turn Your Passion into a Powerful Skill Lajpat Nagar, Delhi
Japanese Language Classes Near Uttam Nagar – Learn Japanese for Global Opportunities Uttam Nagar, Delhi
Voice-over Training Near Sushant Lok Phase 2 – Build a Powerful & Professional Voice Career Gurugram
Music Production (Laptop-Based) Near DLF Cyber City – Learn Professional Music Creation DLF Cyber City, Gurugram
Spoken English Classes Near By Vasant Vihar Improve Fluency, Build Confidence & Achieve Career Success in 2026 Vasant Vihar, Delhi
Spoken English Classes Near By Jangpura Improve Fluency, Build Confidence & Grow Career Opportunities in 2026 Jangpura, Delhi
Guitar Classes Near By Kalkaji Learn Guitar from Experts & Turn Your Musical Passion into a Lifelong Skill Kalkaji, Delhi
German Language Classes Near Central Park 2 – Learn German for Career, Study & Global Opportunities Central Park 2, Gurugram
Guitar Classes Near Chhatarpur – Professional Guitar Training in South Delhi Chhatarpur, Delhi
Keyboard / Piano Classes Near DLF Phase 3 Gurugram – Professional Music Training for Kids, Beginners & Advanced Learners DLF Phase 3, Gurugram
Guitar Classes Near Okhla – Professional Guitar Training in South Delhi Okhla, Delhi
Spoken English Classes Near By New Friends Colony Improve Fluency, Boost Confidence & Unlock Career Growth in 2026 New Friends Colony, Delhi
Spoken English Classes Near By Govindpuri Improve Fluency, Build Confidence & Unlock Better Career Opportunities in 2026 Govindpuri, Delhi
Vedic Maths Classes Near Sector 99A Dwarka Expressway, Gurugram – Boost Speed, Accuracy & Mental Calculation Skills Sector 99A, Gurugram
Personal Fitness Training Near Sector 132 Greater Noida – Achieve Your Health and Fitness Goals with Expert Trainers Noida
Harmonium Classes Near Sushant Lok Phase 1 – Learn Classical Music with Confidence Sushant Lok Phase 1, Gurugram
Spoken English Classes Near By Saket Improve Fluency, Confidence & Career Opportunities with Expert Training in 2026 Saket, Delhi
Graphic Designing Course Near Sector 61 Gurugram – Build Creative Skills & Start Your Design Career Gurugram
Accounts & Commerce Classes Near By Dwarka Mor Professional Coaching Dwarka Mor, Delhi
Stenography Classes Near Sector 93 Gurugram – Build Speed, Accuracy & Secure Government Career Opportunities Sector 93, Gurugram
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020