Syspro, Java, Ip Slips
Syspro, Java, Ip Slips
CS-347
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.
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]
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.
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:
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]
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]
[35]
3. Viva [10]
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.
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
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]
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]
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]
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]
[35]
3. Viva [10]
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
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]
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,®,&OP
MOVER ®, &A
&OP ®, &B
MOVEM ®, &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.
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, ®=AREG
MOVER ®, &X
&OP ®, &Y
MOVEM ®, &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]
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.
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]
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]
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,®=CREG,&OP=MULT
MOVER ®, &A
&OP ®, &B
MOVEM ®, &A
MEND
[35]
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.
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.
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]
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]
[35]
3. Viva [10]
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
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
[35]
3. Viva [10]
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;
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]
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]
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]
Design HTML page that accept the bill number from user and print the corresponding
bill in the following format using servlet programming.
Net Bill
[30]
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]
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]
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.
CALCULATE
[30]
2. Write a server program which echoes messages sent by the client. The process
continues till the client types “END”.
[30]
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]
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]
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]
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]
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]
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.
FY Music
SY Dance
TY Sports
[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]
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]
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]
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]
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.
Add
Command Button
[30]
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]
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]
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]
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.
[30]
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]
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]
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]
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]
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.
1. Design HTML form, accept Student Name, Age, and Mobile No. from user. Using
JavaScript validate for following,
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.
--Slip 2—
Savitribai Phule Pune University
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]
--Slip 3—
Savitribai Phule Pune University
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]
--Slip 4—
Savitribai Phule Pune University
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>
Write a PHP script to read ‘Employee.xml’ file contains (Empno, Empname, Salary,
Designation) and print employee details in tabular format.
[Note: Examiners can change xml file and give relevant data.]
[20]
[10]
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]
--Slip 6—
Savitribai Phule Pune University
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]
</BookStore> [20]
--Slip7—
Savitribai Phule Pune University
[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]
--Slip8—
Savitribai Phule Pune University
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]
Relationship between student and competition is many-many with attributes rank and
year.
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]
--Slip9—
Savitribai Phule Pune University
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
a)Triangle
b)Square
c)Circle
[20]
--Slip10—
Savitribai Phule Pune University
1. Write a PHP script to design a form to accept email from user and validate email
address using regular expression.
[10]
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.
[20]
--Slip12—
Savitribai Phule Pune University
1 Write a PHP script to check how many times the web page access.
[Use cookies]
[10]
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]
--Slip13—
Savitribai Phule Pune University
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]
--Slip14—
Savitribai Phule Pune University
[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]
--Slip15—
Savitribai Phule Pune University
[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]
--Slip16—
Savitribai Phule Pune University
[10]
2. Write a AJAX program to print Teacher information from PostgreSQL table Teacher.
[20]
--Slip17—
Savitribai Phule Pune University
[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]
--Slip18—
Savitribai Phule Pune University
1. Write a PHP script to design a form to accept email from user and validate email
address using regular expression.
[10]
--Slip19—
Savitribai Phule Pune University
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
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]
--Slip21—
Savitribai Phule Pune University
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]
--Slip22—
Savitribai Phule Pune University
1. Write a PHP script to check how many times the web page access.
[Use cookies] [10]
To
[20]
Subject
Message
Send Mail
--Slip23—
Savitribai Phule Pune University
[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]
--Slip24—
Savitribai Phule Pune University
--Slip25—