CODE NO: R09221201

R09

SET No - 1

II B.TECH - II SEMESTER EXAMINATIONS, APRIL/MAY, 2011 PRINCIPLES OF PROGRAMMING LANGUAGES (INFORMATION TECHNOLOGY) Time: 3hours Max. Marks: 75 Answer any FIVE questions All Questions Carry Equal Marks ---

2.a) b)

How can knowledge of programming language characteristics benefits the whole computing Community? [15] The two mathematical models of language description are generation and recognition. Describe how each can define the syntax of a programming language? Develop an unambiguous grammar that describes the if statement. [8+7]

.in

1.

Explain all of the difference between subtypes and derived types. Define union, free union and discriminated union?

4.a) b)

How does operand evaluation order interact with functional side effect ? How does operand evaluation order interact with function side effects?

5.a)

Define Shallow and Deep binding for referencing environment of subprograms that Have been passed as parameters. Write about Co routines. [8+7]

b)

or ld

3.a) b)

In what different places can the definition of a C++ member function appears? What is a C++ namespace and what is its purpose?

7.

Explain the following with examples a) Exception Handler b) Disabling an exception c) Continuation d) Built-in Exception.

What are the difference between CONS, LIST and APPENED? Write a LISP function Fib(n) that computes nth Fibonacci number.

Aj

nt

8.a) b)

uW

6.a) b)

********

[8+7]

[8+7]

[8+7]

[15]

[7+8]

CODE NO: R09221201

R09

SET No - 2

II B.TECH - II SEMESTER EXAMINATIONS, APRIL/MAY, 2011 PRINCIPLES OF PROGRAMMING LANGUAGES (INFORMATION TECHNOLOGY) Time: 3hours Max. Marks: 75 Answer any FIVE questions All Questions Carry Equal Marks --What are some features of specific programming languages you know whose rationales are a mystery to you? [15]

2.

Write a BNF description of the Boolean expressions of Java, including the three operators &&, || and ! and the relational expressions? [15]

3.a) b)

What are the design issues for character string types? What array initialization feature is available in Ada that is not available in other common imperative languages? [7+8]

4.

Write text program in c++, java and c# to determine the scope of a variable declared in a for statement. Specifically the code must determine whether such variable is visible after the body of the for statement. [15]

5.a)

What are the different models of parameter passing methods? How are they implemented? Give example for each. What causes a C++ template function to be instantiated? [8+7]

or ld

uW

b)

.in

1.

Write an analysis of the similarities of and differences between java packages and C++ namespaces? [15]

7.

What run-time errors or conditions, if any, an Pascal programs detect and handle?

[15]

8.

What scoping rule is used in a) COMMON LISP b) ML c) Haskell.

[15]

Aj

nt

6.

******

CODE NO: R09221201

SET No - 3

R09

II B.TECH - II SEMESTER EXAMINATIONS, APRIL/MAY, 2011 PRINCIPLES OF PROGRAMMING LANGUAGES (INFORMATION TECHNOLOGY) Time: 3hours Max. Marks: 75 Answer any FIVE questions All Questions Carry Equal Marks --Many languages distinguish between UPPER CASE and LOWER CASE letters in userdefined names. What are the pros and cons of this design decision? [15]

2.a) b)

Describe the basic concept of denotational semantics? What is the difference between synthesized and inherited attributes?

3.

What are all of the differences between the enumeration types of C++ and those of java? How does a decimal value waste memory space? [15]

4.

Determine whether the narrowing explicit type conversions in two languages you know provide errors messages when a converted value loses its usefulness? [15]

5.

What are the modes, the conceptual models of transfer, the advantages and disadvantages of pass – by – value, pass – by – result, pass – by – value - result and pass – by reference parameter- passing methods? [15]

6.a) b)

What are the language design issues for abstract data types? What are the disadvantages of designing an abstract data type to be a pointer?

7.

Write detailed compassion of the Exception Handling capabilities of C++ and those of JAVA? [15]

8.

Define functional form and referential transparency? What data types were parts of the original LISP? [15]

uW

or ld

.in

1.

Aj

nt

********

[7+8]

[7+8]

CODE NO: R09221201

R09

SET No - 4

II B.TECH - II SEMESTER EXAMINATIONS, APRIL/MAY, 2011 PRINCIPLES OF PROGRAMMING LANGUAGES (INFORMATION TECHNOLOGY) Time: 3hours Max. Marks: 75 Answer any FIVE questions All Questions Carry Equal Marks --Which produces faster Program execution, a Compiler (or) pure interpreter? What role does the symbol table play in a compiler? [15]

2.a)

Describe the approach of using axiomatic semantics to convert the correctness of a given program? Convert the following EBNF to BNF S->A{bA} A-> a[b]A [7+8]

or ld

b)

.in

1.

What is the purpose of the ACTION, GOTO table of an LR parser? Explain With Example? [15]

4.

Write text program in c++, java and c# to determine the scope of a variable declared in a for statement. Specifically the code must determine whether such variable is visible after the body of the for statement. [15]

5.

Define static, fixed stack-dynamic, fixed heap-dynamic and heap-dynamic array. What are the advantages of each? [15]

6.a) b)

What is the primary problem with using semaphores to provide synchronization? Explain the difference between physical and logical concurrency?

7.

What is root class of all java exception classes? What is pattern class of most java user defined exception classes? [15]

8.a) b)

Write a detail note on functions in ML. Give comparison of Functional and Imperative Languages.

Aj

nt

uW

3.

********

[8+7]

[7+8]

jawaharlal nehru technological university hyderabad

Explain the following with examples · a) Exception Handler · b) Disabling an exception ... 3.a) What are the design issues for character string types? b) What array initialization feature is available in ... b) What are the disadvantages of designing an abstract data type to be a pointer? [7+8] · 7. Write detailed compassion of the ...

49KB Sizes 4 Downloads 274 Views

Recommend Documents

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
5. a) Define i)cycle, ii) circuit and iii) path. b) What is the chromatic number of i) Tree ii) wheel graph iii) complete graph Kn and · iv) complete bipartite graph Km, ...

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
Ae · τ · τ · − · = · where' A' and 'a' are real positive constants is · applied to the input of an LTI system with h(t)= · where b is real positive · constant. Find the PSD ...

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD · II.B.TECH - I SEMESTER REGULAR EXAMINATIONS NOVEMBER, 2009.

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
b) Represent the decimal number 8620 in binary. c) How do you convert an RS flip-flop into a T-flip-flop? d) Distinguish between Truth table and excitation table.

jawaharlal nehru technological university hyderabad
Adjacency lists, Graph traversals- DFS and BFS. ... 5. Data Structures and Algorithms made easy in JAVA, 2nd Edition, Narsimha Karumanchi, CareerMonk.

jawaharlal nehru technological university hyderabad
II Year B.Tech. CE -I Sem. L T/P/D C. 4. -/-/-. 4. MATHEMATICS - II. Objectives: The objective is to find the relation between the variables x and y out of the given data (x,y). The aim to find such relationships which exactly pass through data

jawaharlal nehru technological university hyderabad iii b.tech
b) Determine how many carriers can access an 80 MHz transponder in the FDMA mode, · given that each carrier requires a bandwidth of 6 MHz, allowing for 6.5 ...

Jawaharlal Nehru Technological Universtiy Hyderabad
14-MECHANICAL ENGINEERING (MECHATRONICS). X0122-ELECTRICAL & ELECTRONICS ENGG. (REGULAR SERIES) · R07 B.Tech 2 Year-1Semester.

jawaharlal nehru technological university hyderabad
random process and two or more random processes. Markov process, Markov chain, classification of states –. Examples of Markov Chains, Stochastic Matrix. TEXT BOOKS: www.jntuworld.com || www.android.jntuworld.com || www.jwjobs.net || www.android.jwj

Jawaharlal Nehru Technological Universtiy Hyderabad
Jawaharlal Nehru Technological Universtiy Hyderabad. Mahatma Gandhi Inst. of Tech. (26). D-Form. Signature of Principal/ Chief Superintendent.

NR10104 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY ...
b) Explain the treatment of water for drinking purpose? [8+8] ... b) A sample of hard-water from an underground reservoir in Warangal, A.P., · showed the ...

35045 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY ...
b) What is oxygen Effect? [10+6] · 6.a) Describe the protective measures .... 5.a) Explain the principles of Radio therapy. b) Explain briefly about the normal tissue ...

NR10202 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY ...
Code No: NR10202 · JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD · I St B.Tech Supplementary Examinations June – 2009.

37104 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY ...
Explain the importance of concurrent Engineering in product development. [16] ... the traditional product development cycle and Product development using.

NR10205 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY ...
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD · I · St · B.Tech Supplementary Examinations June – 2009 · SEMICONDUCTORS AND ...

Jawaharlal Nehru Technological Universtiy Hyderabad
(26). D-Form. Signature of Principal/ Chief Superintendent. 2-ELECTRICAL & ELECTRONICS ... X0223-PULSE AND DIGITAL CIRCUITS (REGULAR SERIES).

NR 210103 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY ...
6.a] Explain different types of floors in brief. b] Explain what is DPC and what are the different materials used. [8+8] · 7. Write short notes on: · i.] Scaffolding.

jawaharlal nehru technological university
energy, photosynthetic reaction centres, Hill reaction, PS I & PS II, ...... Growing energy needs, renewable and non-renewable energy sources use of alternate ...

jawaharlal nehru technological university kakinada -
Htno. Subcode Subname. Internal External credits STATUS. 158T1A0139 R13202. MATHEMATICS-III. 27. 34. 3. Change. 158T1A0139 R13207. MATHEMATICS-II (MM). 28. 54. 3. Change. 158T1A0162 R13209. ENGG. DRAWING. 30. 35. 3. Change. 158T1A0164 R13208. PROFESS

Code No:R05420109 JAWAHARLAL NEHRU TECHNOLOGICAL ...
(CIVIL ENGINEERING) · Time: 3 hours · Max. Marks.80 · Note:- Answer any one question · Assume suitable data if necessary · --- · 1. Design and draw plan and ...

Code No: 43017 JAWAHARLAL NEHRU TECHNOLOGICAL ...
7) a) With the help of P-V and T-S diagrams, show that for the same maximum · pressure and temperature of the cycle and the same heat rejection thermal.

NR10101 JAWAHARLAL NEHRU TECHNOLOGICAL ...
Identity the distributing aspect of science of fiction and examine how this problem can · be resolved. [16] · 3. Do you justify that the story of Silent Spring is a fable for tomorrow? [16] · 4. In what ways does chemical pollution affect the structu

R05421205 JAWAHARLAL NEHRU TECHNOLOGY UNIVERSITY ...
(Common to Information Technology, Computer Science and Systems ... candidates of particular constituency, their bio-data, address of the polling booths, · etc.

Code No: R05420805 JAWAHARLAL NEHRU TECHNOLOGICAL ...
[16] · 6. Explain the role played by Small Industries Service Institute (SISI) in promoting ... f. National Small Industries Corporation (NSIC). g. Small Scale ...