OOP With Java COMPUTER SCIENCE 3RD SEMESTER MODEL QUESTION PAPER
OOP With Java COMPUTER SCIENCE 3RD SEMESTER MODEL QUESTION PAPER
Test/Date and Time |
Semester/year |
Course/Course Code |
Max Marks |
|||||
Ex: I test/6 th week of sem 10-11 AM |
IV SEM |
OOP With Java |
20 |
|||||
Year: 2015-16 |
Course code:15CS42T |
|||||||
Name of Course coordinator : Units:1,2 Co: 1,2 Note: Answer all questions |
||||||||
Questio n no |
Question |
CL |
C O |
PO |
||||
1 |
Define the following OOPS concepts a. Inheritance b. Polymorphism |
(5) |
U |
1 |
1,2 |
|||
2 |
Illustrate Java communication with a web page |
(5) |
A |
1 |
1,2 |
|||
3 |
Explain any five string buffer methods |
(5) |
U |
2 |
1,2 |
|||
4 |
Write a Java Programme to illustrate to illustrate vectors. |
(5) |
|
2 |
1,2 |
DIMENSION |
Unsatisfactory 1 |
Developing 2 |
Satisfactory 3 |
Good 4 |
Exemplary 5 |
Score |
Collection of data |
Does not collect any information relating to the topic |
Collects very limited information; some relate to the topic |
Collects some basic information; refer to the topic |
Collects relevant information; concerned to the topic |
Collects a great deal of information; all refer to the topic |
3 |
Fulfill team’s roles &
duties |
Does not
perform any duties assigned to the
team role |
Performs very little duties |
Performs nearly all duties |
Performs all duties |
Performs all duties of assigned team roles with presentation |
4 |
Shares work equally |
Always relies
on others to do the work |
Rarely does the assigned work; often needs reminding |
Usually does the assigned work; rarely needs reminding |
Does the assigned job without having to be reminded. |
Always does the assigned work without having to be reminded and on given time frame |
3 |
Listen to other Team mates |
Is always
talking; never allows anyone else to speak |
Usually does most of the talking; rarely allows others to speak |
Listens, but
sometimes talk too much |
Listens and contributes to the relevant topic |
Listens and contributes precisely to the relevant topic and
exhibit leadership qualities |
3 |
|
|
|
TOTAL |
13/4=3.25=4 |
CO |
Question |
CL |
Marks |
I |
Give the definition of object
oriented programming and how it is different from
procedure-oriented programming |
U |
05 |
Explain the organization of data and methods in an object oriented
programming. |
U |
||
List the unique advantages of an
object oriented programming |
U |
||
Give the definition of object
and classes. Explain representation of an object with an example. |
U |
||
Define the following (i) Data abstraction (ii) Data
encapsulation |
U |
||
Define the following OOPS
concepts b. Inheritance c.
Polymorphism |
U |
||
Distinguish between objects and
classes |
U |
||
Distinguish between Data
abstraction & Data encapsulation |
U |
||
Distinguish between Inheritance
&Polymorphism |
U |
||
Distinguish between Dynamic
binding & message passing. |
U |
||
Explain Dynamic binding &
message passing |
U |
||
List any five advantages of OOP |
A |
||
List any five areas of
application of OOPS technology |
A |
||
Java is platform independent
language. Justify |
U |
||
Discuss how Java is more secured
than other language |
U |
||
List any features of Java. |
A |
||
List any five major differences
between C and Java. |
U |
||
List any five major differences
between C++ and Java |
U |
||
Discuss the contributions of
Java to the world wide web. |
A |
||
Illustrate Java communication
with a web page |
A |
||
Explain the
process of building and running Java application programs |
A |
||
Explain Java run time
environment |
U |
||
Write a simple Java program and
explain |
A |
||
Write a simple Java program to
illustrate the use of mathematical functions |
A |
||
List the different sections of
Java program structure |
U |
||
I |
List the advantages of OOPS. |
U |
|
Discuss OOPs areas of
application. |
A |
||
Define the following. a. Data abstraction. b. Data encapsulation. c. Inheritance. |
R |
||
Define the following. |
R |
|
a. Polymorphism. b. Dynamic binding. c. Message Communication. |
|
10 |
List and explain Java features. |
A |
||
Discuss how Java differs from C
& C++. |
U |
||
Explain the contributions of
Java to the world wide web. With a figure illustrate how Java
communicates with a web page. |
U |
||
Write a Java program to
illustrate an application with two classes |
A |
||
Explain Java program structure
with a diagram |
U |
||
Explain the features of Java. |
A |
||
List and explain Java
statements. |
U |
||
Describe in detail the steps
involved in implementing a standalone program |
U |
||
Explain Java virtual machine. |
U |
||
Discuss command line arguments
in Java with an example program |
U |
||
With general syntax explain
formatted input-output statements. Give example for each. |
U |
||
II |
Define constructors. List its
special properties |
U |
05 |
Define object. Explain object
creation from a class |
U |
||
Define multilevel inheritance
with an example |
U |
||
Define hierarchical inheritance
with an example |
U |
||
Describe the syntax of single
inheritance in Java |
U |
||
Compare and contrast overloading
and overriding methods |
U |
||
Define subclass constructor and
the use of keyword super |
U |
||
Define final classes and
finalize methods |
U |
||
Define abstract methods and
classes |
U |
||
Write the visibility control of
Java classes. |
U |
||
Compare arrays and vectors |
U |
||
Explain any five string methods. |
U |
||
Explain any five string buffer
methods |
U |
||
Explain the use of wrapper class
in Java |
U |
||
Differentiate between interfaces
and classes |
U |
||
Explain class definition with
fields and methods declaration |
U |
10 |
|
Discuss object creation in Java. |
U |
||
With an example explain
accessing of class members |
A |
||
Write a program to illustrate
constructor |
A |
||
Discuss the process of method
overloading |
U |
||
Define static member. Write a
program to illustrate static members. |
A |
||
Write a program to illustrate
method overloading |
A |
||
Write a program to sort N
elements of an array. |
A |
||
Write a program to illustrate
vectors. |
A |
||
Write a program to illustrate
wrapper classes |
A |
||
III |
Differentiate between interfaces
and classes |
U |
05 |
Write the general syntax of
creating an interface and explain |
U |
||
Explain the various forms of
interface implementation |
U |
||
Explain how to access interface
variables with an example |
|
||
Write the similarities between
class and interfaces |
U |
|
Explain how to extend interfaces
with an example |
A |
10 |
With an example explain how to
support multiple inheritance |
A |
||
Write a program to implement
interfaces. |
A |
||
IV |
Define a package. List Java API packages |
U |
05 |
How to create and implement a
package |
U |
||
Explain the naming convention of
a package with an example |
U |
||
Explain how to access packages
with an example |
A |
||
Explain how to add a class to a
package with an example |
A |
||
Discuss the various levels of
access protection available for packages |
U |
||
Explain how to hide classes in a
package |
U |
||
Explain static import and how is
it useful |
U |
||
Explain Java API packages. |
U |
10 |
|
Write a program to add a class
to a package. |
A |
||
Write a Package program to
demonstrate basic arithmetic operators |
A |
||
Write a program to use inbuilt
packages to calculate square root of a number |
A |
||
V |
Define thread. |
R |
05 |
Differentiate between
multithreading and multitasking |
U |
||
Explain how to create thread by
extending Thread class with an example |
U |
||
Explain how to stop and block a
thread |
U |
||
Describe complete life cycle of
a thread |
U |
||
Explain yield(),sleep() and
stop() methods of a thread |
U |
||
Write a note on thread
exceptions |
U |
||
How do we set priorities for
threads? |
U |
||
How to create a runable thread? |
U |
||
Define synchronization? When do
we use it |
U |
||
Differentiate between suspending
and stopping a thread |
U |
||
Explain the different methods of
creating threads |
U |
10 |
|
Write a program to create a
threads using a thread class |
A |
||
Explain thread creation by
implementing runnable interface with an example |
A |
||
Write a note on inter- thread
communication |
U |
||
Write a program to create
threads by extending thread class |
A |
||
Write a program to create
threads by implementing runnable interface |
A |
||
Write a program to set
priorities for threads |
A |
||
Write a program to implement
yield(),sleep() and stop() methods of a thread |
A |
||
Explain the life cycle of
thread. |
U |
||
VI |
Define exception and explain its
purpose |
U |
05 |
Explain types of errors with
suitable examples |
U |
||
List the compile time errors |
U |
||
List the run time errors |
U |
||
Illustrate compile time errors
with an example |
A |
||
Illustrate run time errors with
an example |
A |
||
Explain the syntax of exception
handling |
U |
||
Write a program to illustrate
nested try statements |
A |
|
Explain nested try statements
with an example |
A |
|
Explain multiple catch blocks
with an example |
A |
||
How many catch blocks can be
used with one try block.,explain |
U |
||
Create a try
block that is likely to generate three types of exception and then
incorporate necessary catch block to catch and handle them appropriately |
A |
||
Explain the finally block. When
and how it is used with a suitable example |
U |
||
Explain how exception handling
mechanism can be used for debugging a program |
A |
||
Define an
exception called “No MatchException”that is thrown when a string is not equal
to “ Ïndia”.Write a program that uses this exception |
A |
||
Explain how to throw our own
exceptions |
U |
||
Write a program to implement “
Throwing our own exceptions” |
A |
||
Write a program to illustrate
multiple catch blocks |
A |
10 |
|
Write a program to use multiple
catch block statement. |
A |
||
Write a program to illustrate
nested try statement. |
A |
||
Write a program for throwing
your own exception |
A |
Comments