Css Practical Answers

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

CSS Practical Exam Programs:

1.Develop a Javascript to create Rotating Banner Ads.


Ans:

Output:
2.Write a javascript to create a pull-down menu with three options [Google,
MSBTE, AICTE] once the user selects one of the options then user will be redirected to that site.
Ans:

Output:
3. Write a program to design form that displays two buttons start and stop. Write a javascript code such that
when user clicks on start button, real time digital clock will be displayed on screen. When user clicks on stop
button, clock will stop displaying time. (User Timer methods)
Ans:

Output:
4. Write a javascript to create option list containing list of images and then display images in new window as
per selection.
Ans:

Output:
5. Write a HTML script that displays textboxes for accepting emp id, name and designation. Write proper
JavaScript such that when the user clocks the submit button
i) all textboxes change the color to Blue
ii) constructs mail id as <id><name>@yahoo.com and display mail id.
Ans:

Output:
6. Write a javscript for folding tree menu.
Ans:

Output:
7. Write html code to design form that displays textboxes for accepting userID and Aadhar no. and submit
button. UserID should contain 10 alphanumeric characters and must start with capital letter. Aadhar no.
should contain 12 digits in the format nnnn nnnn nnnn. Write javascript code to validate userID and Aadhar
no. when the user clicks on submit button.
Ans:

Output:
8. Write a javascript program to create a silde show with the group of six images, also simulate the next and
previous transition between slides in your javascript.
Ans:

Output:
9. Write a program to create a context menu.
Ans:

Output:
10. Write HTML script that will display a dropdown list containing options such as Red, Green, Blue and
Yellow. Write a JavaScript program such that when the user selects any options. It will change the
background colour of webpage.
Ans

Output:
11. Write a javascript for the following structure.

FRUITS, FLOWERS AND CITIES are links to the webpage fruits.html,


flowers.html, cities.html respectively. When these links are clicked
corresponding data appears in FRAME 3.
Ans:

12. Write HTML code to design a form that displays two textboxes for accepting two numbers, one textbox
for accepting result and two buttons as ADDITION and SUBTRACTION. Write proper JavaScript such that
when the user clicks on any one of the button, respective operation will be performed on two nubers and
result will be displayed in result textbox.
Ans:

Output:
13. Write a javascript to open a new window and the new window is having two frames. One frame
containing buthon as “click here !”, and after clicking this button an image should open in the second frame
of that child window.
Ans:

14. Write a javascript to checks whether a passed string is palindrome or not.


Ans:

Output:
15. Write a program to display two radio buttons (fruits and vegetables).When user will select the fruits
radio button, the option list should present only the fruits names to user and when user will select the
vegetable radio button, the option list should present only the vegetable names to user so that user can
select an appropriate element of interest.

Ans:
16. Write a javascript to create the following structure

Chapter 1 and chapter 2 are linked to the webpage chapter1.html and chapter2.html. When user clicks on
the links corresponding data appears in frame 3.

Ans:

17. Write a program to evaluate checkbox selection.

Ans:

Output:
18. Write a program to create and read persistent cookies.

Ans:

Output:
19. Write a javascript to create rotating banner ads with URL links..
Ans:

Output:

20. Write a program that displays textboxes for accepting name and email Id and a submit button. Write a
javascript code such that when user click on the submit button the information is validated.
(1) Name validation

(2) Email validation

Ans:

Output:

You might also like