Mumbai University Previous year question papers Computer Programming I Dec 2012

Mumbai University Previous year question papers

I Year Examination Dec 2012

Computer Programming-I

N. B.: (1) Question No.1 is compulsory.

(2) Solve any four questions out of remaining.

1. (a) Justify “Java language is 100% object orienteo programming language. 4

(b) Explain shift ope rater by giving example. 4

(c) Describe multidimensional furay. 4

(d) What is main Thread? 4

(e) Describe Applet Skeleton. 4

2.(a) Write a program to demonstrate the use of command line Arguments. 5

(b) Write a program to add the list of items using vector and delete an item in the list according to user’s choice.

(c) What is difference between overloading and overriding ?

(d) .Describe AWT Classes ..

3.(a) Write a program to display following tree .: 5

(b) What is accessibility of the public method or field inside a non public class ?

 

(c) Describe static keyword by giving example.

(d)’ Write a program to demonstrate access protection in different packages.

4. (a) In a method invocation, does Java pass argument by reference or by value.

(b) Describe constants in interfaces along with, example.

 

(c) How to use package and its naming convention ?

5. (a) Write a program to display wheather the inputted number is prime or not. 5

(b) Describe throw and throws statement by giving example.

 

(c) Write a program to create Thread by extending ‘Thread Class’.

(d) Write a program to check the font name and font size of string by passing parameters to apple!.

6.(a) Write a program to open “note pad” using Java application program. .5

(b) Write a program for matrix addition.

(c) Write a program to demonstrate try and multiple catches.

 

(d) What is meaning of monitor with respect to synchronization?

7. (a) Wirte a program to demonstrate overloaded constructor. 5

(b) Describe the different methods of vector class. __ ……. _-.

c) Write a program to demonstrate ~~nce. ‘:’.:

(d) List the names of packages alon s Classes and Methods. 5

Leave a Comment