Sunday, June 8, 2008

Paper 3

1. What is Java?

i. compiled language

ii. interpreted language

iii. Multi threaded

iv. Obj. Oriented.

Ans: i, ii, iii, iv

2. Suppose you want to create a file in a dir in UNIX. What should you have?

i. Read Permission

ii. Write ,,

iii. Exec. ,,

iv. Own the dir.

Ans : All the above

3. For all x, Roar(x) => Lion(x).

4. ASSERT b>0 c>0

if b > c

a = b/c /*path 1*/

else

a = c/b /*path 2*/

ASSERT a > 1



i. path 1 is ok

ii. path 2 is ok

iii. Both ok

iv. None ok.

Ans: i

5. A question concerning relations. (A is B's father. C is B's uncle etc.). Finally who is related to

who.

6. A ques. on Data interpretation.

7. A set of page accesses is given. Max no of pages is 4. How many cache misses.

8. unsigned int x=(unsigned ) ~0;

shift x to the left till you get zero

No comments: