Pratical Slips-IV Sem

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 20

1 University of Pune M.C.A.

(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Write a Java program to implement following options on LinkedList using Collections 1) Intersection 2) Concatenation 3) Display [10 marks] 2) Write a Java program to read, update &delete records from Student(studno,name, phone) Database using commandline arguments [R-Read, U-Update, D-Delete] Eg:- java programname U This will update & show the contents of the student tables. [15 marks]

3) Write a C program to implement the following unix/linux command ls l > output.txt . [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1)Write a servlet that will count the number of times a client has accessed the web page. [10 marks] 2) Write a Menu-driven program which will perform the following options on Employee (eno, name, salary) database. 1) Insert 2) Update 3) Delete 4) Search 5) Raise exception if negative data is entered for eno and salary. [15 marks] 3) Write a C program to implement the following unix/linux command (use fork, pipe and exec system call). Your program should block the signal Ctrl-C and Ctrl-\ signal during the execution. ls l | wc l [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Write a Java program to implement following options on HashTable using Collections 1) Accept n records of Item (itemno, name, price) 2) Display details of all items. 3) Find the details of item having maximum price. [10 marks] 2) Create a Home page for Cyber BookStore that will display the various books available, the authors and the price of the books. Include a listbox that contains various Subjects and a Submit button that will invoke a Servlet which contains information about books on the Subject Selected by the user. [15 marks] 3) Write a C program which display the information of a given file similar to given by the unix / linux command ls l <file name> [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Write a Java program to implement following options on LinkedList using Collections 1) Union 2) Concatenation 3) Display [10 marks] 2) Write a Java Socket program that runs on a server & echos back all the strings sent by a client. If the client sends a string Exit the server program should terminate. [15 marks] 3) Write a C program which accept one argument as a Directory name and prints all the filename along with its inode number and total count of file in the directory. [15 marks] 4) Journal +Viva 5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks] [10 marks]

5 University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Write a JSP program that accepts the registration details from user and display the details on the next page. [10 marks] 2) Create an Html page that contains 4 option buttons Java, Unix, DDBMS, OOSE and 2 buttons Submit and Reset. When the user clicks on Submit button the server responds by adding cookie containing the selected Subject and sends the html page to the client. Program should not allow duplicate cookie to be written. [15 marks] 3) Write a program that catches the ctrl-c (SIGINT) signal for the first time and prints A output rather and exits on pressing ctrl-c again. [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Write a JSP program to design a Login Screen which checks the username and password. If valid then the user is allowed to login otherwise it should display some message. [10 marks] 2) Write a program to create a Shopping mall.User must be allowed to do purchase from 2 pages. Each page should have a page total. The third page should display a bill which consist of a page total of whatever the purchase has been done & print the total.(Use HttpSession tracking) [15 marks] 3) Write a shell script for the following task. The word unix is present in only some files supplied as arguments to the shell script. Your script should searched each of these files in turn and stop at the first file that contain the word unix. This filename should be displayed on the screen.. [15 marks] 4) Journal +Viva [10 marks] 5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Create a servlet that will return an Html page to the client containing Course details such as Course and Course Fee in tabular format using servlet. [10 marks] 2) Develop application for Online Gas booking using Servlet-Jdbc. [15 marks]

3) Write a shell script to check whether all the directories in the path exist has read and write permission. [15 marks] 4) Journal +Viva [10 marks] 5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Write a Java program to perform following options on Book (bno,bname,price) Database using Servlet-Jdbc 1) Create 2) Insert 3) Select [10 marks] 2) Write a Menu-driven program which will perform the following options on Customer (custno, custname, address) database. 1) Insert 2) Update 3) Delete 4) Search Raise exception if negative data is entered for custno. [15 marks] 3) Write a C program that behaves like a shell (command interpreter). It has its own prompt say NewShell$. Any normal shell command is executed from your shell by starting a child process to execute the system program corresponding to the command. [15 marks] 4) Journal +Viva [10 marks] 5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Write a Java program to perform following options on Doctor(docno,docname, price) database using Servlet-Jdbc 1) Create 2) Insert 3) Update

[10 marks]

2) Write a Java Socket program that runs on a server which accepts a message from client & sends the same message to the server by changing the case. [15 marks] 3) Write a C program which create a child process which catch a signal sighup, sigint and sigquit. The Parent process send a sighup or sigint signal after every 3 seconds, at the end of 30 second parent send sigquit signal to child and child terminates my displaying message "My DADDY has Killed me!!!. [15 marks] 4) Journal +Viva [10 marks] 5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK ) Duration : 3 Hours Maximum marks : 100

10 1) Write a Java program to display Movie(moviename,actorname,release-year) details specified by the user using jsp. [10 marks] 2) Create a URLConnection using the OpenConnection() method of the URL object and then use it to examine the documents properties & content. [15 marks] 3) Write a C program which create a child process which catch a signal sighup, sigint and sigquit. The Parent process send a sighup or sigint signal after every 3 seconds, at the end of 30 second parent send sigquit signal to child and child terminates my displaying message "My DADDY has Killed me!!!. [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

10

11 1) Write a java program to implement following options on Vectors 1) Add elements 2) Delete elements 3) Display [10 marks] 2) Write a Java Socket program that runs on a server which accepts a filename from client & checks if file exists or not & return proper message to client. [15 marks] 3) Write a C program which accept one argument as a Directory name and prints all the filename along with its inode number and total count of file in the directory. [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

11

12

1) Write a java JDBC program to create a PurchaseOrder(POno,PO_date, item_cnt,amt)table & count the Purchase order's for the given date. [10 marks] 2) Write a EchoServer & EchoClient java program that display a message that is typed on a server & the same message should be displayed on the client side. [15 marks] 3) Write a C program to implement the following unix/linux command (use fork, pipe and exec system call) ls l | wc l [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

12

13 1) Write a Java program to display Actor(actorname,moviename) details specified by the user using jsp. [10 marks] 2) Design a servlet that provides information about HTTP request from a client such as IP address and browser type.The servlet also provides information about the server on which type servlet is running such as the Operating system type and the names of currently loaded servlet. [15 marks] 3) Write a program that catches the ctrl-c (SIGINT) signal for the first time and prints a output rather and exits on pressing ctrl-c again. [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

13

14

1) Write a java JDBC program to create a Hospital(Hospno,Hospname,addr) table & insert the records in it using servlets. [10 marks] 2) Any string entered as input in the window running the server program is displayed in the clients window. The user has to enter end to exit the server program & press Ctrl+C to exit the client program. [15 marks] 3) Write a C program to display all the files from current directory which are created in particular month [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

14

15

1) Create an Html page that takes Itemname & qty as input from user and display it on the next page using session. [10 marks] 2) Any string entered as input in the window running the server program is displayed in the clients window. The user has to enter end to exit the server program & press Ctrl+C to exit the client program. [15 marks] 3) Write a shell script that accepts name from user and creates a directory by the path name, then creates a text file in that directory and stores in it,the data accepted from user till STOP,displays the number of characters stored in the file.Program stops if directory name is null. [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Write a JSP program that accepts the Patient details from user and display

15

16 the details on the next page. [10 marks]

2) Write a client & server implementation for the FindGreater application that implements the getResult method. It should accept the two integers as input parameters and return a String representing the greater number or the string "Equal" if both the numbers are equal using RMI. [15 marks] 3) Write a shell script to print the information of all files in current directory in the following format Name of the file Directory yes or no Date of last modification Size [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

1) Create a Html page which contains a list of colors & it should display

16

17 the selected color on the next page using servlets. [10 marks]

2) Create a bean called Color that can be either rectangle or ellipse that is filled with a color. A color is chosen at random when the Bean begins execution. A public method can be invoked to change it. Each time the mouse is clicked on the Bean, another random color is chosen. There is one boolean read/write property that determines the shape. [15 marks] 3) Write a shell script to print the information as how many files and how many directories are present in current directory.

[15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

17

18

1) Write a program to take the range from user & print Fibonacci series & display the series in fibo.jsp program using include directives. [10 marks] 2) Create a bean called Color that can be either rectangle or ellipse that is filled with a color. A color is chosen at random when the Bean begins execution. A public method can be invoked to change it. Each time the mouse is clicked on the Bean, another random color is chosen. There is one boolean read/write property that determines the shape. [15 marks] 3) Write a shell script to accept an extension name such as txt and display the contents of all files with this extension or give appropriate message. [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

18

19

1) Create a servlet that will count the number of times a client has accessed the web page(use session tracking) [10 marks] 2) Write a JDBC program to insert record into Customer(custno,name,city) table.The program should display a message if customer name is already present. Do validation for the name field. [15 marks] 3) Write a C program which receives file names as command line arguments and display those filenames in ascending order according to their sizes. (e.g $ a.out a.txt b.txt c.txt, ) [15 marks] 4) Journal +Viva [10 marks]

5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

University of Pune M.C.A.(Science) Sem-IV Practical Examination April/Oct CS-407 General Laboratory-II (Advanced Java,Unix,SDK) Duration : 3 Hours Maximum marks : 100

19

20

1) Write a Java program to perform following options on Supplier(supno,sname, qty) database using Servlet-Jdbc 1) Create 2) Insert 3) Update [10 marks] 2) Write a Java Socket program that runs on a server & echos back all the strings sent by a client. If the client sends a string Exit the server program should terminate. [15 marks] 3) Write a C program that behaves like a shell (command interpreter). It has its own prompt say NewShell$. Any normal shell command is executed from your shell by starting a child process to execute the system program corresponding to the command. [15 marks] 4) Journal +Viva [10 marks] 5) Project Project Document Project Assessment/Demo Project Viva [10 marks] [30 marks] [10 marks]

20

You might also like