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

1.

Make a static page holding for an event using HTML and CSS programing
People who are interested in attending the event create a register button for
them. Mention different links for speaker, venue and schedule at the top in
the header section. Describe the purpose of the event or the category of
people who can get benefit from this. Add an introduction and images of the
speaker, venue detail and the main purpose of the event on your webpage.
Use proper background colour that can go well with each other for various
sections. Choose a descent font style and font colour that matches the theme
of your web page.

2. Write a JavaScript function which says whether a number is perfect.  In


number theory, a perfect number is a number that is half the sum of all of its
positive divisors (including itself). If it is a perfect number use an alert window
to display the message.
Example : The first perfect number is 6, because 1, 2, and 3 are its proper
positive divisors, and 1 + 2 + 3 = 6. Equivalently, the number 6 is equal to half
the sum of all its positive divisors: ( 1 + 2 + 3 + 6 ) / 2 = 6. The next perfect
number is 28 = 1 + 2 + 4 + 7 + 14. This is followed by the perfect numbers 496
and 8128.

3. Write a JavaScript for loop that will iterate from 0 to 15. For each iteration, it
will check if the current number is odd or even, and display a popup message
to the screen. Initially ask a question whether user is ready to start the
program, If user inputted a ‘yes’ through the prompt start printing the output.
Sample Output :
"0 is even"
"1 is odd"
"2 is even"
----------
----------

4. Write a JavaScript program using Array object, that will display a alert
message 1 if the array is sorted in ascending order, -1 if it is sorted in
descending order or 0 if it is not sorted. Enter the array from user side.

5. Write a JavaScript function to display the first ‘N’ Hamming numbers (enter
the value for N as user input using prompt).  Hamming Numbers are numbers
whose only prime factors are 2, 3 and 5.
6. Create a HTML form to enter the details and salary of employee
(Name,deptment,designation,salary etc), when clicking on “enter salary “
button, display the employee details in a table using java script and event
handler.

7. Make a webpage for music lovers Using HTML programing. Add a suitable
background color and image describing the purpose. Add different menus like
songs available,shoping albums,nearby stores,career and contact details.
Use internal linking property to access the details under each menu. Also
add other features on your webpage such as gift cards or subscription.  

8. Create a personal profile using HTML form, having photo, name, address,
email, phone, sex, qualification, occupation etc (use text box, text area, radio
buttons, check box etc ). write a javascript code to display a “successfully
entered” message on popup window while submission using event handler.

9. Write a JavaScript program which compute, the total and Average mark of the
following student A, this average is used to determine the corresponding grade
of the student A and display the Grade using alert window.The subjects are
English, Malayalam, Maths, Social and Science. User can enter the marks for
the subjects using prompt.

The grades are computed as follows :

Range Grade

<60 F

<70 D

<80 C

<90 B

<100 A

You might also like