Internet Programming Slip Questions T.Y.B.Sc (CS)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 25

Internet Programming Slip Questions

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]

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.3
1.Write a PHP script, which 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 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]

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 4
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.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]
Slip5
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 xmlfile 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 SimpleXML)
[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 6
1. Write a JavaScript function to accept First Name and Last Name 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 7
1. Write a mean driven program 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.o’’ encoding=’’ ISO- 8859-1’’?>
<Book Store>
<Books>
<PHP>
<Title> Programming in PHP</Title>
<Publication> o’RELLY</Publication>
</PHP>
<PHP>
<Title> Beginners PHP</Title >
<Publication> WROX</ Publication>
</PHP>
</Books>
</Book Store> [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 8

1. Write a mean 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 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]
Slip 9

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.

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 has1st 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]
SLIP 10

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)

Display mean (Use radio button)

A] Triangle

B] Square

C] Circle

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


4.Networking Assignments (By Internal) [10]
5. Lab Book (Semester I and II [10]
6. Final Demo of Project before practical Examination (By Internal) [10]
SLIP 11
1. Write a PHP script to design a form to accept email from user and validate email
addressusing 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 3 NF for above and solve the following.
Using above databases Write a script in PHP which will
a) Insert Employee records and Department record into respective table.
b)Print a salary statement in the format given below, for a given Departmenta.
[Hint: Create a HTML form to accept Department name form user]
Maximum salary Minimum salary Sum salary

[use Postgre SQL] [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) [10]
6. Final Demo of Project before practical Examination (By Internal) [10]
SLIP 12
1. Write a PHP Script to keep track of times the pages has been access.
[Use Session]

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()]

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


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

1. Write a PHP script to check how many times the web pages 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 [10]
6. Final Demo of Project before practical Examination (By Internal) [10]
SLIP 14

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.

[Enter at least 3 records in contact .dat file]

[Note: Examinar 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 [10]
6. Final Demo of Project before practical Examination (By Internal) [10]
SLIP 15

1. Write a JavaScript function to accept first Name and Last Name from user.

Display users entered information.

[Hint: Use alert and prompt dialogbox]

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]

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


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

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 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]

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


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

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 changes 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 [10]
6. Final Demo of Project before practical Examination (By Internal) [10]
SLIP 18
1.Write a mean driven program to perfrom the following operations on an associative
array.
A] Display the elements os an array with key.
B] Display the size of an array. [10]

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]

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 NO 19

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] Displey 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]
SLIP NO 20

1. Write a PHP Script to accept Customer Name from user and the following

a) Transform Customer Name all Upper case letter.

b) Make First character o 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]
SLIP NO 21

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]

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 NO 22

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]

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 NO 23

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

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. NO. 24
1. Write a Java Script function to display Clock in the textbox. [10]

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]

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


[20]
4. Networking Assignment (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. NO. 25
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 opration
display array contents)
[10]

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]

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


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

You might also like