Course Code : MCS-024
Course Titlle : Object Oriented Technologies and Java Programming
Assignment Number : MCA (1)/024/Assign/2010
Assignment Marks : 100
Maximum Marks : 25%
Last Date of Submission : 15th October, 2010 (for July, 2010 session)
15th April, 2011 (for January, 2011 session)
BCA MCA Bsc B tech CS information technology
final year project
There are eight questions in this assignment which carries 80 marks. Rest of 20 marks are for viva-voce. Answer all the questions. Also in your programs give appropriate comments to increase understandability. Please go through the guidelines regarding assignments given in the Program Guide for the format of presentation.
Question 1 : a) What is Object Oriented Paradigm? Why Object Oriented
Programming is preferred over structured programming. (5 Marks)
b) What is platform independence? Explain advantages of
a programming language which is platform independent. (3 Marks)
c) Explain why Java is platform independent. (2 Marks)
Question 2 : a) List different data types available in java. (2 Marks) b) What are different bitwise operators available in Java?
Write a Java program to explain the use of bitwise operators. (6 Marks)
c) Explain the need of Unicode. (2 Marks)
Question 3 : a) What is an array? Explain how an array of variable size is
defined in Java. (3 Marks)
b) Explain why main method in Java is always static. (2 Marks)
c) What is a constructor? Explain the advantage of constructors
overloading with an example of a Java program. (5 Marks)
Question 4 : a) What is polymorphism? Is Interfaces in Java, a kind of
polymorphism? Justify your answer. (4 Marks)
b) Explain the need of package in Java. (3 Marks)
c) What is rule of accessibility? Explain different level of
accessibility in Java. (3 Marks)
Question 5: a) What is an exception? Explain haw an exception is
handled in Java. Also explain hierarchy of different exception
classes in Java. (5 Marks)
b) Write a java program to find whether a given string is a palindrome or not. (5 Marks)
Question 6 : a) What is multithreading ?Explain advantages of multithreaded
programming with the help of a Java program. (5 Marks)
b) What is I/O stream in Java? Write a program in Java to
create a file and copy the content of an already existing file into it. (5 Marks)
Question 7 : a) How a Java Applet is different from Java Application program? Create an Applet program to display your Bio-Data. Make necessary assumptions and use appropriate layout in your program. (6Marks)
b) What is need of Layout Manager? Explain different
layouts available in Java. (4 Marks)
Question 8 : a) What is a socket ? Explain how a network socket is
created using Java. (5 Marks)
b) Explain the need of JDBC? Explain steps involved in
connecting a databases using JDBC. (5 Marks)
Course Code : MCSL-025
Course Title : Lab Course
Assignment Number : MCA(2)/025/Assign/2010
Maximum Marks : 100
Weightage : 25%
Last Date of Submission : 31st October, 2010 (for July, 2010 session)
30th April, 2011 (for January, 2011 session)
This assignment has four parts. Answer all questions of each part. Each part is of 10 marks. Lab Records of each part will carry 10 Marks. Rest 20 marks are for viva voce. You may use illustrations and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation.
PART-I: MCS-021
Question 1: Sort the following data using heap sort and show all the intermediate steps.
78, 17, 34, 93, 11, 26, 55, 45, 35, 19, 88
Write an algorithm in C to implement this and find its time complexity. (5 Marks)
Question 2: Write a program in ‘C’ language for the creation of a Binary tree. After creation is complete, it should print the preorder, postorder and inorder traversal outputs of the binary tree.
(5 Marks)
Note: You must execute the program and submit the program logic, sample inputs and outputs along with the necessary documentation for this question. Assumptions can be made wherever necessary.
PART-II: MCS-022
Question 1: Write a shell script in Unix/Linux to find the lines numbers of a text file are having
words which are 5 to 10 characters long and having first letter as a capital letter.
(3 Marks)
Question 2: Use Windows 2000 command and communicate with your friend sitting on a
different machine but in a same domain group.
(2 Marks)
Question 3: Use Telnet to get connected with other remote machine. Write the problems you
encounter during connection with remote machine.
(2 Marks)
Question 4: How can you change the time of execution of the job, Explain? Set the execution time of two jobs so that it can run automatically tomorrow one at 11:00 a.m. and stop at 12.00 Noon and for another Job starts at 1:00 p.m and stop after its completion.
(3 Marks)
PART-III: MCS-023
Question 1:
A film production company named “Apex Entertainment”, which produces motion pictures like Films, TV serials and Documentaries. It maintains information about different team member’s like actors, directors, assistants, co-producers, and other team members and their salary/contract amount. Each motion picture has a title, year of production, certification details, length and the type. Each team member has a name, job title, contact details and address. These Films, TV serials and Documentaries can be shot in studios. Each Studio has an owner, address, contact details and a banner. This production company sales its products to various distribution company through bidding and contract. Team members are connected to one or more type of motion pictures. Create a database in MS-Access, which must provide the following functionalities:
• Query support
• Report generation
• Easy input facility for new data
• Keep details about Expenditure, Performances, Distribution, and Sales of each motion picture.
• Maintain necessary details about Distributors, Team members, Studios etc.
After creating the database you must perform the following tasks:
(i) Design a report to display the daily, monthly and annual income of each Motion Picture. Also, show the profit /loss statistics.
(ii) Find out how many Distributors placed the orders last year but did not made full payment till now.
(iii) Design a report to display performance of the Directors and Actors, Motion Picture wise in term of sales.
(iv) Design a suitable form for storing basic information about motion pictures to evaluate the performance and appreciation by general public. Design and implement the necessary tables.
(10 Marks)
PART-IV: MCS-024
Question 1: Create a Java class (i.e. do not use any library class) to represent linked lists of integers. Provide it with methods that can be used to reverse a list and to append two lists. Comment on whether your design has led you to make the methods for append and reverse static.
(5 Marks)
Question 2: To make a fraction to a representation base 16 (i.e. hexadecimal) we can multiply it by 16, and the resultant integer part is the first digit of the base-16 representation. Multiplying the fraction left over by 16 gets the second digit and so on. Write a method that accepts an array of digits (base 10) and creates and returns a new array representing the same fraction but now base 16. Your code should work for any length input array, not just one of length 1000, and you may make the output array have the same length as your input array.
(5 Marks)
Note: You must execute the program and submit the program logic, sample inputs and outputs along with the necessary documentation for this question. Assumptions can be made wherever necessary.
Course Titlle : Object Oriented Technologies and Java Programming
Assignment Number : MCA (1)/024/Assign/2010
Assignment Marks : 100
Maximum Marks : 25%
Last Date of Submission : 15th October, 2010 (for July, 2010 session)
15th April, 2011 (for January, 2011 session)
BCA MCA Bsc B tech CS information technology
final year project
There are eight questions in this assignment which carries 80 marks. Rest of 20 marks are for viva-voce. Answer all the questions. Also in your programs give appropriate comments to increase understandability. Please go through the guidelines regarding assignments given in the Program Guide for the format of presentation.
Question 1 : a) What is Object Oriented Paradigm? Why Object Oriented
Programming is preferred over structured programming. (5 Marks)
b) What is platform independence? Explain advantages of
a programming language which is platform independent. (3 Marks)
c) Explain why Java is platform independent. (2 Marks)
Question 2 : a) List different data types available in java. (2 Marks) b) What are different bitwise operators available in Java?
Write a Java program to explain the use of bitwise operators. (6 Marks)
c) Explain the need of Unicode. (2 Marks)
Question 3 : a) What is an array? Explain how an array of variable size is
defined in Java. (3 Marks)
b) Explain why main method in Java is always static. (2 Marks)
c) What is a constructor? Explain the advantage of constructors
overloading with an example of a Java program. (5 Marks)
Question 4 : a) What is polymorphism? Is Interfaces in Java, a kind of
polymorphism? Justify your answer. (4 Marks)
b) Explain the need of package in Java. (3 Marks)
c) What is rule of accessibility? Explain different level of
accessibility in Java. (3 Marks)
Question 5: a) What is an exception? Explain haw an exception is
handled in Java. Also explain hierarchy of different exception
classes in Java. (5 Marks)
b) Write a java program to find whether a given string is a palindrome or not. (5 Marks)
Question 6 : a) What is multithreading ?Explain advantages of multithreaded
programming with the help of a Java program. (5 Marks)
b) What is I/O stream in Java? Write a program in Java to
create a file and copy the content of an already existing file into it. (5 Marks)
Question 7 : a) How a Java Applet is different from Java Application program? Create an Applet program to display your Bio-Data. Make necessary assumptions and use appropriate layout in your program. (6Marks)
b) What is need of Layout Manager? Explain different
layouts available in Java. (4 Marks)
Question 8 : a) What is a socket ? Explain how a network socket is
created using Java. (5 Marks)
b) Explain the need of JDBC? Explain steps involved in
connecting a databases using JDBC. (5 Marks)
Course Code : MCSL-025
Course Title : Lab Course
Assignment Number : MCA(2)/025/Assign/2010
Maximum Marks : 100
Weightage : 25%
Last Date of Submission : 31st October, 2010 (for July, 2010 session)
30th April, 2011 (for January, 2011 session)
This assignment has four parts. Answer all questions of each part. Each part is of 10 marks. Lab Records of each part will carry 10 Marks. Rest 20 marks are for viva voce. You may use illustrations and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation.
PART-I: MCS-021
Question 1: Sort the following data using heap sort and show all the intermediate steps.
78, 17, 34, 93, 11, 26, 55, 45, 35, 19, 88
Write an algorithm in C to implement this and find its time complexity. (5 Marks)
Question 2: Write a program in ‘C’ language for the creation of a Binary tree. After creation is complete, it should print the preorder, postorder and inorder traversal outputs of the binary tree.
(5 Marks)
Note: You must execute the program and submit the program logic, sample inputs and outputs along with the necessary documentation for this question. Assumptions can be made wherever necessary.
PART-II: MCS-022
Question 1: Write a shell script in Unix/Linux to find the lines numbers of a text file are having
words which are 5 to 10 characters long and having first letter as a capital letter.
(3 Marks)
Question 2: Use Windows 2000 command and communicate with your friend sitting on a
different machine but in a same domain group.
(2 Marks)
Question 3: Use Telnet to get connected with other remote machine. Write the problems you
encounter during connection with remote machine.
(2 Marks)
Question 4: How can you change the time of execution of the job, Explain? Set the execution time of two jobs so that it can run automatically tomorrow one at 11:00 a.m. and stop at 12.00 Noon and for another Job starts at 1:00 p.m and stop after its completion.
(3 Marks)
PART-III: MCS-023
Question 1:
A film production company named “Apex Entertainment”, which produces motion pictures like Films, TV serials and Documentaries. It maintains information about different team member’s like actors, directors, assistants, co-producers, and other team members and their salary/contract amount. Each motion picture has a title, year of production, certification details, length and the type. Each team member has a name, job title, contact details and address. These Films, TV serials and Documentaries can be shot in studios. Each Studio has an owner, address, contact details and a banner. This production company sales its products to various distribution company through bidding and contract. Team members are connected to one or more type of motion pictures. Create a database in MS-Access, which must provide the following functionalities:
• Query support
• Report generation
• Easy input facility for new data
• Keep details about Expenditure, Performances, Distribution, and Sales of each motion picture.
• Maintain necessary details about Distributors, Team members, Studios etc.
After creating the database you must perform the following tasks:
(i) Design a report to display the daily, monthly and annual income of each Motion Picture. Also, show the profit /loss statistics.
(ii) Find out how many Distributors placed the orders last year but did not made full payment till now.
(iii) Design a report to display performance of the Directors and Actors, Motion Picture wise in term of sales.
(iv) Design a suitable form for storing basic information about motion pictures to evaluate the performance and appreciation by general public. Design and implement the necessary tables.
(10 Marks)
PART-IV: MCS-024
Question 1: Create a Java class (i.e. do not use any library class) to represent linked lists of integers. Provide it with methods that can be used to reverse a list and to append two lists. Comment on whether your design has led you to make the methods for append and reverse static.
(5 Marks)
Question 2: To make a fraction to a representation base 16 (i.e. hexadecimal) we can multiply it by 16, and the resultant integer part is the first digit of the base-16 representation. Multiplying the fraction left over by 16 gets the second digit and so on. Write a method that accepts an array of digits (base 10) and creates and returns a new array representing the same fraction but now base 16. Your code should work for any length input array, not just one of length 1000, and you may make the output array have the same length as your input array.
(5 Marks)
Note: You must execute the program and submit the program logic, sample inputs and outputs along with the necessary documentation for this question. Assumptions can be made wherever necessary.