Professional Documents
Culture Documents
MCA (Revised)
(NI Term-End Examination
June, 2010
0 MCS-024 : OBJECT ORIENTED
TECHNOLOGIES AND JAVA
o m
PROGRAMMING
u . c
r
Time : 3 hours Maximum Marks : 100
u
Note : Q. No. 1 is compulsory. Attempt any three questions
G
from the rest.
1.
n t
(a) Consider a class that stores a Bank account 6
e
holder's account number, ATM card
m
number, account balance and ATM PIN.
n
Write a program to store the data onto a
g
disk file, except for the account balance and
s i
ATM PIN. Use serialization and transient
s
variables.
A
What makes compiled JAVA programs 4
U
platform independent ? Explain.
O
Explain the significance of PATH and 5
N
CLASS PATH.
2
G
Is this a complete and legal comment ?
I / * // */
Justify .
Are inner class secure and useful?
(f) What are the two fundamental mechanisms
5
5
for building a new classes of a existing class ?
MCS-024 1 P.T.O.
The members of which classes can access 5
members of a class in a particular package ?
m
Why cannot the "abstract" method modifier 3
o
be used together with the "native" modifier ?
u . c
2. (a) Differentiate the following and support
u r
G
with example : 2.5x4=10
n t
Final and static member
e
Inheritance and Aggregation
n m
Abstract class and Interface
s
(b) Write a program to implement the following
A
operations on a string : 3.5x2=7
O U Convert to uppercase
N
Convert to lowercase
MCS-024 2
Create a class account with the following 5
data members
(i) account id
name
m
(iii) current balance
o
and implement the member functions :
Withdraw
u .c
r
deposit
How multiple inheritance is achieved in
G u 3
t
Java ? Explain with an example.
n
Write an applet that prints "Here" at the 9
e
current cursor position whenever the mouse
m
left button is clicked.
4.
i g n
(a) Write short notes on following :
s s
Interthread communication 3
O
6
layouts with example.
N
IG
Write a Java program to set up JDBC and 8
execute the following SQL statement on a
database table employee-t with the fields
emp-id, emp name, emp-department, emp-
basic "SELECT * FROM employee-t where
emp-basic < 10000;
MCS-024 3 P.T.O.
5. (a) Write a program to sort the list given as 10
command line arguments using bubble sort.
What is Java Bean ? What are its 5
advantages ?
m
What is Introspection in Java Beans ? 5
o
Illustrate with a code fragment.
u .c
u r
n tG
e
n m
s i g
As
O U
N
IG
MCS-024 4
IG
NO
UA
ss
ign
me
ntG
uru
.co
m
IG
NO
UA
ss
ign
me
ntG
uru
.co
m
IG
NO
UA
ss
ign
me
ntG
uru
.co
m
No. of Printed Pages : 2 MCS-024
m
MCA (Revised)
Term-End Examination
.co
June, 2011
O
MCS-024 : OBJECT ORIENTED
uru
TECHNOLOGIES AND JAVA
PROGRAMMING
ntG
Note : Q. No. 1 is compulsory, Attempt any 3 questions from
the rest. Attempt all parts of questions together.
exception. L
(g) Write a program in JAVA to convert given 10
Full Name eg. "Ajay Singh" into First Name
IGN
MCS-024 1 P.T.O.
2. (a) How does java implements the model of 10
m
interprocess synchronization using
Threads ? Explain with the help of a
.co
program.
(b) Write a program in Java which reads the 1,0
content of a given file and writes it to the
console.
uru
3. (a) What is layout manager ? Which is the 10
default layout manager ? Differentiate
among the way of managing components
tG
by 5 different layouts.
(b) Write a program for reading from and
writing to a URL connection.
n 10
me
4. (a) Explain advantage of exception. How 10
exception sub classes are created ? Create
your own exception subclass "My Ex class"
which takes an string as input and throws
gn
communication.
(c) Explain two uses of "final" keyword with 5
As
MCS-024 2
No. of Printed Pages : 3 MCS-024
m
MCA (Revised)
Term-End Examination
.co
0
June, 2012
uru
TECHNOLOGIES AND JAVA
PROGRAMMING
Note :
the rest.
ntG
Question 1 is compulsory. Attempt any three from
me
1. (a) What is multithreading ? Explain how does 5
it help Java in its performance ?
(b) Differentiate between throw and throws ? 5
n
MCS-024 1 P.T.O.
2. (a) Distinguish between the following terms
with examples : 2.5x4=10
m
(i) Exception and Error
(ii) Method overloading and overriding
.co
(iii) Final and Finally
(iv) Instance variables and class variables.
uru
(b) What is constructor ? Explain constructor 10
overloading in Java with an example.
int i = -1;
sig
i = i>>1 ;
system.out. println (i) ;
As
100000)
MCS-024 2
4. (a) What is URL ? Explain two constructor for 8
URL, in Java.net package. Explain how you
m
may connect to a URL in Java.
(b) Write an applet that draws circle, a line, and 5
.co
a polygon inside the applet's visible area.
(c) Compare the different layout managers in 7
brief.
uru
5. (a) Write a serulet program that fetches all data 8
from client and stores it in a database
(b)
successfully. ntG
What do you mean by an event ? Explain 6
different components of an event.
me
(c) What are the different types of AWT 6
components ? How are these components
added to the container.
n
sig
As
OU
IGN
MCS-024 3
No. of Printed Pages : 3 -
I MCS 024
m
MCA (Revised)
Term-End Examination
.co
00
t December, 2012
O MCS-024 : OBJECT ORIENTED
uru
TECHNOLOGIES AND JAVA
PROGRAMMING
Time : 3 hours Maximum Marks : 100
Note :
the rest.
ntG
Question 1 is compulsory. Attempt any three from
me
stages of a thread.
(h) What is Garbage collection? Explain
advantages and disadvantage of Garbage 6
IGN
collection in Java.
MCS-024 1 P.T.O.
2. (a) Briefly explain role of following classes in 6
m
Java Network programming
(i) Socket
(ii) Datagrams Packet
.co
(b) Explain the difference between application 4
and applet ?
(c) What is object oriented programming ? 10
uru
Explain basic concepts of object oriented
programming, briefly.
3. ntG
(a) Explain the two types of exceptions
available in java, with an example of each.
8
connection is established.
(c) WAP to reverse a linked list and then copy 7
IGN
MCS-024 2
5. (a) What is String Buffer? How it is different 8
m
from String? Write a Java program which
take your name as input and print it in
upper case.
.co
(b) What is RMI ? Explain RMI Architecture 7
with suitable diagram.
uru
(c) Why we use Java Beans in Java? Explain 5
features of Java Beans.
ntG
n me
sig
As
OU
IGN
MCS-024 3
No. of Printed Pages : 4 MCS-024
m
MCA (Revised)
Term-End Examination
.co
June, 2013
0 MCS-024 : OBJECT ORIENTED
uru
TECHNOLOGIES AND JAVA
PROGRAMMING
Time : 3 hours Maximum Marks : 100
tG
Note : Question No. 1 is compulsory. Attempt any three
questions from the rest. Attempt all parts of questions
together.
en
1. (a) Bring out the difference between the string 5
and stringbuffer classes in Java.
m
MCS-024 1 P.T.O.
(e) (i) How would you transfer control from 1
m
the innermost loop of a thrice nested
loop to the next statement outside the
.co
loops ?
(ii) What are the conditions necessary for 1
a class to be serializable ?
uru
(iii) Why is it not necessary to handle 2
Runtime Exception ?
(f) When is the "this" keyword used and 4
tG
why ? Write a program fragment to
illustrate.
en
(g) Write a Java program to read a text file and 10
output the number of case insensitive
occurrences of the sequence of letters "the"
m
in it.
gn
6
hidden form fields. What is the
disadvantage of this approach ?
MCS-024
3. (a) What is polymorphism ? Write a program 10
m
to illustrate late binding in Java.
.co
program to read" Experiment 1" and copy
the contents of "Experiment 1" to a new file
"Experiment 2". Also count the number of
uru
words and lines copied.
4.
tG
(a) There is a database with a table emp_t that
has employee_id, name, old_basic_salary
12
en
and new_basic. Write a Java program to
find all employees whose old basic salary is
less than 20,000 and give them a 10%
m
employee.
(vii) —x (viii)
MCS-024 3 P.T.O.
5. (a) What is meant by thread priority ? Write a 8
m
Java program that creates two threads-one
with minimum and the other with
.co
maximum priority. The first prints the
letters A to Z while the second prints the
numbers 1 to 26. Which thread would you
uru
expect to finish first and why ?
(b) Write a Java program that finds : 8
(i) the area of a circle with that radius if
1 parameter is passed to it.
(ii)
tG
the area of a rectangle with those sides
if 2 parameters are passed to it.
en
(iii)the surface area of a box if 3
parameters are passed to it.
(c) Explain how to compile and run a Java 4
m
Servlet.
si gn
As
OU
IGN
MCS-024 4
No. of Printed Pages : 3 MCS-02-41
m
MCA (Revised)
Term-End Examination
.co
December, 2013
uru
TECHNOLOGIES AND JAVA
PROGRAMMING
Time : 3 hours Maximum Marks 100
Note : Question No. 1 L; compulsory. Attempt any three
tG
questions from the rest. Attempt all parts of questions
together.
en
(a) Bring out the difference between the 5
statement and prepared statement classes
in Java.
nm
MCS-024 I P.T.O.
2. (a) Write an applet that draws a coloured line 10
m
from the last point on which the mouse was
clicked to the location of the current mouse
.co
click. The colour of the line should be a
parameter passed to the applet when
invoking it.
uru
(b) Write a Java program to show that when 10
more than one thread is waiting for an
object's monitor, and the monitor wakes up
tG
all threads waiting on it, the highest priority
thread that has been waiting is run first.
en
3. (a) There are two files called file 1 and file 2 10
each containing some lines of text (such as
nm
number of words.
(b) Arrange the following operators in 4
descending order of precedence
As
being inherited ?
Can an abstract class have a method
that is not abstract ?
IGN
MCS-024 2
(iv) Is multiple inheritance allowed in 2
m
Java ? Is multi-level inheritance
allowed ?
.co
(v) Can you have a try block without a 1
catch clause ?
uru
4. (a) In a two dimensional Java array, can each 10
row have a different number of columns ?
Write a Java program to initialize the
contents of a 3 dimensional array of size
tG
9 x 6 x 11 such that each element is the sum
of the cubes of its subscripts. For example,
en
a [5]141181 = 125 + 64 +512 = 701
(b) Write a Java program to receive a UDP 10
datagram on port 9701 and place the data
nm
implementing an interface ?
MCS-024 3
No. of Printed Pages : 3 MCS-024
MCA (Revised)/BCA (Revised)
m
Term-End Examination
E
N June, 2014
.co
MCS-024 : OBJECT ORIENTED
TECHNOLOGIES AND JAVA
uru
PROGRAMMING
Time : 3 hours Maximum Marks : 100
(Weightage 75%)
Note : (i)
ntG
Question No. 1 is compulsory.
(ii) Answer any three questions from the rest.
(iii) Attempt all of a question together.
me
1. (a) What is object oriented programming ? 8
How is it different from structured
programming ? Explain advantages of
n
package.
MCS-024 1 P.T.O.
(f) What is Exception ? Explain how 9
exceptions are handled in Java. Write a
m
Queue class that throws an exception when
the Queue is full. Display exception
message as "Queue is full".
.co
(g) Explain the Java RMI architcuture with the 5
help of a diagram.
uru
2. (a) What is multithreading ? Explain the steps 10
for creating thread in Java. Also, explain
different predefined thread priorities in
Java. ntG
(b) Write a Java Program which takes two 10
3 x 3 matrices as input and find sum of the
me
two matrices ? Define constructor for
initializing matrix objects.
n
number.
(c) What is inheritance ? Explain with an 5
example how is multiple inheritance
IGN
achieved in Java ?
MCS-024 2
4. (a) Write a Java program to setup JDBC and 10
execute an SQL statement on a database
m
table 'BOOK', with the fields BOOK_ISBN,
BOOK_AUTH, BOOK_PRICE, BOOK_PUBL.
.co
The SQL statement should find the
BOOK_AUTH and BOOK_PRICE of the
Book having ISBN = 235001.
uru
(b) What is Polymorphism ? Explain advantage 10
of polymorphism with an example of
managing different types of Bank Accounts.
5.
tG
(a) What is Java Bean ? Explain its advantages.
(b) What is String Class in Java ? Write a
n
program to insert a substring in the middle
5
5
MCS-024 3
No. of Printed Pages : 3 MCS-024
m
MCA (Revised) / BCA (Revised)
Term-End Examination
co
December, 2014
.
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
uru
JAVA PROGRAMMING
Time : 3 hours Maximum Marks : 100
(Weightage 75%)
Note :
(i)
tG
en
Q. No. 1 is compulsory.
(ii) Attempt any three questions from the rest.
(iii) Attempt all parts of a question together.
nm
of an example. 7
(b) What is classpath ? Explain the use of
classpath in Java programming. 4
As
MCS-024 1 P.T.O.
(f) What is final keyword ? Explain different
uses of final in Java. 4
m
(g) What is exception ? Explain difference
between checked and unchecked exceptions
co
with an example of each. 5
.
2. (a) Differentiate the following, with the help of
uru
example : 4x3=12
tG
Oriented Approach
(iii) String and String Buffer
en
(iv) Abstract Class and Interface
example. 10
MCS-024 2
4. (a) What is finalize( ) method in Java. Give an
example to demonstrate its use. 5
m
(b) Define package in Java. Explain the need
of 'user created package' in Java. Also,
co
explain the procedure of creating a package
in Java. 5
.
(c) What is the difference between throw and
uru
throws keywords used in Java ? Explain
with an example. 5
MCS-024 3 12,000
No. of Printed Pages : 3 I MCS-024 I
m
MCA (Revised) / BCA (Revised)
Term-End Examination
.co
07823 June, 2015
uru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
JAVA PROGRAMMING
Time : 3 hours Maximum Marks : 100
ntG
(Weightage 75%)
Note :
(i) Q. No. 1 is compulsory.
me
(ii) Attempt any three questions from the rest.
m
with examples : 3x4=12
(i) Structured Programming and Object
.co
Oriented Programming
(ii) Data Abstraction and Encapsulation
(iii) length and length( )
uru
(iv) Class and Object
ntG
threads ? Explain them with a suitable
example. 8
MCS-024 2
5. (a) What is Servlet ? Explain how session
m
handling is performed in Servlet
programming.
.co
(b) What is an Interface ? Write a Java
program to show how a class implements
two interfaces. 6
uru
(c) What is String class ? How is it different
from StringBuffer class ? Write a Java
program to find the length of a given string. 7
ntG
me
ign
ss
UA
NO
IG
MCS-024 3 12,000
a *a
No. of Printed Pages : 3
m
MCS-024
MCA (Revised) / BCA (Revised)
.co
Term-End Examination
December, 2015
uru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
JAVA PROGRAMMING
Time : 3 hours Maximum Marks : 100
ntG (Weightage 75%)
Note : Question no. 1 is compulsory. Attempt any three
questions from the rest.
e
1. (a) Explain the basic features of Object
nm
JVM.
(c) What is the difference between constructor
and method ? Explain with an example. 5
As
MCS-024 1 P.T.O.
m
2. (a) Distinguish between the following terms
with suitable example(s) : 4x3=12
(i) Method Overloading and Overriding
.co
(ii) Application and Applet
(iii) Get Method and Post Method in
Servlet.
uru
(iv) Readers / Writers and 1/0 Streams.
(b) What is listener ? Write a program to
implement mouse motion listener.
ntG
3. (a) What is encapsulation ? Explain its
advantage with suitable example.
(b) What will be the output of the following
3
program :
e
Class t extends Thread
nm
System.out.println ("start");
sig
yield 0;
resume 0;
System.out.println ("restart");
As
stop 0;
resume 0;
System.out.println ("Nothing");
OU
t 1 = new t 0;
IGN
tl.start O;
MCS-024 2
(c) Explain the output stream class hierarchy
m
in Java. 6
.co
(d) What is layout manager ? Explain the Flow
Layout and Border Layout. Also explain
how a layout is set.
uru
4. (a) What is a JavaBean ? Discuss its features
in brief. 5
(b) What is checked exception ? How is it
ntG
different from unchecked exception ?
Explain with an example. 7
MCS-024 3 12,000
No. of Printed Pages : 3 I MCS-024
m
MCA (Revised) / BCA (Revised)
Term-End Examination
.co
June, 2016
017-1-6 16
uru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
JAVA PROGRAMMING
tG
Time : 3 hours Maximum Marks : 100
(Weightage 75%)
en
Note : Question no. 1 is compulsory. Attempt any three
questions from the rest.
nm
example.
(d) Explain Java Thread Model using Thread
OU
Life Cycle. 6
(e) What is the usage of literals in a
programming language ? Explain the usage
IGN
MCS-024 1 P.T.O.
(f) Explain the usage of Flow Layout and Card
m
Layout in Java Applet with diagram. 6
.co
(g) Explain the usage of container in Java
Applet and Servlet.
uru
2. (a) Explain the usage of reserved ports in net
programming for FTP, TCP, etc.
tG
program. 6
web page. 8
MCS-024 2
5. (a) Explain the usage of Stream Tokenizer
m
class.
.co
(b) Write a Java program to convert all the
strings of input to upper case. The input
string should be submitted using a textbox
uru
in a form of web page.
tG
en
nm
sig
As
OU
IGN
MCS-024 3 11,500
No. of Printed Pages : 3 I mcs-o241
m
MCA (Revised) / BCA (Revised)
Term-End Examination
.co
December, 2016
04 c--1c----1 S-
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
uru
JAVA PROGRAMMING
tG
Time : 3 hours
(Weightage 75%)
en
Note : Question no. 1 is compulsory. Attempt any three
questions from the rest.
nm
example. 6
communication. 6
Java programming. 6
MCS-024 1 P.T.O.
(f) Explain the usage of GridLayout and
m
GridBagLayout in a Java Applet with
diagram.
.co
(g) Which types of components are used in
designing swing based GUI ? 6
uru
2. (a) Explain the usage of anonymous proxy
servers in designing mailing application. 6
program. tG
multidimensional arrays in a Java
6
en
(c) Write a Java program for "writing output
on console" using PrintWriter() method. 8
nm
synchronization. 8
MCS-024 2
5. (a) Explain the term BufferedStream using a
Java program.
m
(b) Write a Java program for writing files in
.co
"C: \javafiles \" location.
uru
connection for creating a dynamic website
for INSERT/UPDATE the attendance
record for employees of an organization.
tG
en
nm
sig
As
OU
IGN
MCS-024 3 9,000
No. of Printed Pages : 4
I MCS-024 I
MCA (Revised) / BCA (Revised)
m
Term-End Examination
.co
A- CD Ealle 1- June, 2017
uru
JAVA PROGRAMMING
tG
Note : Question no. I is compulsory and carries
40 marks. Attempt any three questions from the
en
rest.
m
.co
Athlete (Event) Hockey player
(Goals scored)
uru
In this hierarchy, you can assume that a
sportsperson can either be an athlete or a
hockey player. Every sportsperson has a
tG
unique name. An athlete is characterised
by the event in which he/she participates;
en
whereas a hockey player is characterised
by the number of goals scored by him/her.
Perform the following tasks using Java :
nm
MCS-024 2
(c) A text file stored on the disk is to be
opened for reading operations. What are
the different checks ,that should be
m
performed on this file ? Write the portion of
the code in Java to perform these checks.
.co
Explain the thread model with the help of
a diagram. 6
uru
What is a layout manager ? Explain the
flow layout and grid layout with the help of
an example of each. 7
tG
(0 What is an event in the context of Java ?
Explain the semantic event with the help
of an example.
en
4
Bitwise operators
Operators precedence
Array initializer
IGN
Byte code
MCS-024 3 P.T.O.
3. (a) Define the term exception in the context of
Java. What are the causes of exception ?
m
What are the actions that may need to be
performed if an exception is caught ?
Explain the uses of try and catch in Java
.co
with the help of an example program
segment. 10
(b) What is an Interface ? What is meant by
uru
`implementing interfaces' ? Explain with
the help of an example. 5
(c) What are the uses of "this" keyword in
tG
Java ? Explain with the help of an example.
4. (a) What are the advantages of multithreading
en
in Java ? Explain the interthread
communication with the help of an example. 8
nm
m
MCA (Revised) / BCA (Revised)
Term-End Examination
.co
December, 2017
0.4-1:360
uru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
JAVA PROGRAMMING
tG (Weightage 75%)
en
Note : Question no. 1 is compulsory and carries
40 marks. Attempt any three questions from the
rest of the questicins.
nm
1
As
Graduate_student Research_student
(% marks in 12th, stream) (specialisation, years of experience)
OU
m
percentage of marks and stream, like
science, commerce, etc. is recorded;
whereas for research students,
.co
additionally, specialisation and years of
working experience, if any, is recorded.
Each class has a constructor. The
uru
constructor of subclasses makes a call to
constructor of the superclass. Assume that
every constructor has the same number of
tG
parameters as the number of instance
variables. In addition, every subclass has a
en
method that may update the instance
variable values of that subclass. All
the classes have a function
nm
m
subclass. Can you create an object of
the superclass ? Justify your
.co
answer.
(v) Write the code in main that uses
uru
objects - and overriding to show
polymorphism.
text file.
MCS-024 3 P.T.O.
2. (a) List the salient features of object oriented
programming approach that distinguishes
m
it from the procedural programming.
.co
(b) Explain different forms of inheritance with
the help of diagrams. What are the
advantages of using inheritance ? 8
uru
(c) Explain the following with the help of an
example of each :
(i) Dynamic Initialization
(ii)
(iii)
tG
Operator Precedence
Switch Statement
en
(iv) Array Initialization
parameters in Java. 5
(c) What is a Package in Java ? How are they
related to CLASSPATH ? Explain with the
As
m
compaie two objects of String class. Also
write a program that converts lowercase
.co
characters to uppercase characters of a
string. 8
uru
Stream classes ? 6
(i) PrintStream
RandomAccessFile
tG
ByteArraylnputStream
(iv) FilterOutputStream
en
5. Explain the following with the help of a/an
diagram/example/program, if needed : 20
nm
MCS-024 5 8,000
No. of Printed Pages : 3 I MCS-024
m
MCA (Revised) / BCA (Revised)
Term-End Examination
.co
June, 2018
CJ r C.)
uru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
JAVA PROGRAMMING
Time : 3 hours
ntG Maximum Marks : 100
(Weightage 75%)
me
Note : Question no. 1 is compulsory. Attempt any three
questions from the rest of the questions.
gn
throws statement. 4
MCS-024 1 P.T.O.
(f) Explain container class in Java. Give its
significance for Java GUI programming. 5
m
(g) What is public access specifier ? How is it
different from private access specifier ?
.co
Explain with example. 5
uru
to execute an applet. 5
(b)
programming. ntG
What is import ? Explain the need of
10
required. 10
MCS-024 2
4. (a) What are the features of Object Oriented
Programming ? Explain encapsulation and
m
its advantages, with an example.
.co
(b) How is String class different from
StringBuffer class ? Write a program in
Java to find the length of a given string. 7
uru
(c) Write a program in Java, to copy the text
content of one file into another file. 7
5. ntG
(a) Explain each component of the statement
"public static void main (string args ] )". 6
MCS-024 3 12,000
No. of Printed Pages : 3 I mcs-0241
m
MCA (Revised) / BCA (Revised)
.co
Term-End Examination
December, 2018
OkESSS 3
uru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
JAVA PROGRAMMING
m
(h) Explain the Java RMI architecture with
5
.co
the help of a diagram.
uru
of white spaces, number of characters,
number of words and number of full stops
in the content. Support your code with
ntG
comments, to describe your logic.
(b) What is multithreading ? Explain the steps
for creating thread in Java. Also explain
10
example. 10
m
(a) Message Passing
.co
(b) Java Beans
uru
(d) Package
e ntG
nm
sig
As
OU
IGN
MCS-024 3 10,000
0031
No. of Printed Pages : 3 MCS-0241
m
MCA (Revised) / BCA (Revised)
.co
Term-End Examination, 2019
MCS-024 : OBJECT ORIENTED TECHNOLOGIES
AND JAVA PROGRAMMING
uru
Time : Three Hours] [Maximum Marks : 100
(Weightage 75%
language". [3]
.co
(g) What is the difference between notify( ) and notify
All( ) method.
uru
[5]
ntG
is caught ? Explain use of finally clause in
exceptions handling, with the help of an example.
[10]
me
(b) Differentiate between following : [10]
ign
MCS-024 (2)
m
(c) What is JDBC ? What are the characteristics of
JDBC ? Write a program to demonstrate how
.co
JDBC connection is established. [8]
uru
constructors of String Class. Write a program in
Java to find length of a given string and display
ntG
the string in upper case. [10]
m
No. of Printed Pages.: 4 1MCS-0241
co
MCA (Revised) / BCA (Revised)
.
-
uru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES
AND JAVA PROGRAMMING
Time : 3 Hours]
ntG [Maximum Marks : 100
(Weightage 75%)
me
Note : Question no. 1 is compulsory and carries 40 marks.
Attempt any three questions from the rest.
ign
[5]
applet ?
[5]
MCS-024/9500
m
Write a program to generate a circle in an
(d)
co
[5]
applet ?
.
uru
Java ? Discuss any technique, used for session
[5]
tracking.
ntG
(f)
subclass. Write a program in Java to show the
example ? [51
ign
example. [5]
ss
briefly. [5]
NO
of not. -
(2)
m
(c) What is a layout manager ? Discuss the Flow
co
layout and grid layout, give suitable example for
each. [1 0]
.
uru
(a) Briefly explain the role of following classes in Java
Network programming : [5]
(I) Socket
(ii) ntG
Datagram Packet
co
[4]
.
What is an interface ? Write a java program to
uru
(d)
show, how a class implements two interface.[5]
ntG
Java Beams and its advantages
x
UA
NO
IG
MCS-024/9500 (4)
No. of Printed Pages : 4 I MCS-024
m
MCA (Revised) / BCA (Revised)
.co
Term-End Examination
uru
AND JAVA PROGRAMMING
tG
en (Weightage 75%)
MCS-024 / 3060
(d) What is interface in Java? Write a java
m
program to exhibit, how to define and
implement interface. 5
.co
(e) What are the uses of "this" keyword in java?
Explain with the help of an example. 5
uru
(f) What is byte code? Explain the difference
between compiled code of Java and compiled
tG
code of C. 5
the readability. 5
diagram. 5
m
in Java. Write a Java program to perform "cc"
bitwise operator on a given number. 8
.co
3. (a) What is certainer (in context of java)? Explain
the significance of container in Java GUI
uru
program. 5
(b) What is stream tokenizer in Java? What is
its significance ? Discuss the instance
tG
variables defined in streamtokenizer? Give
an example to show the use of
en
streamtokenizer. 7
(c) Write a client & server programs in Java to
nm
m
context of Java? How it is handled, explain
.co
with the help of suitable example code in
Java? 5
uru
(b) What is a layout manager? Briefly discuss
the role of layout manager in Java. Explain
the flow layout and grid layout with the help
tG
of an example for each. 7
en
(c) Differentiate between any two of the
following: 8
nm
-X-
OU
IGN
om
M. C. A. (REVISED)/B.C.A. (REVISED)
u.c
Term-End Examination
December, 2020
ur
MCS-024 : OBJECT ORIENTED TECHNOLOGIES
tG
AND JAVA PROGRAMMING
Lot-II P. T. O.
[2] MCS-024
om
using suitable examples : 5
(i) Extends
(ii) Implements
u.c
(e) Write a java program to convert a given
string to uppercase and also display the
ur
length of the string. 5
tG
(f) What is datagram socket ? Explain the use
of datagram socket with the help of a
en
program in java. 5
comments. 7
[3] MCS-024
om
inheritance ? Explain how multiple
using interface. 8
u.c
3. (a) Explain the life cycle of servlet, along with
ur
a program that creates a simple servlet
students”.
tG 10
en
(b) What is an exception ? What is runtime
exception handling. 10
inheritance. 10
P. T. O.
[4] MCS-024
om
(a) Cookies and their role in session handling
u.c
(c) Buffered stream classes and their utility
ur
(e) Garbage collection
tG
en
m
ign
ss
UA
NO
IG
MCS–024 7,750
No. of Printed Pages : 3 MCS-024
om
MCA (Revised) / BCA (Revised)
Term-End Examination
.c
June, 2021
ru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES
u
AND JAVA PROGRAMMING
Time : 3 hours
of both. 5
UA
always static. 5
MCS-024 1 P.T.O.
(e) What is an Interface ? Write a program to
show how a class implements two interfaces. 5
om
(f) What is Object Serialization ? Briefly
discuss the working of Object Serialization. 5
.c
(g) Compare StringBuffer Object with String
Object. When should StringBuffer Object be
ru
preferred over String Object ? 5
u
suitable example. 5
tG
2. (a) Discuss the life cycle of applet, with the
en
help of a suitable block diagram. 5
used in JDBC. 5
om
literals are there in Java ? 5
.c
Garbage Collection. 5
ru
(c) What are uses of final keyword in Java ? 5
u
implementing Runnable Interface. What is
tG
thread priority ?
en 5
MCS-024 3 P.T.O.
No. of Printed Pages : 3 MCS-024
om
MCA (Revised) / BCA (Revised)
Term-End Examination
.c
December, 2021
ru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
u
JAVA PROGRAMMING
tG
Time : 3 hours en Maximum Marks : 100
(Weightage : 75%)
and methods. 5
MCS-024 1 P.T.O.
(e) What is an exception ? Write any three
actions that can be taken after an
om
exception occurs in a program. 5
(f) What are threads ? Explain how threads
are created by implementing Runnable
.c
Interface. 5
(g) What is serialization ? Differentiate
ru
between Transient and Volatile keyword. 5
u
(h) Discuss the architecture of Applet, with the
help of a suitable block diagram. 5
tG
2. (a) Briefly discuss the methods used by Applet
en
during their life cycle. 5
(b) What are proxy servers ? When should you
use anonymous proxy servers ? 5
m
MCS-024 2
4. (a) What is the difference between & operator
om
and the && operator ? Give suitable
example for each. 5
.c
constructor with the help of a program. 5
ru
(c) What is finalize( ) method ? Write the
properties of finalize( ) method. Write the
u
declaration statement for finalize( )
tG
method. 5
MCS-024 3 P.T.O.
No. of Printed Pages : 3 MCS-024
om
MCA (Revised) / BCA (Revised)
Term-End Examination
.c
June, 2022
ru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND
u
JAVA PROGRAMMING
tG
Time : 3 hours en Maximum Marks : 100
(Weightage : 75%)
MCS-024 1 P.T.O.
(e) What is classpath ? Explain the utility of
classpath, with the help of a suitable
om
example. 5
(f) Compare private and protected access
specifiers. Give suitable example for each. 5
.c
(g) Differentiate between Method-overloading
and Method-overriding, with the help of a
ru
suitable example. 5
u
(h) What is layout manager ? Explain any two
layouts in Java. 5
tG
2. (a) What are proxy servers ? Explain the usage
en
of anonymous proxy servers in designing
mailing applications. 6
(b) How does Servlet differ from Applet ?
m
Discuss all the phases of a servlet lifecycle. 7
ign
a StringBuffer object. 6
(b) Write a program to pass parameters to an
Applet using a web page. Also write the
NO
MCS-024 2
4. (a) Write a Java program to create a Teacher
om
class and derive PGT, TGT and PRT classes
from Teacher class. Define appropriate
construction for all the classes. Also define
a method to display information of Teacher.
.c
Make necessary assumptions as required. 10
ru
(b) Write a Java program to set up JDBC and
execute an SQL statement on a database
u
table ‘BOOK’, with fields BOOK_ISBN,
tG
BOOK_AUTH, BOOK_PRICE,
BOOK_PUBL. The SQL statement should
en
find the BOOK_AUTH and BOOK_PRICE
of the BOOK having ISBN = 500123. 10
m
5. (a) What is an Exception ? Briefly explain the
causes of Exceptions. Describe how multiple
ign
comments. 5
(c) Explain the Java RMI architecture, with
the help of a diagram. 5
NO
IG
MCS-024 3 P.T.O.
No. of Printed Pages : 4 MCS-024
om
M. C. A. (REVISED)/B.C.A. (REVISED)
u.c
Term-End Examination
December, 2022
ur
MCS-024 : OBJECT ORIENTED TECHNOLOGIES
AND JAVA PROGRAMMING
Time : 3 Hours
tG Maximum Marks : 100
en
Weightage : 75%
questions.
suitable example. 5
P. T. O.
[2] MCS-024
om
significance in Java GUI programming. 4
u.c
(f) What is Java applet ? How is it different
from Java application program ? 5
ur
(g) Explain the Java RMI architecture with
tG
the help of a diagram. 5
example. 5
code. 5
[3] MCS-024
om
named ‘ignou-txt’ and write ‘Hello IGNOU’
in it. 6
u.c
console’ using PrintWriter( ) method. Give
suitable comments for readability of your
ur
program. 6
tG
basic causes of occurrence of an exception ?
en
Write a program in Java, to show the
concept of exception handling. Support
m
10
organization. 10
P. T. O.
[4] MCS-024
om
3 × 3 matrices as input and find sum of the
two matrices ? Define constructor for
initializing the matrix object. Give suitable
u.c
comments for readability of your code. 10
ur
number entered by user. 5
tG
structured programming. Give advantages
en
of object oriented progamming over the
structured programming. 5
m
ign
ss
UA
NO
IG
MCS–024
No. of Printed Pages : 4 MCS-024
om
MASTER OF COMPUER
u.c
APPLICATIONS (MCA) (REVISED)/
BACHELOR OF COMPUTER
ur
APPLICATIONS B.C.A. (REVISED)
Term-End Examination
tG
June, 2023
en
MCS-024 : OBJECT ORIENTED TECHNOLOGIES
AND JAVA PROGRAMMING
m
Weightage : 75%
Note : Question No. 1 is compulsory. Attempt any
ss
JVM. 5
P. T. O.
[2] MCS-024
om
method, give example for both. 5
u.c
(e) What are cookies and session variables ?
Briefly discuss the utility of both. 5
ur
(f) Explain the different steps in the life cycle
tG
of an applet. 5
each. 10
om
from String Buffer class ? Write a java
u.c
string. 7
ur
handling is performed in servlet
programming. 7
tG
(c) What is an Interface ? Write a java
en
program to show how a class implements
two interfaces. 6
m
classes. 7
NO
P. T. O.
[4] MCS-024
om
(a) Dynamic Binding
u.c
(c) JDBC Drivers
ur
(d) Function Overloading
tG
en
m
ign
ss
UA
NO
IG
MCS–024 7,070