How To Exam?

a knowledge trading engine...


Rajiv Gandhi Proudyogiki Vishwavidyalaya 2011-3rd Sem M.C.A -303 object oriented methodolgy and c++ s - Question Paper

Monday, 28 January 2013 02:40Web

RGPV BHOPAL,MP

M.C.A.(3RD Semeter) exam Dec 2005

OBJECT ORIENTED METHODOLOGY AND C++[MCA-303]

Time: three Hrs Max Marks: 100 Min: 40
Note : ques. number one is compulsory. ans any 3 ques. from the rest.

Q.1. (a) What is a global variable ? discuss 2 major issues that may occur due to global variables. [5]
(b) What is inheritance ? discuss 2 benefits of inheritance, with an example of every. [5]
(c) "One object in Java can be assigned as reference to a different object of the identical kind." To discuss this concept write a complete Java program and discuss how a reference object works. [5]
(d) What is a constructor ? Write a Java program to discuss how super class constructors are called in their subclasses. [5]
(e) What is multitasking ? discuss this with an example of how inter thread communication takes place in Java. [5]
(f) discuss how a string class object can be created using an existing 'String Buffer' object. Also, discuss how can you obtain the location of the last occurrence of 'a' in the string "Java Programming".[5]
(g) What is a check box ? How would you put check boxes on an applet ? discuss how check box group is created in Java. [5]
(h) What is a data gram ? discuss how objects of the class Data gram Packet can be created.[5]

Q.2. (a) What is an instance variable ? discuss how an instance variable of a class can have various value for every object of that class. [5]

(b) What is encapsulation ? discuss how encapsulation provides modularity and info hiding. [5]

(c) What is a URL connection ? Write a Java program to discuss the processes of studying from and writing to a URL. [5]
(d) What is a language paradigm ? discuss 2 basic features of an object oriented paradigm. [5]

Q.3. (a) List 4 differences ranging from a Java applications program and Java applet program, with an example of every kind of program.[8]
(b) obtain the errors in the subsequent Java program, and accurate them. [6]

public class My_String
{
public vold main(string)
{ String str = "Java Programming";
Str.reverse();
System.out.println("Capacity:" + str.capacity());
}
}
(c) Write a program in Java which creates a file reference and obtains the subsequent :[6]
(i) Path of the file;
(ii) Whether file exists or not;
(iii) Whether the file is writable or not;
(iv) Size of the file.

Q4. (a) What is multithreaded programming ?Explain how threads are created in Java. discuss the need lot thread synchronization,with an example. [10]
(b) What is a package?Explain,with an example,how name conflicts are resolved during package import.[4]
(c) Write a program to discuss how parameters are passed in an applet Program. [6]

Q.5. (a) What is a container ? discuss how components are added to a container. What is a default layout of an applet ? How can you change it ? [5]
(b) What is a bitwise operator ? If i is int i = 32, what will the value of i be after [5]
(i) i = < < < three ;
(ii) i = i + i < < < two ?
(c) What is JDBC ? discuss how SQL statements are written and executed in Java. [5]
(d) What is an exception ? write an exception subclass which throws an exception if the variable age passed as argument to a method and the value of age is less than 20. [5]


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Rajiv Gandhi Proudyogiki Vishwavidyalaya 2011-3rd Sem M.C.A -303 object oriented methodolgy and c++ s - Question Paper