0% found this document useful (0 votes)
153 views

MCS024

The document is a past exam paper for the MCA/BCA Term-End Examination in Object Oriented Technologies and Java Programming. It contains 5 questions, with question 1 being compulsory and answering any 3 from the remaining questions. Question 1 contains 8 sub-questions on topics like abstract classes, applets, inter-thread communication, throw vs throws statements, classpath, access specifiers, method overloading vs overriding, and layout managers. The other questions cover topics such as proxy servers, servlet lifecycle, file copying in Java, StringBuffer class, RMI, interfaces, exceptions, and multithreading.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views

MCS024

The document is a past exam paper for the MCA/BCA Term-End Examination in Object Oriented Technologies and Java Programming. It contains 5 questions, with question 1 being compulsory and answering any 3 from the remaining questions. Question 1 contains 8 sub-questions on topics like abstract classes, applets, inter-thread communication, throw vs throws statements, classpath, access specifiers, method overloading vs overriding, and layout managers. The other questions cover topics such as proxy servers, servlet lifecycle, file copying in Java, StringBuffer class, RMI, interfaces, exceptions, and multithreading.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

No.

of Printed Pages : 3 MCS-024

MCA (Revised) / BCA (Revised)


Term-End Examination
June, 2021

MCS-024 : OBJECT ORIENTED TECHNOLOGIES


AND JAVA PROGRAMMING

Time : 3 hours Maximum Marks : 100


(Weightage 75%)

Note : Question no. 1 is compulsory. Attempt any three


questions from the rest.

1. (a) Compare Object Oriented and Procedure


Oriented approaches. Give salient features
of both. 5

(b) What is Dynamic Binding ? Explain the


advantage of dynamic binding. 5

(c) Explain Function Overloading with the


help of suitable example. 5

(d) Explain why the main method in Java is


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
(f) What is Object Serialization ? Briefly
discuss the working of Object Serialization. 5

(g) Compare StringBuffer Object with String


Object. When should StringBuffer Object be
preferred over String Object ? 5

(h) What is Stream Tokenizer ? Discuss with


suitable example. 5

2. (a) Discuss the life cycle of applet, with the


help of a suitable block diagram. 5

(b) What is a Stream Socket ? How is it


different from Datagram Socket ? 5

(c) Briefly discuss the different kinds of drivers


used in JDBC. 5

(d) How do Servlets differ from Applets ?


Briefly discuss the Servlet Life Cycle. 5

3. (a) What is RMI ? Briefly discuss the RMI


object hierarchy. Discuss how distributed
applications are created using RMI. 10
(b) Write a JAVA program that overloads the
function ‘SUM’ that computes the sum of
two integers and the sum of two float
valves. 5
(c) Compare doGet() and doPost() method. 5
MCS-024 2
4. (a) What is a Literal ? How many types of
literals are there in Java ? 5

(b) Briefly discuss the term Garbage Collection.


Give advantages and disadvantages of
Garbage Collection. 5

(c) What are uses of final keyword in Java ? 5

(d) Explain how threads are created by


implementing Runnable Interface. What is
thread priority ? 5

5. Write short notes on the following : 45=20

(a) Transient and Volatile Modifiers

(b) Random Access File and its Methods

(c) TCP/IP Sockets

(d) Multidimensional Array in JAVA

MCS-024 3 P.T.O.
No. of Printed Pages : 4 I MCS-024
MCA (Revised) / BCA (Revised)
Term-End Examination

MCS-024 : OBJECT ORIENTED TECHNOLOGIES


AND JAVA PROGRAMMING

Time : 3 Hours) [Maximum Marks : 100


(Weightage 75%)

Note: Question number 1 is compulsory. Answer any


threqusionfmthequsion.

1. (a) What do you understand by "method


overloading"? How it is different from "method
overriding"? Give suitable example for each.
5
(b) What is the purpose of setting class path?
How it supports the execution of Java
program? Write the steps, performed to set
the class path. 5
(c) What do you mean by "garbage collection"
in Java? Give advantages and disadvantages
of garbage collection. 5

MCS-024 / 3060
(d) What is interface in Java? Write a java
program to exhibit, how to define and
implement interface. 5

(e) What are the uses of "this" keyword in java?


Explain with the help of an example. 5

(f) What is byte code? Explain the difference


between compiled code of Java and compiled
code of C. 5

(g) Write a program in Java to convert the string


"IGNOU" in lower case i.e. "ignou". Give
suitable comments in your code, to increase
the readability. 5

(h) What is an abstract class? How it is used to


impliment polymorphism in Java? 5

2. (a) Explain the life cycle of applet, with suitable


diagram. 5

(b) Write a program in Java that reads text from


the key board and writes it to a ".txt" file.
Incorporate suitable comments in your
program, to improve the readability of your
logic. 7

(2) MCS-024 / 3060


(c) Explain "«", "" and "&" bitwise operators
in Java. Write a Java program to perform "cc"
bitwise operator on a given number. 8
3. (a) What is certainer (in context of java)? Explain
the significance of container in Java GUI
program. 5
(b) What is stream tokenizer in Java? What is
its significance ? Discuss the instance
variables defined in streamtokenizer? Give
an example to show the use of
streamtokenizer. 7
(c) Write a client & server programs in Java to
show the TCP connection establishment and
data transfer. 8
4. (a) Write a JAVA program to draw a color filled
line and a color filled rectangle. 5
(b) Explain the term RMI in Java. Briefly discuss
the steps involved in creation of stub and
skeleton. 7
(c) Discuss the concept of multithreading in
Java. What are the advantages of
multithreading? Explain the interthread
communication with the help of an example.
8
MCS-024 / 3060 (3)
5. (a) What do you understand by "exception", in
context of Java? How it is handled, explain
with the help of suitable example code in
Java? 5

(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
of an example for each. 7

(c) Differentiate between any two of the


following: 8

(i) String class and stringBuffer class

(ii) Throw statement and throws statement

(iii) Final and Finally

-X-

(4) MCS-024 / 3060


No. of Printed Pages : 3 MCS-024

MCA (Revised) / BCA (Revised)


Term-End Examination
June, 2022

MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND


JAVA PROGRAMMING

Time : 3 hours Maximum Marks : 100


(Weightage : 75%)

Note : Question no. 1 is compulsory. Answer any


three questions from the rest.

1. (a) What is an abstract class ? How is it used to


implement polymorphism in Java ? Give
suitable example in support of your answer. 5

(b) What is an applet ? Why is main( ) not


included in writing a Java applet program ? 5

(c) Explain the process of inter-thread


communication in Java, with the help of a
suitable example. 5

(d) Differentiate between throw with throws


statement. Give example code for each. 5

MCS-024 1 P.T.O.
(e) What is classpath ? Explain the utility of
classpath, with the help of a suitable
example. 5
(f) Compare private and protected access
specifiers. Give suitable example for each. 5
(g) Differentiate between Method-overloading
and Method-overriding, with the help of a
suitable example. 5
(h) What is layout manager ? Explain any two
layouts in Java. 5

2. (a) What are proxy servers ? Explain the usage


of anonymous proxy servers in designing
mailing applications. 6
(b) How does Servlet differ from Applet ?
Discuss all the phases of a servlet lifecycle. 7
(c) Write a program in Java to copy the text
content of one file into another file. Support
your program with suitable comments. 7

3. (a) What is StringBuffer class ? Write a


program in Java to append a given string to
a StringBuffer object. 6
(b) Write a program to pass parameters to an
Applet using a web page. Also write the
phases of an Applet lifecycle. 6
(c) What is an event in Java ? How does Java
handle events ? Write a program in Java to
capture any event generated by keyboard. 8

MCS-024 2
4. (a) Write a Java program to create a Teacher
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.
Make necessary assumptions as required. 10

(b) Write a Java program to set up JDBC and


execute an SQL statement on a database
table ‘BOOK’, with fields BOOK_ISBN,
BOOK_AUTH, BOOK_PRICE,
BOOK_PUBL. The SQL statement should
find the BOOK_AUTH and BOOK_PRICE
of the BOOK having ISBN = 500123. 10

5. (a) What is an Exception ? Briefly explain the


causes of Exceptions. Describe how multiple
exceptions are caught in Java, with the help
of a suitable program code. 10
(b) Write a Java program to print Fibonacci
series, up to the nth term entered by the
user. Support your program with suitable
comments. 5
(c) Explain the Java RMI architecture, with
the help of a diagram. 5

MCS-024 3 P.T.O.
No. of Printed Pages : 3 MCS-024

MCA (Revised) / BCA (Revised)


Term-End Examination
December, 2021

MCS-024 : OBJECT ORIENTED TECHNOLOGIES AND


JAVA PROGRAMMING

Time : 3 hours Maximum Marks : 100


(Weightage : 75%)

Note : Question no. 1 is compulsory. Answer any three


questions from the rest.

1. (a) Compare data abstraction and data hiding.


Give an example of each. 5

(b) Compare Inheritance and Polymorphism.


Give an example of each. 5

(c) Why is Java called machine independent


and architecture neutral ? What is the role
of JVM (Java Virtual Machine) ? 5

(d) Write a JAVA program to find the factorial


of a given number. Define appropriate class
and methods. 5

MCS-024 1 P.T.O.
(e) What is an exception ? Write any three
actions that can be taken after an
exception occurs in a program. 5
(f) What are threads ? Explain how threads
are created by implementing Runnable
Interface. 5
(g) What is serialization ? Differentiate
between Transient and Volatile keyword. 5
(h) Discuss the architecture of Applet, with the
help of a suitable block diagram. 5

2. (a) Briefly discuss the methods used by Applet


during their life cycle. 5
(b) What are proxy servers ? When should you
use anonymous proxy servers ? 5
(c) What is RMI ? Which protocol does it use ?
Discuss the security problem in RMI. 5
(d) What is session tracking ? Discuss the role
of cookies in session tracking. 5

3. (a) What is Java Bean ? Briefly discuss the


features of Java Beans. How does Java
Bean differ from an instance of a normal
Java class ? 6
(b) Explain method overloading and method
overriding. Give suitable example for each. 8
(c) What is Synchronization ? Why is it
important ? Explain the use of
synchronized method in multithreading. 6

MCS-024 2
4. (a) What is the difference between & operator
and the && operator ? Give suitable
example for each. 5

(b) What is a constructor ? Explain the use of


constructor with the help of a program. 5

(c) What is finalize( ) method ? Write the


properties of finalize( ) method. Write the
declaration statement for finalize( )
method. 5

(d) Compare checked exceptions with


unchecked exceptions. Give an example for
each. 5

5. Write short notes on the following : 45=20

(a) Methods Used for Interthread Communication

(b) Object Serialization and its Working

(c) Package in Java

(d) AWT and Swing

MCS-024 3 P.T.O.
No. of Printed Pages : 4 MCS-024

M. C. A. (REVISED)/B.C.A. (REVISED)

Term-End Examination
December, 2020

MCS-024 : OBJECT ORIENTED TECHNOLOGIES


AND JAVA PROGRAMMING

Time : 3 Hours Maximum Marks : 100

Weightage : 75%

Note : Question No. 1 is compulsory. Attempt any


three questions from the rest of the
questions.

1. (a) What is Multithreading ? How is


multithreading supported in Java ? 5

(b) What is explicit casting ? Explain with


suitable example. 5

(c) What is the difference between declaring a


variable and defining a variable ? Explain
with the help of an example. 5

Lot-II P. T. O.
[2] MCS-024

(d) Explain the following and their usage


using suitable examples : 5

(i) Extends

(ii) Implements

(e) Write a java program to convert a given


string to uppercase and also display the
length of the string. 5

(f) What is datagram socket ? Explain the use


of datagram socket with the help of a
program in java. 5

(g) Write a java program to draw a triangle. 5

(h) What is function overloading ? Explain it


with the help of a program, written in
java. 5

2. (a) How does java application differ from java


applet ? Do we write “public static void
main(string args [ ]) in applet ? Justify. 5

(b) Write a java program to copy the text


content of one file into another file.
Support your program with suitable
comments. 7
[3] MCS-024

(c) What is the relation between interface and

inheritance ? Explain how multiple

inheritance can be implemented in Java

using interface. 8

3. (a) Explain the life cycle of servlet, along with

a program that creates a simple servlet

generating HTML to write “welcome

students”. 10

(b) What is an exception ? What is runtime

exception ? Write a java program to search

element in a given array with provision of

exception handling. 10

4. (a) How java implements the model of

interprocess synchronization using threads ?

Explain with the help of a program. 10

(b) What is Inheritance ? What are the

advantages of inheritance ? Write a java

program to demonstrate implementation of

inheritance. 10

P. T. O.
[4] MCS-024

5. Write short notes on the following : 5 × 4 = 20

(a) Cookies and their role in session handling

(b) Layout manager and its role

(c) Buffered stream classes and their utility

(d) Uses of super keyword

(e) Garbage collection

MCS–024 7,750

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy