05.04.2013 Views

Old Exam Papers June 2012 (Set 2)

Old Exam Papers June 2012 (Set 2)

Old Exam Papers June 2012 (Set 2)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. (a) Write short notes on : (any two)<br />

(i) Scope resolution operator<br />

(ii) Explicit type conversion<br />

(iii) Member function of class<br />

(iv) Enumerated data type<br />

(b) Define a class to represent complex number. The<br />

class has features of setting and printing the values.<br />

Write a program to test the class. 10<br />

4. (a) What is polymorphism ? How does polymorphism<br />

promote extensibility ? 10<br />

(b) Explain Run time memory management in C++<br />

with example. 10<br />

5. (a) Why is Java known as platform neutral<br />

language ? 10<br />

(b) What is Java applet ? Explain Applet life cycle with<br />

diagram. 10<br />

6. (a) Write a program in Java to find out factorial of a<br />

natural number 10. 10<br />

10<br />

(b) Differentiate between C++ and Java. 10<br />

7. (a) What is thread ? Explain the multiprocessing and<br />

multithreading with suitable examples. 10<br />

(b) What are different operators used in Java ? Write<br />

a note on operator overloading. 10<br />

8. Write short notes on :<br />

(i) Garbage collection<br />

(ii) Adapter classes<br />

(iii) Package<br />

(iv) Catch and throw blocks<br />

700 2 PGDCA/CPCJ/M.Sc.C.S.-03 PGDCA/CPCJ/M.Sc.C.S.-03 3 700<br />

20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!