How To Exam?

a knowledge trading engine...


University of Delhi 2010-4th Sem M.C.A 2nd yr PROGRAMMING PARADIGMS UNIVERSITY - Question Paper

Tuesday, 21 May 2013 04:25Web



This question paper contains 3 printed pages.

6136    Your Roil /Vo.

MCA/IV Sem.

Paper MCA - 403 PROGRAMMING PARADIGMS

(Admissions of2006 & onwards)

Time 3 hours    Maximum Marks 60

(Write your Roll No on the top immediately on receipt of this question paper)

Attempt all questions Parts of a question must be answered together.

1    a) Illustrate the variety of bindings and binding times for

the following statement *

X = X+10    06

b)    Discuss the mam factors that make it difficult to determine the precise speci fication of an operation, 06

c)    What is strong typing 9 Explain    02

2    a) How are fixed point real numbers implemented in a

language 9 Explain with suitable example    05

b)    Differentiate between translation and software interpretation with the help of suitable example 05

c)    Give the access formula for computing the location of component A [I, J] of a matrix Adeclared as

A : array [LB{ . UBpLB2 .... UBJ where A is stored in column major order    05

PT.O

3 a) Discuss the following method for transmitting parameter with the help of examples *

(i)    Call-by-name

(ii)    Call-hy-value result.    OS

b)    Prolog rules can be viewed as logical predicates. The rule a:- b, c will cause a to succeed if b and c both succeed. So we can say a is true if b A c is true.

Under what conditions for p, q, r and s are the following Prolog rules satisfied ?

X -p,!,q X : - r, s

(ii) X . - p* q

X -r, *,s    04

c)    Write a function Append in Prolog to append two given lists.    04

4 a) Show the structure of activation record for the given subprogram *

float FUNC (mt X, float Y)

{ constz= 10,

# define maxval = 20, intk; char A [5], k = max val; if (N > Z)

return (2*z + k);

}    os

b) Discuss the advantages and disadvantages of dynamic type checking over static type checking.    OS

c)    Write an iterative function in LISP named sum-all ( ) using do that takes an integer n as argument and returns sum of integers from 1 to n. For example

(sum-all 5) should return 15.    04

d)    What are the optional parameters m LISP ? Explain with suitable example.    04

100







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER University of Delhi 2010-4th Sem M.C.A 2nd yr PROGRAMMING PARADIGMS UNIVERSITY - Question Paper