Internet Programming Slip Questions T.Y.B.Sc (CS)
Internet Programming Slip Questions T.Y.B.Sc (CS)
Internet Programming Slip Questions T.Y.B.Sc (CS)
T.Y.B.Sc(CS)
Slip No.1
1.Design HTML from,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 XML file ‘University.xml’. The elements details of ‘University.xml’.
<Uni>
<Uname>------------</Uname>
<City>-----------------</City>
<Rank>---------------</Rank>
</Univ>---------------</Rank>
a) Store the details of at least 3 Universitise.
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.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.2
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 Vowels 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]
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 record 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]
2. Write a script to create XML file as ‘Employee. Xml’. The element of this xmlfile are
as follows.
<Empdetails>
<Employee Empno= Empname= >
< Salary>----------------------</salary >
<Designation>----------------</ Designation>
</Employee>
</Empdetails>
Display the Bill in tabular format. Use Only 4 textboxes. [use explode]
[20]
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]
1. Create a HTML form 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 , _ name, type)
Relationship between student and competition is many- many with attributes rank and
year.
1. Write a Javascript to accept email address from user and count number of @
occurrences and number of Dot(.) occurrences.
2. Write a PHP script to creste a Class shape and its subclass triangle, square and circle
and display area of the selected shape .(Use the concept of Inheritance)
A] Triangle
B] Square
C] Circle
2. Write a mean 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()]
1. Write a PHP script to check how many times the web pages access.
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]
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 from when the user clicks on print button.
Contact. Dat file contain srno, name,residence number, mobile number, context/relation.
[Note: Examinar may change the contact . dat to emp.dat,dept.dat and provide proper
structure of the file]
[20]
1. Write a JavaScript function to accept first Name and Last Name from user.
2. Write a PHP program define Interface Shape which has two method as area() and
volume(). Define a constant PI.
Create a class Cylindrer which implement this interface and calculate area and volume.
[20]
2. Write a PHP program to read Flat file ‘Student. Dat’ that has student details as
rollno,name,ml.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]
Design a form to accept a string and check whether the given string is palindrome or not
2. Write a AJAX program to print Teacher information from PostgreSQL table Teacher.
2. Write a PHP Script to accept Employee details (Eno, Ename,Address) on first pages.
On second page accept earning (Basic, D.A HRA). On third page print Employee
information(Eno,Ename,Address,Basic, D.A HRA, Total)
[ Hint: Use Session] [20]
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 accept Customer Name from user and the following
2. Write a AJAX program to search student name according to the character typed and
display list using array.
[20]
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 perferences of your web page like font style, font,
size color , background color, using cookies.
Display selected setting on next web page actual implementation(with new setting) on
third page.
[20]
1. Write a PHP program to read two file names from user and append content of first file
into second file.
[10]
2. Write a PHP script to design a form to accept two string (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
large string.
[20]
1. Write a PHP script to check how many times the web page access.
[Use Cookies]
2. Write a PHP script to design a form to compose/ write an email with following details.
TO
SUBJECT
MESSAGE
2. Write a PHP Program to read Flat file ‘student.data’ that has student details as rollno,
name,ml.m2.m3 as marks of 3 subject .Display the data from the file in tabular
format.Also display total and percentage of each students.
[20]
2. Write AJAX program to print movie details by selecting an Actor’s name. Create
tables Movieand Actorwith 1: M cardinality as follows.
[20]
Movie (mno,mname.release_year)
Actor (ano , aname)
[use Postgre SOL]