0% found this document useful (0 votes)
65 views

Practical-List-Html Js PHP SQL - Comp Sci

Uploaded by

havena1210
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Practical-List-Html Js PHP SQL - Comp Sci

Uploaded by

havena1210
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

COMPUTER SCIENCE

Web Applications
(HTML , JavaScript , PHP )
Level 1
1. Design a simple and attractive web page for Kerala Tourism. It should
contain features like background colour/image, headings, text formatting
and font tags, images, etc.

2. Design a web page for


promoting vegetable cultivation
at homes as shown in the figure.
It should contain features like
background colour/ image,
headings and stylish fonts,
images, marquee, etc.

(you can include any picture


and any content as shown in
the picture)

3. Design a web page about


atmosphere as shown below. It
should contain features like
background colour/image,
headings and stylish fonts,
images, etc.

Content in the picture to be included in the code

Composition of Atmosphere
Air is mainly composed of nitrogen, oxygen and argon, which together
constitute the major gases of the atmosphere. Water vapour accounts for roughly
0.25% of the atmosphere by mass.

The Composition of atmosphere are :


Nitrogen – N2 – 78.08
Oxygen – O2 – 20.95
Argon - Ar - 0.93
Carbon dioxide – CO2 – 3.97 x 10-2
4. Design a web page as shown below using appropriate list tags.

List of Nobel Laureates from India


Rabindra Nath Tagore
He was the first to get Nobel Prize from India. He received prize
in literature in 1921. He got Nobel Prize for his collection of
poems “Gitanjali”.
C V Raman
He got Nobel for Physics in 1930. He received Nobel Prize for
his contribution called Raman Effect.
Mother Teresa
Mother Teresa who founded Missionaries of Charity which is
active in more than 100 countries received Nobel Prize in 1979.
Amartya Sen
Amartya Sen was awarded Nobel Prize in 1998 in Economics.
He has made contributions to welfare economics, social choice
theory etc.
Kailash Satyarthi
He is a child right activist who founded “Bachpan Bachao
Andolan” in 1980. He shared Nobel prize for peace in 2014.

5. Design a Webpage as shown


below using appropriate list tags
Wild life Sanctuaries in Kerala
 Iravikulam
 Muthanga
 Kadalundi

6. Design a Webpage having a list


as shown below

Covid 19 Protocol
1. Wash your hands using soap
2. Wear mask covering nose and mouth
3. Keep Social Distance
4. Sanitise your hands frequently

7. Design a web page showing


tourist destinations in Kerala as shown
below.
Department of Tourism
Government of Kerala
TOURIST DESTINATIONS IN KERALA
1. Beaches
a. Kovalam
b. Muzhuppilangad
c. Kappad
2. Hill Stations
i. Munnar
ii. Wayanad
iii. Gavi
3. Wildlife
a. Iravikulam
b. Muthanga
c. Kadalundi

8. Design an attractive web page showing the following list.


Graduate Level Courses in Leading Institutions in Kerala
• Indian Institute of Technology, Palakkad
- B.Tech.
• National Institute of Technology, Calicut
- B.Tech.
- B.Arch.
• Indian Institute of Science Education and Research,
Thiruvananthapuram
- BS-MS Dual Degree
• National University of Advanced Legal Studies, Kochi
- B.A. LL.B. (Hons.)
• Indian Institute of Space Science and Technology
- B.Tech. (Aerospace Engineering, Avionics)
- Dual Degree (B.Tech. + M.S./M.Tech.)

-
9. Design a personal web page for your friend. It should have a link to his
e-mail address.
10. Design a simple webpage about your school. Create another webpage
named address.htm containing the school address. Give links from school
page to address.htm.
11. Design an attractive web page about India. Provide details about the
Indian freedom movement at the lower part of the web page. Also create
another web page containing the list of states in India, named 'states.htm'.
Create two links in the main web page - one to link to the bottom of the web
page where details about freedom movement is given and another to the web
page 'states.htm'.
12. Design a web page containing a table as shown below.
Terrestrial Planets (Source: NASA)
Planet Day Length Year Length
(In Earth hours) (In Earth days)

Mercury 1408 88
Venus 5832 224.7
Earth 24 365.26
Mars 25 687

13. Design the following catalogue of products for an IT shop using HTML.
Laser Printer
Model: Canon LBP 2900
Price: Rs. 6500
Scanner
Model: HP Scanjet G2410
Price: Rs. 3800
Monitor
Model: LG 22MP67VQ
Price: Rs. 10500
Keyboard & Mouse Combo
Model: Logitech MK200 USB
Price: Rs. 950

14. Design a webpage containing frames that divide the screen vertically in
the ratio 50:50. Design two web pages – one containing the list of Indian
cricket team members and the second page containing a list of Indian football
team members.

15. Design a simple web page as shown below.


Client Login
Enter User Name

Enter your Password

Submit Clear

16. Consider that your school is hosting an inter-school IT fair. Design a


form webpage that contains a form for accepting registrations. The form page
should contain facility to enter school name, user name,
password and a mobile phone number. It should also contain buttons for
saving and clearing the data entered.

17. Design an HTML form to accept the Curriculum Vita of a job applicant.
The form should provide facility to accept name, address in multiple lines,
gender using option button, nationality using a list box and hobbies using
check boxes. The form should provide buttons to save and clear the contents
of text boxes.

JAVASCRIPT

18. Develop a web page with two text boxes and a button labelled “Show”.
The user can enter a number in the first text box. On clicking the button,
the second text box should display the sum of all numbers up to the
given number. Write the required JavaScript.
19. A web page should contain one text box for entering a text. There
should be two buttons labelled “To Upper Case” and “To Lower Case”.
On clicking each button, the content in the text box should be converted
to upper case or lower case accordingly. Write the required JavaScript
for these operations.

20. Develop a webpage with two text boxes and a button labelled “Show”.
The user can enter a number in the first text box. One clicking the
button, the second text box should display the day corresponding to the
given number using switch statement in JavaScript. (1 – Sunday, 2 –
Monday, ….., 7 – Saturday)
21. Develop a webpage for the inter-school IT fair conducted by your
school. The webpage should contain facility to enter school name, user
name, password and a mobile phone number. It should also contain
buttons for saving and clearing the data entered. Ensure that the data is
entered in all the text boxes and the text box for mobile phone number
contains only numbers. Write JavaScript for this validation.

22. Develop a web page with two text boxes and a button labelled "Show".
The user can enter a number in the first text box. One clicking the
button, the second text box should display whether the number is prime
or not. Write the required JavaScript.
23. Develop a web page containing a two text boxes for entering User name
and Password. There should be a login button also. On clicking the login
button, it should check the followings.
The user name should contain at least 10 characters and all the letters
should be in lower cases.
The password should contain at least 7 characters and should contain
at least one lower case letter, one upper case letter and a digit.

PHP
24. Write a PHP program to accept the total sales of a particular salesman
and display commission. If the monthly sales amount is greater than 1 lakh -
commission is 10%, if it is between 1 lakh and 1.5 lakh - commission is 12%
and if it is greater than 1.5 lakh - commission is 15%.
25. Write a PHP program to accept a number and display it in the following
format. If 5 is the given, then the output will be as follows:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
26. Write a data entry program in PHP which accepts the details of students
like register number, name, age, sex and group (Commerce, Science, and
Humanities) and stores it in a database.

27. Write a PHP program to accept a string and display in a table format the
(a) Total number of characters (b) Count of each vowel.
28. Write a PHP program to find the factorial of a given number after
accepting the number through a form. The factorial should be calculated
using a function named fact().
29. Write a PHP program to accept a product category and display the
details of all products under that category in a table format. (The details
of products are to be stored in a table in a database and accessed from
the PHP program).

30. Write a PHP program to accept a number and display its multiplication
table up to 12 in a neat table format.
31. Write a PHP program to select a country from combo box and display its
capital. (Country and capital may be stored in an associative array.)
32. Write a PHP program to accept User Id and password and check
whether it is valid or not. If it is correct then display the message
"Successfully Logged In" else display the message "Invalid User Id or
Password". (The User Id and password are to be stored in a table in a
database and accessed from the PHP program.)

COMPUTER SCIENCE & COMPUTER APPLICATIONS


SQL
1. Create a table Student with the following fields and insert at least 5
records into the table except for the column Total.
Roll_Number Integer Primary key
Name Varchar (25)
Batch Varchar (15)
Mark1 Integer
Mark2 Integer
Mark3 Integer
Total Integer
a) Update the column Total with the sum of Mark1, Mark2 and Mark3.
b) List the details of students in Commerce batch.
c) Display the name and total marks of students who are failed (Total < 90).
d) Display the name and batch of those students who scored 90 or more in Mark1
and Mark2.
e) Delete the student who scored below 30 in Mark3.
f) List the details of students in Science batch in the ascending order of eir names.
g) Display the highest Total in Humanities batch.
h) List the details of students who passed (Subject minimum is 30 and aggregate
minimum is 90) the course.
i) Delete the students of Commerce batch who failed in any one subject.
j) Add a new column Average to the table Student.
k) Update the column Average with average marks.
l) List the details of student who has the highest Total.
m) Delete the students of Commerce batch who failed in any two subjects.

2. Create a table Employee with the following fields and insert at least 5
records into the table except the column Gross_pay and DA.
Emp_code Integer Primary key
Emp_name Varchar (20)
Designation Varchar (25)
Department Varchar (25)
Basic Decimal (10,2)
DA Decimal (10,2)
Gross_pay Decimal (10,2)
a. Update DA with 75% of Basic.
b. Display the details of employees in Purchase, Sales and HR departments.
c. Update the Gross_pay with the sum of Basic and DA.
d. Display the details of employee with gross pay below 10000.
e. Delete all the clerks from the table.
f. Update DA with 75% of Basic for Managers and 80% Basic for all other
employees.
g. Display the details of employees in Purchase, Sales and HR departments in
descending order of Gross pay.
h. Find the number of employees in Accounts department.
i. Delete the details of clerks whose Gross pay is below 5000.
j. jDisplay name, department and gross pay of employees in Purchase, Sales and
HR departments. The employees in the same department should appear together
in the ascending order of Gross pay.
k. Find the number of employees in each department where there is minimum of 5
employees.
l. Show the details of employee with Gross pay greater than the average gross pay.

3. Create a table Stock, which stores daily sales of items in a shop, with the
following fields and insert at least 10 records into the table.
Item_code Integer Primary key
Item_name Varchar (20)
Manufacturer_Code Varchar (5)
Qty Integer
Unit_Price Decimal (10,2)
Exp_Date Date
a. Display the details of items which expire on 31/3/2016.
b. Display the item names with stock zero.
c. Remove the items which expire on 31/12/2015.
d. Increase the unit price of all items by 10%.
e. List the items manufactured by "ABC & Co" with quantity above 100.
f. Display the details of items which expire after 31/3/2016 in the order of expiry
date.
g. Find the number of items manufactured by the company "SATA".
h. Remove the items which expire between 31/12/2015 and 01/06/ 2016.
i. Add a new column named Reorder in the table to store the reorder level of items.
j. Update the column Reorder with value obtained by deducting 10% of the current
stock.
k. Display the number of items manufactured by each company which expire after
31/3/2016.
l. Display the details of items which expire at last.
m. M. Remove the items which expire before 01/03/2015 or that are manufactured
by "ABC & Co".

4. Create a table Book with the following fields and insert at least 5
records into the table.
Book_ID Integer Primary key
Book_Name Varchar (20)
Author_Name Varchar (25)
Pub_Name Varchar (25)
Price Decimal (10,2)
a. Display the details of books with price 100 or more.
b. Display the Name of all the books published by SCERT.
c. Increase the price of the books by 10% which are published by
SCERT.
d. List the details of books with the title containing the word "Programming" at the
end.
e. Remove all the books written by "Balaguruswamy".
f. Insert a column named Number_of_pages into the table.
g. Display the details of books of the same author together in the h. descending
order of the price published by NCERT.
h. Display the average price of books published by "BPB" and written by "Robert
Lafore".
i. List the details of books published by "PHI" that contains the word
"Programming" in the title.
j. Remove all the books written by "Balaguruswamy", "Kanetkar" or "Robert
Lafore".
k. Create a view containing the details of books published by SCERT.
l. Display the average price of books published by each publisher.
m. Display the details of book with the highest price.
n. Display the publisher and number of books of each publisher in the descending
order of the count.
o. Display the title, current price and the price after a discount of 10% in the
alphabetical order of book title.

5. Create a table Bank with the following fields and insert at least 5
records into the table.
Acc_No Integer Primary key
Acc_Name Varchar (20)
Branch_Name Varchar (25)
Acc_ Type Varchar (10)
Amount Decimal (10,2)
a) Display the account details of "Savings Account" in Kodungallur branch.
b) Change the branch name "Trivandrum" to "Thiruvananthapuram".
c) Display the details of customers in Thiruvananthapuram, Ernakulam and
Kozhikode.
d) List the details of customers in Thrissur branch having a minimum balance of
Rs. 5000.
e) Delete all the current accounts in Mahe branch.
f) Display the branch-wise details of account holders in the ascending order of the
amount.
g) Insert a new column named Minimum_Amount into the table with default value
1000.
h) Update the Minimum_Amount column with the value 1000 for the customers in
branches other than Alappuzha and Malappuram.
i) Find the number of customers who do not have the minimum amount 1000.
j) Remove the details of SB accounts from Thiruvananthapuram branch who have
zero (0) balance in their account.
k) Display the number and total amount of all the account holders in each branch.
l) Display the number of Savings Bank account holders in each branch.
m) Display the details of customers with the lowest balance amount.
n) Display the branch and number of Current accounts in the descending order of
the count.
o) Display the details of customers in Kozhikode branch whose amount is greater
the average amount.

You might also like