CSS Assingment 5
CSS Assingment 5
1. State what is a regular expression? Explain its meaning with the help of a suitable
example.
2. Write a webpage that accepts Username and adharcard as input texts. When the
user enters adhaarcard number ,the JavaScript validates card number and diplays
whether card number is valid or not. (Assume valid adhaar card format to be
nnnn.nnnn.nnnn or nnnn-nnnn-nnnn).
3. Write a script for creating following frame structure :
FRAME1
FRAME2 FRAME3
FRUITS
FLOWERS
CITIES
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
“FRAME3”.
4. Design the frameset tag for following frame layout :
5. FRAME1
6. FRAME2
7. FRAME3
8. Construct regular expression for validating the phone number in following format
only : (nnn)-nnnn-nnnn OR nnn.nnnn.nnnn
9. Write a JavaScript program to create rollover effect for three images.
10. Write a JavaScript that accepts a string and searches for the pattern “MSBTE”
in the given string using regular expressions. If the pattern is found, JavaScript
will display that “Pattern is found” else display “Pattern is not found”.
11. Design frameset tag for representing following layout :
Frame 1
12. List any three properties of regular expression objects and state their use.
13. Explain test() and exec() method of Regular Expression object with example.
14. Explain text and image rollover with suitable example.
15. Describe regular expression. Explain search () method used in regular
expression with suitable example.