Skip to main content

MCS-024 Assignment Questions July 2012

Question 1: a) What is Object Oriented Paradigm? Explain advantages of
Object Oriented Programming. (5 Marks)
b) What is polymorphism? Explain the advantages of polymorphism
with an example. (5 Marks)
Question 2: a) What is platform independence? Explain why java is secure
and platform independent. (3 Marks)
b) Write a program in java to generate Fibonnaci Series. (3 Marks)
c) Explain the advantage of of Unicode. (2 Marks)
d) Explain the significance of PATH and CLASS PATH. (2 Marks)
Question 3: a) What is an exception? Create an exception subclass named
MyException to handle user generate exceptions in Java. (5 Marks)
b) What is abstract class? What are advantages of using
abstract class? Write a program in Java to explain abstract
class and multilevel inheritance. (5 Marks)
Question 4: Differentiate the following and support with example: (10 Marks)
Final and static member
Inheritance and Aggregation
Abstract class and Interface
String and String Buffer
Question 5: a) What are the classes in Java available for file handling?
Write a program in Java to append content at the end of an
already existing file. (5 Marks)  
b) Explain the difference between checked and unchecked
exceptions with example. (5 Marks)
Question 6: a) What is multithreading? Explain the two ways of creating
threads in Java programs. Also explain difference between
notify() and notify All( ) methods. (5 Marks)
b) What is need of Layout Manager? Explain different layouts
available in Java. (5 Marks)
Question 7: a) What is an Applet? Write an applet that prints "Lear Java it is
useful" at the current cursor position whenever the mouse left
button is clicked. (5 Marks)
b) Consider a class that stores a Bank account holder's name,
account number, ATM card number, account balance and
ATM PIN. Write a program to store the data onto a disk file,
except for the account balance and ATM PIN. Use serialization and transient variables. (5 Marks)
Question 8: a) Write a Java program to set up JDBC and execute the following
SQL statement on a database table employee-t with the fields
emp-id, emp name, emp-department, empbasic
"SELECT * FROM employee-t where emp-basic < 10000. (7 Marks)
b) What is Java Bean ? What are its advantages? (3 Marks)

Comments

Popular posts from this blog

IGNOU Syllabus for interview/test for admission to PhD programme in Computer Science

COMPUTER SCIENCE AND APPLICATION (Syllabus for interview/test for admission to PhD programme in Computer Science) Computer Architecture: representation of numbers; Octal, Hexadecimal, and Binary 2’s complement and 1’s complement arithmetic, Floating point representation. Combinational Circuit Design, Sequential Circuit Design, Hardware and Microprogrammed processor design, Instruction formats, Addressing modes, Memory types and organisation, interfacing peripheral devices, Interrupts. Data Structures & Algorithms: Arrays, stacks, queues, lists, linked, trees, graphs priority queues, heaps, Binary tree, AVL tree, B-tree and Hash tables. Graphs : connected graphs, regular and bipartite graphs, cycles and circuits. Tree and rooted tree. Spanning tree of a graph, Eccentricity of a vertex, radius and diameter of a graph. Hamiltonian, Eulerian graphs and Planar graphs. Sorting and Searching Algorithms, Binary Search, Analysis of Algorithms, Asymptotic notation...