Sie sind auf Seite 1von 31

UNIVERSITY OF PUNE

BCA (Sem-V) Practical Examination Oct-2008


Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

1) Write a java program for a cricket player The program should accept the details from
user (max 10): Player code, name, runs, innings- played and number of times not out. The
program should contain following menu:
-Enter details of players.
-Display average runs of a single player.
-Display average runs of all players. (Use array of objects & function overloading)
[Marks 30]

2) Write VB.Net Program to Design following form and Display appropriate result in
message box after clicking command button .

[Marks 30]
3) Write HTML code to design a web page displaying list of hyperlinks. Divide the browser
screen into two frames. The frame on the left will be an image. The frame on the right will
be a menu consisting of hyperlinks. Clicking on any one of these hyperlinks will display
related information as a new page which must be open in frame on the right hand side.
Welcome to Wipro Company

a. About Us
Image b. Employees
c. Careers

[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Create a class telephone containing name, telephone number & city and write necessary
member functions for the following:
- Search the telephone number with given name.
1
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

- Search the name with given telephone number.


- Search all customers in a given city. (Use function overloading)
[Marks 30]
2) Write VB .Net program to take three text boxes and two buttons on the form. Enter
different strings in first and second textbox. On clicking the First command button,
concatenation of two strings should be displayed in third text box and on clicking second
command button , reverse of string should display in third text box. [Marks 30]

3) Write HTML code to display calendar of the current month.


[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a java program which creates class Student (Rollno, Name,- Number of subjects,
Marks of each subject)(Number of subjects varies for each student)

2
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

Write a parameterized constructor which initializes roll no, name & Number of subjects
and create the array of marks dynamically. Display the details of all students with
percentage and class obtained. [Marks 30]

2) Write VB.Net Program to Design following form to store numbers in single dimensional
array and to find Maximum no & sum of all numbers in array.

[Marks 30]
3) Write HTML code to display following train details using table.
Train name Starting Destination place Time Fare
Arrival Departure
place

(Insert at least 5 records)


[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) In a bank, different customers having saving account. Some customers may have taken a
loan from the bank. So bank always maintains information about bank depositors and
borrowers. Design a Base class Customer (name, phone-number).Derive a class Depositor
(accno , balance) from Customer. Again derive a class Borrower (loan-no, loan-amt) from
3
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

Depositor. Write necessary member functions to read and display the details of ‘n’
customers. [Marks 30]

2) Write VB.Net program to add three text boxes at runtime. Allow user to enter values and
then display Maximum and Minimum value using message box after click on command
button. [Marks 30]

3) Write HTML code to link external documents. After Clicking on each hyperlink related
information should be displayed in the new web page. Use appropriate HTML tags or
HTML elements to display the information.
Information of Computer Course
 B. Sc. Computer Science
 BCA
 M. Sc. Computer Science
 MCA

[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a program in java to check whether the entered character is alphabet, digit or space
character. If it is alphabet then print whether it is capital or small alphabet. Also change the
alphabet into the reverse case. [Marks 30]

2) Write VB.Net Program to Design following form to display Selected Stream &
Computer Knowledge(Use panel) and Display following Message box. When clicked on
New button form should be reset.
4
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

[Marks 30]
3) Write a menu driven program to perform the following options using JavaScript:
1. To find Armstrong numbers between 1 to 1000.
2. To print sum of the digit of a number.

[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Using Class implement Hash table to


1) Accept ‘n’ records of students (Name, Percentage)
2) Display details of all students
Find out highest marks [Marks 30]

5
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

2) Write VB.Net program to design following form and Display binary , hexadecimal, and
octal number in particular text box after clicking ok Command button.

[Marks 30]

3) Write HTML code to design a website for College profile. Write code for 4 separate
pages having different filenames. Each page must contain a hyperlink to other three pages.
All pages must have different backgrounds (color or image) and different titles.
The first page must contain information about the college and also display at least one
image, which must have alternate text (e.g. address of college). This page must provide
three hyperlinks - About Us, Departments, Laboratory.
The second page display information about the college using all physical styles. Also make
use of marquee that scrolls from right to left.
The third page display different department names of college using ordered list.
The last page display information of computer laboratory. This page must include at least
three paragraphs of text each having different alignment and each paragraph should use
different font. [Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a Java Program to accept the details of Employee from the user and display it on
the next Frame. (Use AWT)
[Marks 30]
2) Create the following application in VB.NET. The form should contain the following
menu

6
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

Area Exit
Circle
Rectangle
Square

On selection of the menu option ‘Circle’, one form should be open in that form user enters
radius into textbox and display area of circle in message box. On selection of the menu
option ‘Rectangle’, one form should be open in that form user enters length and breadth
into textboxes and display area of rectangle in message box. On selection of the menu
option ‘Square’, one form should be open in that form user enters side into textbox and
display area of square in message box. [Marks 30]

3) Write HTML code to divide the web page into different frames and each frame will
display the text as shown below.
One Two
Three
Four Five Six
Seven
Eight Nine
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a JAVA program to design a screen using Awt :

String Operations :

Enter String: TyBSc

LOWER tybsc
7
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

UPPER TYBSC

Italic TYBSC

Bold TYBSC

[Marks 30]

2) Write VB.Net program to search customer record using customer name or customer
Id .Display customer record in Data Grid. [Marks 30]

3) Write HTML code to link internal documents. After clicking on each hyperlink cursor
should move to the related information on the same page. Use appropriate HTML tags or
HTML elements to display the information.
Welcome to D. Y. Patil College
 Electronics Department
 Mathematics Department
 Microbiology Department
 Computer Science Department
 Biotechnology Department
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]
1) Define an Employee class with suitable attributes having getSalary() method, which
returns salary withdrawn by a particular employee. Write a class Manager which extends a
class Employee, override the getSalary() method, which will return salary of manager by
adding traveling allowance, house rent allowance etc. [Marks 30]

2) Design VB .Net form to display the employee details in grid view as well as in
Textboxes after clicking next and previous command buttons.(Use Database)

8
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

[Marks 30]

3) Write an ASP code to accept doc_no, doc_name, city, hosp_name from user, stores in
database and then display all doctor details on the screen.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1)Write a Java program to create 2 files F1 and F2.Copy the contents of file F1 by changing
the case into file F2.
F2 = F1
Also copy the contents of F1 and F2 in F3.
F3 = F1+F2
Display the contents of F3.
Use Command Line Arguments.
[Marks 30]
9
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

2) Write VB.Net Program to accept the details of Students from user with proper
validations & store those details into the database and display details in Grid View.(use
Database without wizard.) Students having field roll_number, name, dob and class.
[Marks 30]

3) Write HTML and CSS code to design a web page. Divide the browser screen into two
frames. The first frame will display the heading. Divide the second frame into three
columns that will display the information as shown below.
Use External style sheet with appropriate attributes to display information of each frame.

Subjects for different Semester of B.C.A. course


F.Y.B.C.A. S.Y.B.C.A. T.Y.B.C.A
 Sem I  Sem I  Sem I
o CF o DS o JAVA
o PPA o RDBMS o DOT NET
o BOS o HRM o Internet
 Sem II  Sem II  Sem II
o PPA o CPP o Adv. Java
o DBMS o VB o Multimedia
o Elect. o Networking o Syspro

[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Create an abstract class Person. Derive two classes Employee and Worker from it. Use
proper method to accept and display the details for the same.
The fields of Employee are Emp_no,Emp_name and address. Similar fields for worker are
name and working hours. [Marks 30]

2) Write VB.Net Program to accept the details of Employee from user & store those details
into the database with proper validation and display details in Grid View.(use Database
without wizard) Employee having fields enum, empname, dob and salary.
10
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

[Marks 30]

3) Write HTML and CSS code to design a web page. Divide the browser screen into two
frames. The first frame will display the heading. Divide the second frame into two columns
The first column will display hyperlinks. After clicking on each hyperlink related
information should be displayed in the second column in table format.
Use style sheet with appropriate attributes to display information of each frame.
Player Details

One Day Cricket Match Score Board:-


Country
Player_Name No.of No.of Score Average
1. India Matches innings
2. England played played
3. SriLanka Sahin Tendulkar 325 320 14545 45.43
Rahul Dravid 310 280 10450 38.12
Anil Kumble 312 160 400 10
Dhoni 250 200 4000 30

[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a java program to accept the details of employee from the user and display
Payment slip on the next Frame.
[Marks 30]
11
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

2) Write VB.Net program to take one list box which contains the name of picture file. If
you click on particular picture then that should display on picture box which is already
store in database. [Marks 30]

3) Write HTML code to design a web page displaying list of hyperlinks. Divide the browser
screen into two frames. The frame on the left will be a menu consisting of hyperlinks.
Clicking on any one of these hyperlinks will display related information as a new page
which must be open in frame on the right hand side.
Input Devices
Output Devices
Storage Devices
e.g.-After clicking on input devices hyperlink related information in the right frame.
Input Devices The list of Input Devices
Output Devices i. Keyboard.
Storage Devices ii. Mouse.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a java Program to accept ‘n’ no’s through the command line and store all the prime
no’s and perfect no’s into the different arrays and display both the arrays.
[Marks 30]

12
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

2) Write VB.Net program to search employee record using employee_Id or employee_


name into database .Display employee record in Data Grid.
[Marks 30]

3) Write HTML and CSS code to design a web page displaying list of hyperlinks. Divide
the browser screen into two frames. The first frame will display the heading. Divide the
second frame into two columns. The frame on the left will be a menu consisting of
hyperlinks. Clicking on any one of these hyperlinks will display related information as a
new page which must be open in frame on the right hand side.
Use Internal style sheet with appropriate attributes to display information of each frame.

Players List
Country India
1. India  Cricket
2. Australia 1. Sachin Tendulkar
3. Africa 2. Dhoni
3. Rahul Dravid
 Tennis
1. Saniya Mirza
2. Nehaval
3. Mahesh Bhupati

[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a program in Java to accept name of cities from the user and sort them in
ascending order (Use Command Line Arguments) [Marks 30]

2) Write VB .Net program to create Patient table having fields pno, pname, address, phone
number. Display Appropriate message in message box .
13
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

[Marks 30]

3) Write HTML code to design the following form.

Personal Information
First Name :

Last Name :

Address :
Mobile Number :
Gender Male Female
Your Interests Computer Sports Music
Submit Reset

[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a Java program to simulate the arithmetic calculator (+ ,- ,* , /).Also add 2 buttons
namely ‘on’ to start the calculator and ‘clear’ to clear the text box.
Display appropriate error message in the text box.

Arithmetic Calculator

14

+ - * /
N N
u On uClear
m m
r r

UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

[Marks 30]

2) Write VB .Net program to design following form. The << , < , > .>> button are used to
view first , previous , next , and last record respectively. The add button add new record ,
save button save record in database. The cancel button cancel current operation and exit
button exit the application.

[Marks 30]

3) Write a JavaScript code for counting odd, even, prime numbers from 1 to100.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]
1) Write a Java program which will create a frame if we try to close it, it should it’s color
and it remains visible on the screen(Use swing).
[Marks 30]

2) Write VB.Net program to design following form to accept date from user using calendar
control and on clicking command button display result in appropriate textbox in first
textbox display date increment by 1 day and in second textbox display date decrement by 2
day by using function overloading.
15
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

[Marks 30]

3) Write a JavaScript code which will greet according to the current timing.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Create a class Shape which consists one final method area () and volume ().Create three
subclasses Rect, Circle and Triangle and calculate area and volume of it. [Marks 30]

2) Write a program in VB.net to display the status of mouse using label controls program
should display current x,y positions of mouse . When user clicks left or right
buttons label should indicate which button is pressed. Program should also indicates double
click .When user clicks on close , show summery report as given below

16
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

[Marks 30]

2) Write a JavaScript code for accepting name and mobile number from user. (use
validations).
Required Validations are : Name text field should not accept numbers, special
characters, alphanumeric characters, length should be 20 characters.
Mobile number text field should not accept characters, special characters, alphanumeric
characters, length should be 10 digits.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Create an application in Java using Awt to display 4 X 4 squares on the screen. One of
the block will be active with black color. All other blocks should be filled with blue color.
Provide command buttons as follows to move the active cell. The active cell should be
changed only if it is within the boundary of the squares otherwise give the beep.

   
[Marks 30]
17
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

2) Write VB .Net program to design following form . Accept Number from user with
proper validations Select radio button ,after clicking command button display result in
textbox . If number2 is entered as zero and operator is division then display error
message’ Divide by Zero’ in result textbox .(use exception handling)

[Marks 30]

3) Write a JavaScript code for accepting user name and password (use validations).
Required Validations are : User name text field should not accept numbers, special
characters, alphanumeric characters, length should be 20 characters.
Password text field length should not be less than 3 characters.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Create an abstract class Shape. Derive three classes sphere, cone and cylinder from it.
Calculate area and volume of all. (Use Method overriding)
[Marks 30]

2) Write VB.net program to design a calculator with proper validation.


[Marks 30]

18
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

3) Write a JavaScript code for calculating bills. If quantity is less than 5 then there is any
discount, If quantity is greater than 5 and less than 25 then discount is 5%, If quantity is
greater than 25 and less than 50 then discount is 15%, If quantity is greater than 50
discount is 20%. [Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a Java program to design a screen using Awt that will take a user name and
password. If the user name and password are not same, raise an exception with appropriate
message. User can have 3 login chances only. Use clear button to clear the text boxes.

Login Check

Name
19
Password

Login Clear
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

[Marks 30]

2) Write a program in VB.Net to compute the total number of students who have passed in
the FIRST, SECOND and THIRD class. The condition is

Total Marks >60-First Class


Total Marks >50 –Second class
Total Marks >40-Third class
Total Marks<40-Fail
Use appropriate Database .Show the total number of student class wise.
Add the following to your form

i) Four Label controls


ii) Four Text Box Controls
iii) One Command Button (For Show)
[Marks 30]

3) Write a JavaScript code to accept number from user. Make all validation and print that
number in reverse order.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Design a screen in Java to handle the mouse events and display the positions of the
mouse click in a text box. [Marks 30]
2) Write a program in VB.Net to display following form:

20
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

Form1
Enter Text
Add
List1 List2

>

>
>
<

Clear
Clear < Exit
<

Add button will add the text from textbox to List1. Button ‘>’ will move selected items
from List1 to List2, ‘>>’ will move all items from List1 to List2. Button ’<’ will move
selected item from List2 to List1, ‘<<’ will move all items from List2 to List1. Clear button
will clear both the List. While moving items from List1 to List2 duplicates items are not
allowed. [Marks 30]
3) Write HTML and JavaScript code to accept information.

User Information

Name :
Gender : Male Female
Age : 0-10
Hobbies :
Watching TV
Cricket
Reading
Travelling

Submit Reset

21
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

Validate textboxes and display accepted information. [Marks 20]


4) Viva [Marks 10]
5) Journal [Marks 10]

1) Write a java program that displays the number of characters, lines & words from a file.
[Marks 30]

2) Write a program in VB.Net to create a MDI project that allows the user to select multiple
windows and give the status of the currently active window. The user should not switch to
other window until the current window is closed. The menu items for the child windows
should be different from the MDI Form. [Marks 30]

3) Write an ASP code to display sum of all odd numbers between 1 to 20.
.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

22
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

1) Write a java program that reads line of integers. Display each integer and also display
sum of all integers
[Marks 30]

2) Write a program in VB.Net to the following operation on the Rich test box values

i) Font Style
ii) Font Color
iii) Indent
iv) Save text
v) Exit

Add the following to your form

i) One Rich Text Box


ii) Six command Button controls (Font Style, Font Color, Indent, Save Text, Exit)
[Marks 30]

3) Write a JavaScript code to calculate maximum, minimum, sum and average of numbers
in an array. Make all validation.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

23
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

1) Write a java program to accept a number from the user, if number is zero then throw user
defined exception “Number is 0” otherwise check whether no is prime or not (Use static
keyword).
[Marks 30]

2) Write a program in VB.Net to create a simple Editor. Create a button that will allow the
user to access functions like File open, Save, Find.
[Marks 30]
3) Write an ASP code to delete first record from student table and display remaining record
on the screen. (Student table should contain details as - rollno, stud_name, address).
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

24
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

1) Write a package for Games, which have two classes Indoor and Outdoor. Use a function
display () to generate the list of players for the specific games. Use default and
parameterized constructors. Make use of protected access specifier. Also use finalize ()
method. [Marks 30]

2) Write a program in VB.Net which contains a form, a text box and Label. Write a code, (I
suggest the KEY PRESS event procedure of the text box) using the Select Case statement,
that accepts a character into the text box, and determines whether the character is a Vowel.
In the Label, display if a note saying that this character is a Vowel.
[Marks 30]

3) Write an ASP code to read emp_no, emp_name, address, salary from the database.

[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

25
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

1) Create a package TYBSc which will have 2 classes as class Mathematics with a
methods to add two numbers, add three float numbers and class Maximum with a method
to find maximum of three numbers. (Make use of finalize)
[Marks 30]

2) Write a program in VB.Net to do the following operation on List Box and Combo box
controls

i) Add Item
ii) Remove Item
iii) Sort Items
iv) Single selection of Item
v) Multi selection of Item
vi) Extended Multi Select Of Item
vii) Displaying Multiple Columns of Entries
viii) Clear Items.

Add the following to your form

i) One List Box Control


ii) One Combo Box Control
iii) One Command Button(For Remove)
[Marks 30]

3) Write an ASP code to accept prod_code, prod_name, qty, price, total_price from user,
store in database and then display all product details on the screen.
[Marks 20]

4) Viva [Marks 10]

26
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

5) Journal [Marks 10]

1) Write a program in Java to Read ,Update and Delete any record from database. The
database will be created in appropriate backend.
Database about Element ( Oxygen, Hydrogen) has following fields ( Atomic weight ,
Name, Chemical symbol)
The input should be provided through Command Line Argument along with the appropriate
data.
Ex. Java Pgm_name R
Will read and show the contents of the table.
Ex. Java Pgm_name U 10 ’Oxygen’ 137
Will update the record according to the name specified. (JDBC)
(Use of file handling concept) [Marks 30]

2) Write a program in VB.Net to do following

a) Create a project with a single form, a command button and a common dialog
control. When the command button is clicked, open the common dialog box to
permit the user to change the BackColor of the form.
b) Create a project with single form, a command button, a common dialog control
and label. Use a common dialog box to permit the user to change the font size of
the label.
[Marks 30]

3) Write an ASP code to accept project_code from user, delete that project details from the
‘Project’ table and display message on the screen. (Project table should contain project
details as - project_code, project_name, start_date, end_date).
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

27
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

1) Write a class Student with attributes roll no, name, age and course. Initialize values
through parameterized constructor. If age of student is not in between 15 and 21 then
generate user-defined exception “Age Not Within The Range”.If name contains numbers or
special symbols raise exception “Name not valid”.
[Marks 30]
2) Write a program in VB.Net to do the following

a) Show the progress on form using Progressbar


b) Use the Timer control
c) To see the progress take show progress status button
d) After completing progress show the Main MDI Form.
[Marks 30]

3) Write an ASP code to accept item_no, item_name, qty, price, total_price from user, store
in database and then display all item details on the screen in table format.
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

28
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

1) Write a Java program to accept list of files as command line arguments. Display the
name and size of all the files. Delete all files with extension as ‘.html’ from the current
directory. Appropriate error messages should be printed.(Use vector Array)
[Marks 30]

2) Write a program in VB.net to display the status of mouse using label controls program
should display current x,y positions of mouse . When user clicks left or right buttons label
should indicate which button is pressed. Program should also indicates double click .When
user clicks on close , show summery report as given below

[Marks 30]

3) Write HTML program using a ASP code to display following:

29
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

Student Information

Roll No :
Name :
Address :
Phone Number :
Email Id :

Submit Reset

[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

1) Write a Java program to design a screen using Awt that will create four text fields. First
for the text, second for what to find and third for replace. Display result in the fourth text
field. Also display the count of total no. of replacements made. The button clear to clear
the text boxes.

Find and Replace

Enter Text

Text To Find

Text to Replace

No. Of occurrences

Find Replace Clear

[Marks 30]
30
UNIVERSITY OF PUNE
BCA (Sem-V) Practical Examination Oct-2008
Lab course- (JAVA, DOT NET, Internet Programming)
[Duration – 3 hrs] [Maximum Marks: 100]

2) Write a program in VB.Net to do following

a) Create a project with a single form, a command button and a common dialog
control. When the command button is clicked, open the common dialog box to
permit the user to change the BackColor of the form.
b) Create a project with single form, a command button, a common dialog control
and label. Use a common dialog box to permit the user to change the font size of
the label.
[Marks 30]

3) Write an ASP code to display all player details stored in the database on the screen in
table format. (Player details are - pno, pname, address, game_name)
[Marks 20]

4) Viva [Marks 10]


5) Journal [Marks 10]

31

Das könnte Ihnen auch gefallen