0% found this document useful (0 votes)
198 views86 pages

Syspro, Java, Ip Slips

The document provides implementation schemes and skeleton for practical exams in Lab Course I, II, and III for BSc Computer Science students following the semester pattern from March 2016. It outlines that practical slips will follow the 2013 syllabus pattern and be implemented starting 2016. Students must perform all practicals on Linux and bring lab books and project reports from previous semesters to appear for exams. Skeletons provide details of questions, marks distribution and evaluation methods for the three lab courses covering topics like systems programming, operating systems, programming in Java, computer graphics, internet programming and projects.

Uploaded by

Kamlesh Jadhav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
198 views86 pages

Syspro, Java, Ip Slips

The document provides implementation schemes and skeleton for practical exams in Lab Course I, II, and III for BSc Computer Science students following the semester pattern from March 2016. It outlines that practical slips will follow the 2013 syllabus pattern and be implemented starting 2016. Students must perform all practicals on Linux and bring lab books and project reports from previous semesters to appear for exams. Skeletons provide details of questions, marks distribution and evaluation methods for the three lab courses covering topics like systems programming, operating systems, programming in Java, computer graphics, internet programming and projects.

Uploaded by

Kamlesh Jadhav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 86

CONFIDENCIAL

SAVITRIBAI PHULE PUNE UNIVERSITY


(Formerly University of Pune)

Booklet of Practical Skeleton Papers


For
BSc. (Computer Science) Semester Pattern
(From March 2016)

T.Y. B.Sc. (Computer Science)


LAB COURSE I, II and III
Implementation Schemes
1. The designed Practical slips will be implemented from the academic year March/
April 2016 onwards.
2. The slips are design on the basis of syllabus of T. Y. B. Sc (2013 Pattern).
3. All the slips are to be used for every batch.
4. Only one change of slip is allowed on the basis of 10% marks deduction on total
marks obtained out of 80.
5. The booklet contains the slips for LAB I (CS – 347), Lab II (CS – 348) and Lab III
(CS – 349) courses.
6. Practical Slips of all Labs should be performed on Linux platform only.
7. Students should carry the lab book of Semester I and II of the above mention practical
courses and duly certified project reports of concern lab course to appear for
examination.
Skeleton of Lab I, II and III
Lab Course I System Programming & Operating System
Total Marks : 80 (External)
Q.1 System programming [35]
Q.2 Operating System [35]
Q.3 Viva [10]
Total Marks : 20 (Internal)
Lab Book Semester I [10]
Lab Book Semester II [10]

Lab Course II – Programming in Java-I, Programming in Java-II &


Computer Graphics
Total Marks : 80 (External)
Q.1 Program on core java [30]
Q.2 Program on Advance java [30]
Q.3 Viva (By External) [05]
Q.4 Demo of Mini Project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (By External) [05]
Q.5. Lab Book (Semester I and II) (By Internal) [10]
Total Marks : 20 (Internal)
Mini Project Using Computer Graphics (Activity) [10]
Seminar (Enhanced Java + Listening) [10]

Lab Course III – Internet Programming-I, Internet Programming II &


Project
Total Marks : 80 (External)
Q.1 PHP simple program [10]
Q.2 PHP program with more complexity [20]
Q.3 Project report viva. No Demo on machine (By External) [20]
Q.4 Networking Assignments (By Internal) [10]
Q.5 Lab Book (Semester I and II) (By Internal) [10]
Q.6 Final Demo of Project before practical examination (By Internal) [10]
Total Marks : 20 (Internal)
Continuous project evaluation as per Project guidelines given in syllabus [20]
SAVITRIBAI PHULE PUNE UNIVERSITY
(Formerly University of Pune)

Booklet of Practical Skeleton Papers


For
BSc. (Computer Science) Semester Pattern
(From March 2016)

T. Y. B. Sc. (Computer Science)


Laboratory Course I

CS-347

System Programming & Operating System


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Implement a menu driven simulator for hypothetical Simple Instruction Computer that
provides the following functionalities:
a. Load - Loading of the program from file into memory
b. Print - Printing the program loaded in memory
c. Run - Executing the loaded program
The machine has the basic instruction set comprising of following:
Opcode Mnemonic Instruction
00 STOP Stop or halt execution
01 ADD Add memory operand to register contents
02 SUB Subtract memory operand from register contents
03 MULT Multiply memory operand to register contents
04 MOVER Move memory operand contents to register contents
05 MOVEM Move register contents to Memory operand
06 COMP Compare register and memory operands to set condition code
appropriately
07 BC Branch to second operand depending on condition code
specified as first operand
08 DIV Divide register contents by memory operand
09 READ Read into memory operand
10 PRINT Print contents of memory Operand

Create a file containing the machine language code to find maximum of two numbers by
using above instruction opcode set.
[35]

2. Write a simulation program to implement demand paging using LFU page replacement
algorithm. Assume the memory of “n” frames. Show the contents of page after every
page replacement in a frame and at end show the total number of page faults
accordingly. Input the following Page Reference string.

Page Reference String : 3,4,5,4,3,4,7,2,4,5,6,7,2,4,6


[35]
3. Viva [10]

------------- Slip 1 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Implement a menu driven simulator for hypothetical Simple Instruction Computer that
provides the following functionalities
a. Load - Loading of the program from file into memory
b. Print - Printing the program loaded in memory
c. Run - Executing the loaded program
The machine has the basic instruction set comprising of following:
Opcode Mnemonic Instruction
00 STOP Stop or halt execution
01 ADD Add memory operand to register.
02 DIV Divide register contents by memory operand
03 SUB Subtract memory operand from register.
04 MULT Multiply memory operand to register.
05 READ Read into memory operand
06 Compare register and memory operands to set condition code
COMP
appropriately
07 MOVER Move memory operand contents to register.
08 Branch to second operand depending on condition code
BC
specified as first operand
09 MOVEM Move register contents to Memory operand
10 PRINT Print contents of memory Operand

Create a file containing the machine language code to find minimum of two numbers by
using above instruction Opcode set.
[35]

2. Write a simulation program to implement Round Robin CPU scheduling algorithm for
the given time quantum as input. Also accept the number of Processes and arrival time
and CPU burst time for each process as input. The output should give the Gantt chart,
turnaround time and waiting time for each process. Also display the average
turnaround time and average waiting time.
[35]
3. Viva [10]

------------- Slip 2 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Implement a menu driven simulator for hypothetical Simple Instruction Computer that
provides the following functionalities:
a. Load - Loading of the program from file into memory
b. Print - Printing the program loaded in memory
c. Run - Executing the loaded program
The machine has the basic instruction set comprising of following:
Opcode Mnemonic Instructions
00 STOP Stop or halt execution
01 READ Read into memory operand
02 PRINT Print contents of memory Operand
03 ADD Add memory operand to register contents
04 SUB Subtract memory operand from register contents
05 MOVER Move memory operand contents to register contents
06 MOVEM Move register contents to Memory
07 MULT Multiply memory operand to register contents
08 DIV Divide register contents by memory operand
09 Branch to second operand depending on condition code
BC
specified as first operand
10 Compare register and memory operands to set condition
COMP
code appropriately

Create a file containing the machine language code to find xy by using above
instruction Opcode set.
[35]

2. Write a simulation program to implement demand paging using LRU (Using Counter)
page replacement algorithm. Assume the memory of “n” frames. Show the contents of
page after every page replacement in a frame and at end show the total number of page
faults accordingly. Input the following Page Reference String.

Page Reference String : 12,15,12,18,6,8,11,12,19,12,6,8,12,15,19,8


[35]
3. Viva [10]

------------- Slip 3 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Implement a menu driven simulator for hypothetical Simple Instruction Computer that
provides the following functionalities:
a. Load - Loading of the program from file into memory
b. Print - Printing the program loaded in memory
c. Run - Executing the loaded program
The machine has the basic instruction set comprising of following:
Opcode Mnemonic Instruction
00 STOP Stop or halt execution
01 PRINT Print contents of memory Operand
02 SUB Subtract memory operand from register contents
03 MULT Multiply memory operand to register contents
04 READ Read into memory operand
05 MOVER Move memory operand contents to register contents
06 MOVEM Move register contents to Memory
Compare register and memory operands to set condition code
07 COMP
appropriately
Branch to second operand depending on condition code
08 BC
specified as first operand
09 DIV Divide register contents by memory operand
10 ADD Add memory operand to register contents

Create a file containing the machine language code to find factorial of a given number by
using above instruction Opcode set. [35]

2. Write a program to implement a toy shell (Command Interpreter). It has its own
prompt say “MyShell $ “. Any normal shell command is executed from this shell
(MyShell$) by starting a child process to execute the system program corresponding to
the command. It should additionally interpret the following commands:

list f dirname : To print names of all the files in current directory.


list n dirname : To print the number of all entries in the current directory.
list i dirname : To print names and inodes of the files in the current directory.
[35]
3. Viva [10]

------------- Slip 4 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Implement a menu driven simulator for hypothetical Simple Instruction Computer that
provides the following functionalities:
a. Load - Loading of the program from file into memory
b. Print - Printing the program loaded in memory
c. Run - Executing the loaded program
The machine has the basic instruction set comprising of following:
Opcode Mnemonic Instruction
00 STOP Stop or halt execution
01 ADD Add memory operand to register contents
02 SUB Subtract memory operand from register contents
03 MULT Multiply memory operand to register contents
04 DIV Divide register contents by memory operand
05 MOVER Move memory operand contents to register contents
06 MOVEM Move register contents contents to Memory
Compare register and memory operands to set condition code
07 COMP
appropriately
Branch to second operand depending on condition code
08 BC
specified as first operand
09 READ Read into memory operand
10 PRINT Print contents of memory Operand

Create a file containing the machine language code to find the addition of first “n”
numbers by using above instruction Opcode set. [35]

2. Write a simulation program to implement Sequential (Contiguous) Allocation method


for file. Assume disk having “n” number of blocks ranging from 0 to n-1. Randomly
mark some of the blocks as allocated and accordingly maintain the list of free blocks.
Perform the following operations using following menu.
- Show Bit Vector
- Create New File
- Show Directory
- Delete File
- Exit [35]
3. Viva [10]

------------- Slip 5 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a command line program for line editor. The file to be edited is taken as
command line argument. An empty file is opened for editing if no argument is
supplied. It should display ‘$’ prompt to accept the line editing commands. Implement
the following set of commands.
a : Append
p : Print all lines
s : Save
e : Exit
[35]

2. Write a simulation program to implement demand paging using MFU page


replacement algorithm. Assume the memory of “n” frames. Show the contents of page
after every page replacement in a frame and at end show the total number of page
faults accordingly. Input the following Page Reference String.

Page Reference String : 8, 5, 7, 8, 5, 7, 2, 3, 7, 3, 5, 9, 4, 6, 2

[35]
3. Viva [10]

------------- Slip 6 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a command line program for line editor. The file to be edited is taken as
command line argument. An empty file is opened for editing if no argument is
supplied. It should display ‘$’ prompt to accept the line editing commands. Implement
the following commands.
a : Append
d n : Delete nth line.
p : Print all lines.
e : Exit
[35]
2. Write the simulation program to implement demand paging using FIFO page
replacement algorithm. Assume the memory of “n” frames. Show the contents of page
after every page replacement in a frame and at end show the total number of page
faults accordingly. Input the following Page Reference String.

Page Reference String : 3, 4, 5, 6, 3, 4, 7, 3, 4, 5, 6, 7, 2, 4, 6


[35]
3. Viva [10]

------------- Slip 7 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a command line program for line editor. The file to be edited is taken as
command line argument. An empty file is opened for editing if no argument is
supplied. It should display ‘$’ prompt to accept the line editing commands. Implement
the following commands.
s : Save
a : Append
d n1 n2 : Delete lines from position n1 to n2.
e : Exit
[35]
2. Consider the following snapshot of the system
Processes Allocation MAX Available
A B C A B C A B C
P0 0 1 0 7 5 3 3 3 2
P1 2 0 0 3 2 2
P2 3 0 2 9 0 2
P3 2 1 1 2 2 2
P4 0 0 2 4 3 3

Calculate and display the contents of matrix Need.

Using Safety and Resource-Request Algorithms perform the following operations:

a) Check whether the current system is in safe state or not.


b) If a request from process P1 arrives as (1, 0, 2), can it be granted immediately by
keeping system in safe state.
[35]
3. Viva [10]

------------- Slip 8 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a program to implement a DFA Driver for any given language. Accept number
of states, number of input symbols, set of input symbols, number of final states, set of
final states and transition table as input. (Input language should be given by examiner).
Write menu driven program that will have options as
a. Read DFA
b. Show Transition Table
c. Check Acceptance of the Given String.
d. Exit
[35]

2. Write a simulation program to implement demand paging using FIFO page


replacement algorithm. Assume the memory of “n” frames. Show the contents of page
after every page replacement in a frame and at end show the total number of page
faults accordingly. Input the following Page Reference String.

Page Reference String : 3,4,5,4,3,4,7,2,4,5,6,7,2,4,6


[35]
3. Viva [10]

------------- Slip 9 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a program to implement DFA driver for the language L= “Set of all strings that
starts with a, ending with b” over {a,b}.
[35]

2. Write a simulation program to implement a Pre-emptive Shortest Job First (SJF) –CPU
scheduling algorithm. Accept the number of Processes as input. Also accept arrival
time and CPU burst time for each process as input. The output should give the Gantt
chart, turnaround time and waiting time for each process. Also display the average
turnaround time and average waiting time.
[35]
3. Viva [10]

------------- Slip 10 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a command line program for line editor. The file to be edited is taken as
command line arguments. An empty file is opened for editing if no argument is
supplied. It should display ‘$’ prompt to accept the line editing commands. Implement
the following commands.
a : Append
pmn : Print range of lines from m to n
in : Insert lines at position n.
e : Exit
[35]

2. Write a simulation program to implement a Linked Allocation method for file. Assume
disk having “n” number of blocks ranging from 0 to n-1. Randomly mark some blocks
as allocated and accordingly maintain the list of free blocks. Perform the following
operation using the following menu:
- Show Bit Vector
- Create New File
- Show Directory
- Delete File
- Exit
[35]
3. Viva [10]

------------- Slip 11 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a program to implement a DFA driver for the language L= “Set of all strings that
containing 101 as substring” over {0, 1}.
[35]

2. Write a simulation program to implement Pre-emptive Priority CPU scheduling


algorithm. Accept the number of Processes and arrival time, CPU burst time and
priority for each process as input. Priorities should in High to Low order (1 is High).
The output should give the Gantt chart, turnaround time and waiting time for each
process. Also display the average turnaround time and average waiting time.

[35]
3. Viva [10]

------------- Slip 12 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Consider the following Macro definition and Data structures (stored as an array of
structure) associated with it as follows:

MACRO
CALC &A,&B,&OP=ADD
MOVER AREG, &A
&OP AREG, &B
MOVEM AREG, &A
MEND

Macro Definition Table


MOVER AREG, (P, 1)
(P,3) AREG, (P,2)
MOVEM AREG, (P,1)
MEND
Parameter Name Table
Parameter
Name
&A
&B
&OP
Macro Name Table
Macro MDTPTR KPDTPTR PNTPTR No. No.
Name Keyword Positional
Parameter Parameter
CALC 0 0 0 1 2
Keyword Parameter Default Value Table
Parameter Default
Name Value
&OP ADD
Write a program to expand the above macro definition using given data structures for
the following two macro call.
1. CALC X,Y
2. CALC X,Y,&OP=SUB [35]
2. Write a program to implement a toy shell (Command Interpreter). It has its own
prompt say “MyShell $”. Any normal shell command is executed from this shell
(MyShell$) by starting a child process to execute the system program corresponding to
the command.

It should additionally interpret the following commands:

search f filename pattern :- To search first occurrence of the pattern in the file.
search a filename pattern :- To search all the occurrence of the pattern in the file.
search c filename pattern:- To count the number of occurrence of the pattern in the
file.
[35]
3. Viva [10]

------------- Slip 13 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a macro pre-processor program that will create and display the contents of MDT,
MNT and PNTAB for the following macro definition:

MACRO
CALC &A,&B,&REG,&OP
MOVER &REG, &A
&OP &REG, &B
MOVEM &REG, &A
MEND
[35]

2. Write a program to implement a toy shell (Command Interpreter). It has its own
prompt say “MyShell $ “. Any normal shell command is executed from this shell
(MyShell$) by starting a child process to execute the system program corresponding to
the command.

It should additionally interpret the following commands:

typeline +n filename :- To print first n lines in the file.


typeline -n filename :- To print last n lines in the file.
typeline a filename :- To print all lines in the file.
[35]
3. Viva [10]

------------- Slip 14 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a macro pre-processor program that will create and display the contents of MNT,
MDT and KPDTAB for the following macro definition:

MACRO
INCR &X=,&Y=,&OP=ADD, &REG=AREG
MOVER &REG, &X
&OP &REG, &Y
MOVEM &REG, &X
MEND

[35]
2. Write a simulation program to implement FCFS CPU-scheduling algorithm. Accept
the number of Processes as input. Also accept arrival time and CPU burst time for each
process as input. The output should give the Gantt chart, turnaround time and waiting
time for each process. Also display the average turnaround time and average waiting
time.
[35]
3. Viva [10]

------------- Slip 15 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write an assembler that will create and display the contents of symbol table. Also
construct the Intermediate Code of type variant I for the following error-free assembly
program:

START 100
MOVEM BREG, ONE
MOVER BREG, A
MOVER BREG, B
MOVER BREG, C
PRINT A
PRINT B
PRINT C
STOP
A DS 1
B DS 2
C DS 1
ONE DC ‘1’
END
[35]

2. Write a program to implement a toy shell (Command Interpreter). It has its own
prompt say “MyShell $ “. Any normal shell command is executed from this shell
(MyShell$) by starting a child process to execute the system program corresponding to
the command.

It should additionally interpret the following commands:

count c filename :- To print number of characters in the file.


count w filename :- To print number of words in the file.
count l filename :- To print number of lines in the file.
[35]
3. Viva [10]

------------- Slip 16 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a command line program for line editor. The file to be edited is taken as
command line arguments. An empty file is opened for editing if no argument is
supplied. It should display ‘$’ prompt to accept the line editing commands. Implement
the following commands.
s : Save
a : Append
c n1 n2 : Copy lines from position n1 to position n2.
e : Exit
[35]

2. Write a simulation program to implement Linked Allocation method for file. Assume
disk having ‘n’ number of blocks ranging from 0 to n-1. Randomly mark some block
as allocated and accordingly maintain the list of free blocks. Perform the operations
using following menu:
- Show Bit Vector
- Create New File
- Show Directory
- Delete File
- Exit
[35]
3. Viva [10]

------------- Slip 17 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a command line program for line editor. The file to be edited is taken as
command line arguments. An empty file is opened for editing if no argument is
supplied. It should display ‘$’ prompt to accept the line editing commands. Implement
the following commands.
s : Save
a : Append
m n1 n2 : Move n1 line at position n.
e : Exit
[35]

2. Write a simulation program to implement Non-Pre-emptive Shortest Job First (SJF)


CPU scheduling algorithm. Accept the number of Processes and arrival time and CPU
burst time for each process as input. The output should give the Gantt chart, turnaround
time and waiting time for each process. Also display the average turnaround time and
average waiting time.
[35]
3. Viva [10]

------------- Slip 18 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a macro pre-processor program that will create and display the contents of MNT,
PNTAB, and KPDTAB for the following macro definition:

MACRO
CALC &A,&B,&REG=CREG,&OP=MULT
MOVER &REG, &A
&OP &REG, &B
MOVEM &REG, &A
MEND
[35]

2. Write a simulation program to implement Non-Pre-emptive Priority CPU scheduling


algorithm. Accept the number of Processes and arrival time, CPU burst time and
priority for each process as input. Priorities should in High to Low order (1 is High).
The output should give the Gantt chart, turnaround time and waiting time for each
process. Also display the average turnaround time and average waiting time.
[35]
3. Viva [10]

------------- Slip 19 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write an assembler that will display the following errors and warnings:
a. Symbol used but not defined
b. Symbol defined but not used
c. Re-declaration of the Symbol
Present in the following assembly program:

START 100
READ X
LOOP MOVER BREG, X
ADD BREG, Y
X MOVEM AREG, Z
STOP
X DS 1
Y DS 1
END
[35]

2. Write a program to implement a toy shell (Command Interpreter). It has its own
prompt say “MyShell $ “. Any normal shell command is executed from this shell
(MyShell$) by starting a child process to execute the system program corresponding to
the command.

It should additionally interpret the following commands:

count c filename :- To print number of characters in the file.


count w filename :- To print number of words in the file.
count l filename :- To print number of lines in the file.
[35]
3. Viva [10]

------------- Slip 20 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write an assembler for SMAC0 that will display the following errors
a) Symbol used but not defined
b) Symbol define but not used
c) Re-Declaration of Symbol
Present in the following assembly program:

START 100
READ A
B MOVER BREG, A
ADD BREG, B
LOOP MOVEM BREG, C
STOP
A DS 1
B DS 1
END
[35]

2. Write a program to implement a toy shell (Command Interpreter). It has its own
prompt say “MyShell $ “. Any normal shell command is executed from this shell
(MyShell$) by starting a child process to execute the system program corresponding to
the command.

It should additionally interpret the following commands:

typeline +n filename :- To print first n lines in the file.


typeline -n filename :- To print last n lines in the file.
typeline -a filename :- To print all lines in the file.
[35]
3. Viva [10]

------------- Slip 21 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write an assembler that will create and display the contents of symbol table. Also
construct the intermediate code of type variant II for the following error-free assembly
program:

START 100
MOVEM BREG, ONE
MOVER BREG, A
MOVER BREG, B
MOVER BREG, C
PRINT A
PRINT B
PRINT C
STOP
A DS 1
B DS 2
C DS 1
ONE DC ‘1’
END
[35]

2. Write a simulation program to implement demand paging using FIFO page


replacement algorithm. Assume the memory of “n” frames. Show the contents of page
after every page replacement in a frame and at end show the total number of page
faults accordingly. Input the following Page Reference String.

Page Reference String : 3,4,5,4,3,4,7,2,4,5,6,7,2,4,6


[35]
3. Viva [10]

------------- Slip 22 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a program to implement a DFA driver for the language L= “Set of all strings that
containing 101 as substring” over {0, 1}.
[35]

2. Write a program to implement a Banker’s Algorithm. Accept the total number of


processes (n) and resource types (m) as input. Also accept the number of initial
instances for each resource type, Allocation and Max of size “n x m” as input and
perform the following operations:
a) Calculate and display the final contents of Available array of size “m”
b) Calculate and display the contents of Need matrix of size “n x m”

Using Safety and Resource-Request algorithm perform the following operations:

a) Check whether system is in safe state or not.


b) If request of size “m” arrives from process Pi , can it be granted immediately by
keeping system in safe state?

[35]
3. Viva [10]

------------- Slip 23 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Write a command line program for line editor. The file to be edited is taken as
command line arguments. An empty file is opened for editing if no argument is
supplied. It should display ‘$’ prompt to accept the line editing commands. Implement
the following commands.
i n : Insert at position n
d n1 n2 : Delete line between position n1 and n2.
s : Save
p : Print all lines
e : Exit
[35]
2. Consider the following snapshot of the system
Process Allocation MAX Available
A B C D A B C D A B C D
P0 0 0 1 2 0 0 1 2 1 5 2 0
P1 1 0 0 0 1 7 5 0
P2 1 3 5 4 2 3 5 6
P3 0 6 3 2 0 6 5 2
P4 0 0 1 4 0 6 5 6

Calculate and display the contents of matrix Need

Using Safety and Resource-Request algorithm the following operations:

a) Check whether the system is in safe state or not.


b) If the request from process P4 arrives as (0, 0, 4, 1) can be granted immediately by
keeping system in safe state.
[35]
3. Viva [10]

------------- Slip 24 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 347 Lab Course – I System Programming and Operating System
Duration : 3 Hours Maximum Marks: 80

1. Consider the following Macro definition and Data structures (stored as an array of
structure) associated with it as follows:

MACRO
CALC &A,&B,&OP=
MOVER AREG, &A
&OP AREG, &B
MOVEM AREG, &A
MEND

Macro Definition Table


MOVER AREG, (P, 1)
(P,3) AREG, (P,2)
MOVEM AREG, (P,1)
MEND
Parameter Name Table
Parameter
Name
&A
&B
&OP
Macro Name Table
Macro MDTPTR KPDTPRT PNTPTR No. No.
Name Keyword Positional
Parameter Parameter
CALC 0 0 0 1 2
Write a program to expand the above macro definition using given data structures for
the following two macro call.
1. CALC X,Y,&OP=ADD
2. CALC X,Y,&OP=SUB
[35]
2. Write a simulation program to implement demand paging using MFU page
replacement algorithm. Assume the memory of “n” frames. Show the contents of page
after every page replacement in a frame and at end show the total number of page
faults accordingly. Input the following Page Reference String.

Page Reference String : 3,4,5,4,3,4,7,2,4,5,6,7,2,4,6

[35]
3. Viva [10]

------------- Slip 25 --------------


SAVITRIBAI PHULE PUNE UNIVERSITY
(Formerly University of Pune)

Booklet of Practical Skeleton Papers


For
BSc. (Computer Science) Semester Pattern
(From March 2016)

T. Y. B. Sc. (Computer Science)


Laboratory Course II

CS-348
Programming in JAVA-I, Programming in JAVA-II &
Computer Graphics
LAB II – Computer Graphics Mini Project Evaluation guidelines

The total marks for OpenGL mini project are 15. They are distributed as;

Sr.No. Marks Examination Description


1 7 (5+ 2) Internal These marks should be given as;
5 marks for use of openGL methods and
implementation of computer graphics
concepts
2 marks for project report
2 3 Internal Internal demo of project
3 5 External Viva on project report and final demo on
machine using OpenGL on Linux.

Project Report Index:


1. Certificate & Assessment Sheet
2. Acknowledgement
3. Computer Graphics concepts used in project
4. OpenGL library and methods used in project
5. Screen Shots
6. Bibliography
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Create an abstract class shape. Derive three classes sphere, cone and cylinder from it.
Calculate area and volume of all (use method overriding)
[30]

2. Design an HTML page containing 4 option buttons (Painting, Drawing, Singing and
Swimming) and 2 buttons Reset and Submit. When the user clicks Submit button, the
server responds by adding a cookie containing the selected hobby and sends a message
back to the client. Program should not allow duplicate cookies to be written.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 1 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a menu driven program to perform the following operations on a set of integers
as shown in the following figure. The load operation should generate 10 random
integers (2 digits) and display the numbers on the screen. The save operation should
save the numbers to a file “numbers.txt”. The Sort menu provides various operations
and the result is displayed on the screen.
Operation Sort

Load Ascending

Save Descending

Exit

Numbers

[30]

2. Write a client-server program which displays the server machine’s date and time on the
client machine.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 2 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Define a class MyDate (Day, Month, year) with methods to accept and display a
MyDate object. Accept date as dd, mm, yyyy. Throw user defined exception
“InvalidDateException” if the date is invalid.
Examples of invalid dates:
a. 12 15 2015
b. 31 6 1990
c. 29 2 2015
[30]

2. Consider the following entities and their relationships


BillMaster(billno, custname, billdate)
BillDetails(itemname, qty, rate)
BillMaster and BillDetails are related with one-to-many relationship. Create a RDB in
3NF using Postgresql for the above and solve the following:

Design HTML page that accept the bill number from user and print the corresponding
bill in the following format using servlet programming.

Bill No. : Bill Date:


Customer Name:
Sr. No. Item Name Quantity Rate Total

Net Bill
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 3 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a menu driven program to perform the following operations on a set of integers
as shown in the following figure. The load operation should generate 10 random
integers (2 digits) and display the numbers on the screen. The save operation should
save the numbers to a file “numbers.txt”. The Sort menu provides various operations
and the result is displayed on the screen.
Operation Compute

Load Sum

Save Average

Exit

Numbers

[30]

2. Design a servlet that provides information about a HTTP request from a client, such as
IP address and browser type. The servlet also provides information about the server on
which the servlet is running, such as the operating system type, and the names of
currently loaded servlet.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 4 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Define a class SavingAccount (acno, name, balance). Define appropriate constructors


and operations withdraw(), deposit(), and viewbalance(). The minimum balance must
be 500. Create an object and perform operations. Raise user defined
“InsufficientFundsException” when balance is not sufficient for withdraw operation.
[30]

2. Define a thread to move numbers inside a panel vertically. The numbers should be
created between 0 – 9 when user clicks on the Start Button. Each number should have a
different color and vertical position (calculated randomly). Note: suppose user has
clicked Start button 5 times then five numbers say 0, 1, 5, 9, 3 should be created and
move inside the panel. Choice of number between 0-9 is random. Ensure that number
is moving within the panel border only.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 5 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a program to accept a decimal number in the Textfield. After clicking Calculate
button, program should display the binary, octal, hexadecimal equivalent for the
entered decimal number.

Decimal Number TextField

Binary Number Label

Octal Number Label

Hexadecimal Number Label

CALCULATE

[30]

2. Write a server program which echoes messages sent by the client. The process
continues till the client types “END”.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 6 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Create a package named Series having two different classes to print the following
series:
a. Prime numbers
b. Squares of numbers
Write a program to generate ‘n’ terms of the above series.
[30]

2. Create a table Student with the fields roll number, name, percentage using Postgresql.
Write a menu driven program (Command line Interface) to perform the following
operations on student table.
a. Insert
b. Modify
c. Delete
d. Search
e. View All
f. Exit
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 7 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a program to create the following GUI and apply the changes to the text in the
TextField.

Font Style
Arial Bold
Size Italic
5 - 10

TextField

[30]

2. Design a servlet which counts how many times a user has visited a web page. If the
user is visiting the page for the first time then display a message “Welcome”. If the
user is revisiting the page, then display the number of times page is visited. (Use
Cookies)
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 8 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Create an Applet which displays a message in the center of the screen. The message
indicates the events taking place on the applet window. Handle events like mouse
click, mouse moves, mouse dragged, mouse pressed. The message should update each
time an event occurs. The message should give details of the event such as which
mouse button was pressed (Hint: Use repaint(), MouseListener, MouseMotionListener)
[30]

2. Write a program which sends the name of text file from the client to server and display
the contents of that file on the client machine. If the file does not exists display proper
error message.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 9 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a program to implement a simple arithmetic calculator. Perform appropriate


validations.

Result

1 2 3 +

4 5 6 -

7 8 9 *

0 . = /

[30]

2. Write a program to accept a list of file names on the client machine and check how
many exist on the server. Display appropriate messages on the client side.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 10 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a program to accept a string as command line argument and check whether it is a
file or directory. Also perform operations as follows:
a. If it is a directory, list the names of text files. Also, display a count showing
the number of files in the directory.
b. If it is a file display various details of that file.
[30]

2. Define a thread called “PrintTextThread” for printing text on command prompt for ‘n’
number of times. Create three threads and run them. Pass the text and ‘n’ as parameters
to the thread constructor.
Example:
a. First thread prints “I am in FY” 10 times
b. Second thread prints “I am in SY” 20 times
c. Third thread prints “I am in TY” 30 times
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 11 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Create the following GUI screen using appropriate layout manager. Accept the name,
class, hobbies from the user and display the selected options in a text box.

Your Name TextField

Your Class Your Hobbies

FY Music
SY Dance
TY Sports

Name ---- , Class ----, Hobbies ------

[30]

2. Write a program to calculate the sum and average of an array of 1000 integers
(generated randomly) using 10 threads. Each thread calculates the sum of 100 integers.
Use these values to calculate average. [Use join method].
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 12 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a program to accept a string as command line argument and check whether it is a
file or directory. Also perform operations as follows:
a. If it is a directory, delete all text files in that directory. Confirm delete
operation from user before deleting text files. Also, display a count showing
the number of files deleted, if any, from the directory.
b. If it is a file display various details of that file.
[30]

2. Create a table student with fields roll number, name, percentage using Postgresql.
Insert values in the table. Display all the details of the student table in a tabular format
on the screen. (Using Swing)
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 13 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a menu driven program to perform the following operations on a text file
“phone.txt” which contains name and phone number pairs. The menu should have
options:
a. Search name and display phone number
b. Add new name-phone number pair.
[30]

2. Construct a Linked List containing names of colors: red, blue, yellow and orange. Then
extend your program to do the following:
a. Display the contents of the List using an Iterator.
b. Display the contents of the List in reverse order using a ListIterator.
c. Create another list containing pink and green. Insert the elements of this list
between blue and yellow.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 14 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a program to read item information (id, name, price, qty) from the file
“item.dat”. Write a menu driven program to perform the following operations using
Random access file:
a. Search for a specific item by name
b. Find costliest item
c. Display all items and total cost
[30]

2. Create a Hash table containing student name and percentage. Display the details of the
hash table. Also search for a specific student and display percentage of that student.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 15 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Define a class CricketPlayer(name, no_of_innings, no_of_times_notout, total_runs,


bat_avg). Create an array of “n” player objects. Calculate the batting average for each
player using a static method avg(). Handle appropriate exception while calculating
average. Define static method “sortPlayer” which sorts the array on the basis of
average. Display the player details in sorted order.
[30]

2. Create an application to store city names and their STD codes using an appropriate
collection. The GUI should allow the following operations:
a. Add a new city and its code (No Duplicates)
b. Remove a city from the collection
c. Search for a city name and display the code.

Pune 20 CityName Code

Mumbai 22 (TextField) (TextField)

Add

Command Button

CityName Search Remove

(TextField) Command Button Command Button

[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 16 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Define an abstract class “Staff” with members name and address. Define two sub-
classes of this class – “FullTimeStaff” (department,salary) and
PartTimeStaff(number_of_hours, rate_per_hour). Define appropriate constructors.
Create “n” objects which could be of either FullTimeStaff or PartTimeStaff class by
asking the user’s choice. Display details of all “FullTimeStaff” objects and all
“PartTimeStaff” objects.
[30]

2. Design the table Login(login_name, password) using Postgresql. Also design an


HTML login screen accepting the login name and password from the user. Write a
servlet program that validates accepted login name and password entered by user from
the login table you have created. The servlet sends back an appropriate response.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 17 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Define a class MyNumber having one private integer data member. Write a default
constructor to initialize it to 0 and another constructor to initialize it to a value (Use
this). Write methods isNegative, isPositive, isZero, isOdd, isEven. Create an object in
main. Use command line arguments to pass a value to the object and perform the above
tests.
[30]

2. Define a thread to move alphabets inside a panel vertically. The alphabets should be
created between A – Z when user clicks on the Start Button. Each alphabet should have
a different color and vertical position (calculated randomly). Note: suppose user has
clicked Start button 5 times then five alphabets say A, E, C, G, J should be created and
move inside the panel. Choice of alphabet between A-Z is random. Ensure that
alphabet is moving within the panel border only.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 18 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Create an Applet which displays a message in the center of the screen. The message
indicates the events taking place on the applet window. Handle various keyboard
related events. The message should update each time an event occurs. The message
should give details of the event such as which key was pressed, released, typed etc.
(Hint: Use repaint(), KeyListener).
[30]

2. Accept “n” integers from the user and store them in a collection. Display them in the
sorted order. The collection should not accept duplicate elements (Use suitable
collection). Search for a particular element using predefined search method in the
collection framework.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 19 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a program to create a package “SY” which has a class SYMarks(ComputerTotal,


MathsTotal, ElectronicsTotal). Create another package “TY” which has a class
TYMarks(Theory, Practical). Create “n” objects of Student class having roll number,
name, SYMarks and TYMarks. Add the marks of SY and TY computer subjects and
calculate grade (‘A’ for >=70, ‘B’ for >=60, ‘C’ for >=50, “Pass Class” for >=40 else
“Fail”) and display the result of the student in proper format.
[30]

2. Design a following Phone Book Application screen using swing. Display proper
messages if invalid data is entered like name left blank and negative phone number.
Using Postgresql store the values in the table Phone (Name, Address, Phone) if valid
data is entered for all the fields and perform the various operations like Add, Delete,
Next and Previous as shown on the screen.

Name TextField Add

Address TextField Delete

Phone TextField Next

EMail TextField Previous

[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 20 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Define a Student class (roll number, name, percentage). Define a default and
parameterized constructor. Keep a count of objects created. Create objects using
parameterized constructor and display the object count after each object is created.
(Use static member and method). Also display the contents of each object. Modify
program to create “n” objects of the Student class. Accept details for each object.
Define static method “sortStudent” which sorts the array on the basis of percentage.
[30]

2. Create a JSP page for an online multiple choice test. The questions are randomly
selected from a database and displayed on the screen. The choices are displayed using
radio buttons. When the user clicks on next, the next question is displayed. When the
user clicks on submit, display the total score on the screen.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 21 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a menu driven program to perform the following operations. Accept operation
accept the two numbers using input dialog box. GCD will compute the GCD of two
numbers and display it in message box and Power operation will calculate the value of
an and display it in message box where “a” and “n” are two inputted values.

Operation Compute

Accept GCD

Exit Power

[30]

2. Create a JSP page which accepts user name in a text box and greet the user according
to the time on server side.
Example:
Input : User Name: ABC
Output : Good Morning ABC/ Good Afternoon ABC / Good Evening ABC
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 22 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Create an interface “CreditCardInterface” with methods: viewCreditAmount(),


useCard(), payCard(), and increaseLimit(). Create a class “SilverCardCustomer”(name,
cardnumber(16digit), creditamount-initialized to 0, creditLimit-set to 50,000) which
implements above interface. Inherit class GoldCardCustomer from
SilverCardCustomer having same methods but creditLimit of 1,00,000. Create an
object of each class and perform operations. Display appropriate messages for success
or failure of transaction. (Use method overriding)
a. useCard() method increases the creditAmount by a specific amount upto
creditLimit.
b. payCredit() reduces the creditAmount by a specific amount.
c. increaseLimit() increases the creditLimit for GoldCardCustomers (only 3
times, not more than 5000 rupees each time.)
[30]

2. Write a program to make use of the following JSP implicit objects:


a. out: To display current Date and Time
b. request: To get header information
c. response: To Add cookie
d. config: get the parameters value defined in <init-param>
e. application: get the parameter value defined in <context-param>
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 23 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Write a program to create a super class Vehicle having members Company and price.
Derive two different classes LightMotorVehicle(mileage) and HeavyMotorVehicle
(capacity_in_tons). Accept the information for “n” vehicles and display the
information in appropriate form. While taking data, ask user about the type of vehicle
first.
[30]

2. Create a JSP page for an online multiple choice test. The questions are randomly
selected from a database and displayed on the screen. The choices are displayed using
radio buttons. When the user clicks on next, the next question is displayed. When the
user clicks on submit, display the total score on the screen.
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 24 --------------


Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Practical Examination, March / October
(2013 Pattern)
CS – 348 Lab Course – II Programming in Java -I, Programming in Java-II &
Computer Graphics
Duration : 3 Hours Maximum Marks: 80

1. Define a class Employee having members – id, name, department, salary. Define
default and parameterized constructors. Create a subclass called Manager with private
member bonus. Define methods accept and display in both the classes. Create “n”
objects of the Manager class and display the details of the manager having the
maximum total salary (salary + bonus).
[30]

2. Write a program to create a shopping mall. User must be allowed to do purchase from
two pages. Each page should have a page total. The third page should display a bill,
which consists of a page total of whatever the purchase has been done and print the
total.
(Use HttpSession).
[30]

3. Viva (Java) (External) [5]


4. Demo of Mini project using Computer Graphics (Activity)
On college machine using Linux in OpenGL (External) [5]
5. Lab Book (Semester I and II) (Internal) [10]

------------- Slip 25 --------------


SAVITRIBAI PHULE PUNE UNIVERSITY
(Formerly University of Pune)

Booklet of Practical Skeleton Papers


For
BSc. (Computer Science) Semester Pattern
(From March 2016)

T. Y. B. Sc. (Computer Science)


Laboratory Course III

CS-349
Internet Programming I, Internet Programming II &
Project
Lab III practical Examination guideline:
1. Internal examiner will have the following mark lists ready at the time of practical
examination.
i. Project final demo of 10 marks.
ii. Networking assignment of 10 marks.
iii. Lab book of 10 marks.
2. The external examiner has to conduct the viva on project.
3. Up to date information of progress report will be put in the lab book of LAB III.

Project evaluation guidelines:


1. The project has been assigned internal 20 marks, which will be given by continuous
assessment by teacher throughout the year.
2. The database design will be applicable to database related projects.
3. The game based project will have the complete life cycle of that game along with
Win and Loss conditions.
4. Draw applicable and relevant UML diagrams.
5. The project report should contain Objectives, UML diagrams, input/ output screens.
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project
Duration: 3 Hours Maximum Marks: 80

1. Design HTML form, accept Student Name, Age, and Mobile No. from user. Using
JavaScript validate for following,

a) Student Name should not be empty.


b) Student age must be between 1 to 20. [10]

2. Write a script to create XML file ‘University.xml’ .The elements details of


‘University.xml’
are as follows:
<Univ>
<Uname>----------------</Uname>
<City>---------------------</City>
<Rank>--------------------</Rank>
</Univ>
a) Store the details of at least 3 Universities.
b) Link the ‘University.xml’ file to CSS and get well formatted output as given
below.
i) Uname :
Color: black;
Font-family: copperplate Gothic Light;
Font-size: 16 pt.
Font: Bold;
ii) City and Rank
Color: Yellow;
Font-family: Arial;
Font-size: 12 pt.
Font: Bold; [20]

3. Project report viva. (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]
--Slip 1—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Design a HTML form to accept a string. Write a PHP script for the following.
a) Write a function to count the total number of Vowels from the string.
b) Show the occurrences of each Vowel from the string.
[10]

2. Write a PHP program to read a directory name and extension form user.

Display the files with specified extension form that directory.


[20]

3. Project report viva. (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip 2—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP script, which will return the following component of the URL
‘http: //www.example.com/php-example/index.php’
List of component: Scheme, Host, Path
Excepted o/p
Scheme: http
Host: www.example.com
Path: /php-example/index.php
[10]
2. Write a PHP script to read ‘Book.xml’ file and print specific content of a file using
DOMDocument Parser. ‘Book.xml’ file should contain following information with at
least 5 records with values.
BookInfo
Book No., Book Name, Author Name, Price, Year
[Note: Examiners can change the Book info file to Student info, Teacher info]
[20]

3. Project report viva. (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip 3—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a JavaScript that accept a string form user. Pass this string as parameter to a
function name ‘check_vowel’ on button click event and return the count of the number of
vowels within the string.

[10]

2. Write a PHP program to create a Class Calculator which will accept two values from
user and pass as an argument through parameterized constructor and do the following task

a) Add them
b) Subtract them
c) Multiply them together or divide them on request.
[20]

3. Project report viva. (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip 4—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP script to display following information using superglobal variable.

a) Client IP Address.
b) Browser detection/information.
c) To check whether the page is called from ‘https’ or ‘http’.
[10]

2. Write a script to create XML file as ‘Employee.xml’. The element of this xml file are
as follows.

<Empdetails>
<Employee Empno= Empname= >
<Salary>-------------------</Salary>
<Designation>-------------</Designation>
</Employee>
</Empdetails>

Stores the details of at least 3 employee.

Write a PHP script to read ‘Employee.xml’ file contains (Empno, Empname, Salary,
Designation) and print employee details in tabular format.

(Use Simple XML)

[Note: Examiners can change xml file and give relevant data.]

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]
--Slip 5
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a JavaScript function to accept FirstName and LastName from user.


Display users entered information.
[Hint: use alert and prompt dialogbox]

[10]

2. Write a PHP script for the following.

Design a form to accept the details of 5 different items such as Item code, Item Name, unit
sold, and Rate.

Display the Bill in tabular format. Use only 4 textboxes. [Use explode]
[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip 6—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a menu driven program to perform various file operations. Accept filename
from user.
a) Display type of file.
b) Delete a file.
[10]

2. Write a PHP script to generate an XML in the following format in php.


<?xml version=”1.0” encoding=”ISO-8859-1” ?>
<BookStore>
<Books>
<PHP>
<Title>Programming in PHP </Title>
<Publication>O’RELLY</Publication>
</PHP>
<PHP>
<Title> Beginners PHP </Title>
<Publication>WROX</Publication>
</PHP>
</Books>

</BookStore> [20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip7—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a menu driven program to perform the following operations on an associative


array
a. Reverse the order of each element’s key-value pair.
b. Traverse the element in an array in random order.

[10]

2. Write a PHP script to accept username and password. If in the first three chances,
username and password entered is correct then display second form with ‘welcome
message’ otherwise display error message. [Use Session]

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip8—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Create a HTML form that accept user email. Write a PHP program to check whether
user email address contain @ symbol or not. Display proper message.

[10]

2. Consider the following entities and their relationship.

Student ( stud_id , name, class)

Competition ( c_no, c_name, type)

Relationship between student and competition is many-many with attributes rank and
year.

Create a RDB in 3NF for above and solve the following.

Using above database write a script in PHP to accept a competition name from user and
display information of student who has secured 1st rank in that competition.

[Use PostgreSQL]

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip9—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a Javascript to accept email address from user and count number of @
occurrences and number of Dot (.) occurrences.

[10]

2. Write a PHP script to create a Class Shape and its subclass Triangle, Square and Circle

and display area of the selected shape.(Use the concept of Inheritance)

Display menu (use radio button)

a)Triangle

b)Square

c)Circle

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip10—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP script to design a form to accept email from user and validate email
address using regular expression.

[10]

2 Consider the following entities and their relationship.

Emp ( e_no, ename, address,phone,salary)


Dept ( d_no, dname, location)
Emp-Dept related with many-one relationship.
Create a RDB in 3NF for above and solve the following.

Using above database write a script in PHP which will

a) Insert Employee records and Department records into respective tables.


b) Print a salary statement in the format given below, for a given Department.
[Hint: Create a HTML form to accept Department name form user]

Maximum Salary Minimum Salary Sum Salary

[Use PostgreSQL] [20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]
--Slip11—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP script to keep track of number of times the web page has been access.

[Use Session]

[10]

2. Write a menu driven program to perform the following stack related operations.

i) Insert an element in stack.

ii) Delete an element from stack.

iii) Display the content of stack.

[Hint: Use array_push(), array_pop()]

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip12—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project
Duration: 3 Hours Maximum Marks: 80

1 Write a PHP script to check how many times the web page access.

[Use cookies]

[10]

2 Consider the following entities and their relationship.

Doctor ( doc_no, dname, address ,city ,area)


Hospital (hosp_no, hname, hcity)
Doctor-Hospital related with many-one relationship.
Create a RDB in 3NF for above and solve the following.

Using above database write a script in PHP to print the Doctor visiting to the Hospital in
tabular format. Accept Hospital name from user [Use PostgreSQL]

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip13—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I, Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Define an array. Find the element from the array that matches the given values
using appropriate search function.

[10]

2. Write a AJAX program to read contact.dat file and print the content of a file in a
Tabular form when the user clicks on Print button.
Contact.dat file contain srno, name, residence number, mobile number,
context/relation.
[Enter at least 3 records in contact.dat file]
[Note: Examiner may change the contact.dat to emp.dat, dept.dat and provide proper
structure of the file]

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip14—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a JavaScript function to accept FirstName and LastName from user.


Display users entered information.
[Hint: use alert and prompt dialogbox]

[10]

2. Write a PHP program t define Interface Shape which has two method as area() and
volume(). Define a constant PI.

Create a class Cylinder which implement this interface and calculate area and
volume.

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip15—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a JavaScript function to display Clock in the textbox.

[10]

2. Write a PHP program to read Flat file ‘student.dat’ that has students details as
rollno,name,m1,m2,m3 as marks of 3 subjects. Display the data from the file in
tabular format. Also display total and percentage of each student.

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip16—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP script for the following.


Design a form to accept a string and check whether the given string is palindrome
or not. [ use built-in function.]

[10]

2. Write a AJAX program to print Teacher information from PostgreSQL table Teacher.

Teacher ( Tno, Name, Subject, Research area).


[Note: Examiner can change PostgreSQL table]

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip17—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a menu driven program to perfrom the following operations on an associative


array.
a) Display the elements os an array along with key.
b) Display the size of an array.

[10]

2. Write a PHP script to accept Employee details ( Eno, Ename, Address ) on first page.
On second page accept earning (Basic, DA, HRA ).On third page print Employee
information (Eno, Ename, Address, Basic, DA, HRA,Total)
[Hint: Use Session]
[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip18—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP script to design a form to accept email from user and validate email
address using regular expression.

[10]

2. Write a PHP script for the following:


a) Design a form to accept two numbers from the users.
b) Give option to choose an arithmetic operation (use Radio Button).
c) Display the result on next form.
d) Use concept of default parameter
. [20]
3. Project report viva. No Demo on machine (By External) [20]
4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip19—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP Script to accept Customer Name from user and do the following
a) Transform Customer Name all Upper case letter.
b) Make First character to Upper case.

[10]

2. Write a AJAX program to search Student name according to the character typed
and display list using array.
[20]
3. Project report viva. No Demo on machine (By External) [20]
4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip20—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS-349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP script to accept the number from user and write a function to calculate
the factorial of a given number (non-negative integer).The function accept the
number as argument. [10]

2. Write a PHP script to change the preferences of your web page like font style, font
size, font color, background color using cookie.

Display selected settings on next web page and actual implementation (with new
settings) on third page.
. [20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip21—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP program to read two file names from user and append content of first file
into second file.

[10]

2. Write PHP script to design a form to accept two strings (one smaller than other) from
the user. Find whether the smaller string appear at the start of the larger string.
Provide textbox to accept the string that will replace all occurrences of smaller string
present in larger string.
[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip22—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a PHP script to check how many times the web page access.
[Use cookies] [10]

2. Write a PHP script to design a form to compose/write an email with following


details.

To
[20]

Subject

Message

Send Mail

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip23—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Write a JavaScript function to display Clock in the textbox.

[10]

2. Write a PHP program to read Flat file ‘student.dat’ that has students details as
rollno,name,m1,m2,m3 as marks of 3 subjects. Display the data from the file in
tabular format. Also display total and percentage of each student.

[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip24—
Savitribai Phule Pune University

T.Y.B.Sc.(Computer Science) Practical Examination, March / October


(2013 Pattern)
CS – 349 Lab Course-III Internet Programming-I,Internet Programming-II &
Project

Duration: 3 Hours Maximum Marks: 80

1. Declare a multi dimensional array. Display specific element from a multi


dimensional array. Also delete given element from the multi dimensional array.
(After each operation display array contents).
[10]
2. Write AJAX program to print movie details by selecting an Actor’s name. Create
tables Movie and Actor with 1:M cardinality as follows:
Movie ( mno, mname, release_year)
Actor ( ano, aname)
[use PostgreSQL]
[20]

3. Project report viva. No Demo on machine (By External) [20]


4. Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II) (By Internal) [10]
6. Final Demo of Project before practical examination (By Internal) [10]

--Slip25—

You might also like