QB Css-Ii 24-25
QB Css-Ii 24-25
SANDIP POLYTECHNIC,NASHIK
Academic Year(2024-25)
Question bank for Unit Test–II
2 Marks Questions
Chapter – IV
1. State any two properties and methods of location object.
2. Give syntax of and explain the use of “with” statement/clause in JavaScript using suitable example.
3. Enlist and explain the use of any two Intrinsic JavaScript functions.
4. State and explain what is a session cookie ?
5. Differentiate between session cookies and persistent cookies.
6. State any two properties and methods of history object.
7. State any two properties and methods of location object.
8. state any four properties of Navigator object
Chapter – V
9. State the method to put message in web browser status bar?
10. Construct regular expression for validating the Aadhar Number in following format
11. Write a JavaScript to validate zip code (pin code) using regular expression.
(Rules: first 2 digits should start with 40-44)
12. Write a JavaScript function to check whether a given address is a valid IP address or not.
13. Write a JavaScript program to changing the contents of a window.
14. Write 4 attributes of <frameset> with meaning and example.
15. Write a JavaScript syntax to accessing elements of another child window.
Chapter – VI
16. Explain frameworks of JavaScript and its application.
17. Write a JavaScript program that create a scrolling text on the status line of a window. We can show a
18. Develop a JavaScript Program to Create Rotating Banner Ads with URL Links.
OR
Write a JavaScript program to link banner advertisements to different URLs.
19. List ways of protecting your web page and describe any one of them.
20. Explain preventDefault () with example.
21. Explain the term JavaScript URL
4 Marks
QuestionsChapter – IV
1. Describe, how to read cookie value and write a cookie value. Explain with example.
OR
Write a JavaScript program to create read, update and delete cookies.
OR
Describe, how to read cookie value and write a cookie value. Explain with example.
2. Write a webpage that displays a form that contains an input for students rollno and names user is
prompted to enter the input student rollno and name and rollno becomes value of the cookie.
3. Explain open() method of window object with syntax and example.
4. Write a JavaScript that creates a persistent cookies of Item names. Write appropriate HTML script for
the same.
OR
Explain how to create and read Persistent Cookies in JavaScript with example.
5. Write HTML Script that displays textboxes for accepting Name, middle name, Surname of the user
and a Submit button. Write proper JavaScript such that when the user clicks on submit button
a. alltexboxes must get disabled and change the color to “RED”. and with respective labels.
b. Constructs the mailID as <name>.<surname>@msbte.com and displays mail ID as message. (Ex. If
user enters Rajni as name and Pathak as surname mailID will be constructed as
[email protected])
6. Write a webpage that displays a form that contains an input for Username and password. User is
prompted to enter the input and password and password becomes value of the cookie. Write The
JavaScript function for storing the cookie . It gets executed when the password changes.
7. Write html code to design a 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
Chapter – V
8. State what is regular expression. Explain its meaning with the help of a suitable example.
9. Describe regular expression. Explain search () method used in regular expression with suitable
example.
10. Explain test() and exec() method of Regular Expression object with example.
11. Write a JavaScript program to validate email ID of the user using regular expression.
12. Write a JavaScript function to check whether a given value is valid IP value or not
13. Explain text rollover with suitable example.
14. Write a JavaScript program to create rollover effect for three images.
15. Write a JavaScript program to design HTML page with books information in tabular format, use
rollovers to display the discount information.
16. Write a java script that displays textboxes for accepting name & email ID & a submit button.
Write java script code such that when the user clicks on submit button
a. Name Validation
b. Email ID Validation.
17. Write a script for creating following frame 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.
OR
Write a script for creating following frame structure:
Frame 1 contains three button SPORT, MUSIC and DANCE that will perform following action:
When user clicks SPORT button, sport.html webpage will appear in Frame 2.
When user clicks MUSIC button, sport.html webpage will appear in Frame 3.
When user clicks DANCE button, sport.html webpage will appear in Frame 4.
Chapter – VI
18. Create a slideshow with the group of three images, also simulate next and previous transition
between slides in your Java Script.
19. Create a slideshow with the group of four images, also simulate the next and previous transition
between slides in your JavaScript.
20. Write a HTML script which displays 2 radio buttons to the users for fruits and vegetables and 1
option list. When user select fruits radio button option list should present only fruits names to the
user & when user select vegetable radio button option list should present only vegetable names to
the user.
21. Write HTML Script that displays dropdownlist containing options NewDelhi, Mumbai, Bangalore.
Write proper JavaScript such that when the user selects any options corresponding description of
about 20 words and image of the city appear in table which appears below on the same page.
22. Write a JavaScript to create option list containing list of images and then display images in new
window as per selection.
23. Write a JavaScript to create a pull-down menu with four options [AICTE, DTE,MSBTE, GOOGLE].
Once the user will select one of the options then user will be redirected to that site.
OR
Write a JavaScript to create a pull-down menu with three options [Google, MSBTE, Yahoo] once
the user will select one of the options then user will be redirected to that site.
24. Explain the steps to create floating menu and chain select menu