css que papers
css que papers
22519
3 Hours / 70 Marks Seat No.
Marks
(c) Write Java script to create person object with properties firstname, lastname,
age, eye color, delete eye color property and display remaining properties of
person object.
(d) Write a Java script that initializes an array called flowers with the names of 3
flowers. The script then displays array elements.
(f) Write a Java script to design a form to accept values for user ID & password.
(b) Explain prompt () and confirm () method of Java script with syntax and
example.
[1 of 4] P.T.O.
22519 [2 of 4]
(c) Write a Java script program which computes, the average marks of the
following students then, this average is used to determine the corresponding
grade.
StudentName Marks
Sumit 80
Kalpesh 77
Amit 88
Tejas 93
Abhishek 65
Range Grade
< 60 E
< 70 D
< 80 C
< 90 B
< 100 A
(d) Write the use of CharAt() and indexof() with syntax and example.
(b) Write a Java script that will replace following specified value with another
value in a string.
(c) Write a Java script code to display 5 elements of array in sorted order.
(d) Explain open () method of window object with syntax and example.
22519 [3 of 4]
4. Attempt any THREE of the following : 12
(b) List ways of protecting your web page and describe any one of them.
(c) Create a slideshow with the group of three images, also simulate next and
previous transition between slides in your Java script.
(e) Write a Java script to modify the status bar using on MouseOver and on
MouseOut with links. When the user moves his mouse over the link, it will
display “MSBTE” in the status bar. When the user moves his mouse away
from the link the status bar will display nothing.
(a) Write a HTML script which displays 2 radiobuttons to the users for fruits and
vegetable 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.
(b) Describe, how to read cookie value and write a cookie value. Explain with
example.
(c) 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
P.T.O.
22519 [4 of 4]
6. Attempt any TWO of the following : 12
(a) Describe how to evaluate checkbox selection. Explain with suitable example.
FRAME 1
FRAME 2 FRAME 3
FRUITS
FLOWERS
CITIES
(c) 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.
_________________
21222
22519
3 Hours / 70 Marks Seat No.
15 minutes extra for each hour
Marks
(c) Write a javascript program to check whether entered number is prime or not.
(i) onmouseup
(ii) onblur
[1 of 4] P.T.O.
22519 [2 of 4]
2. Attempt any THREE of the following : 12
(a) Write a javascript program to validate user accounts for multiple set of user
ID and password (using swith case statement).
(d) Design a webpage that displays a form that contains an input for user name
and password. User is prompted to enter the input user name and password
and password become value of the cookies. Write the javascript function for
storing the cookies.
(a) Write a javascript program to create read, update and delete cookies.
(c) Write a javascript program to calculate add, sub, multiplication and division
of two number (input from user). Form should contain two text boxes to input
numbers of four buttons for addition, subtraction, multiplication and division.
(d) State what is regular expression. Explain its meaning with the help of a
suitable example.
(b) Write a javascript function that accepts a string as a parameter and find the
length of the string.
(c) Write a javascript program to validate email ID of the user using regular
expression.
22519 [3 of 4]
(d) Write a javascript program to design HTML page with books information in
tabular format, use rollovers to display the discount information.
(e) List ways of protecting your webpage and describe any one of them.
(b) Develop javascript to convert the given character to unicode and vice-versa.
(c) 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.
(a) 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.
(b) Write a javascript to create option list containing list of images and then
display images in new window as per selection.
(c) Write a javascript function to generate Fibonacci series till user defined limit.
____________
P.T.O.
22519 [4 of 4]
12223
22519
3 Hours / 70 Marks Seat No.
Marks
[1 of 4] P.T.O.
22519 [2 of 4]
(c) Write a JavaScript program that will display list of student in ascending order
according to the marks & calculate the average performance of the class.
Amit 70
Sumit 78
Abhishek 71
(d) Write and explain a string functions for converting string to number and
number to string.
(b) Write a JavaScript function to check the first character of a string is uppercase
or not.
(c) Write a JavaScript function to merge two array & removes all duplicate
values.
(d) Write a JavaScript function that will open new window when the user will
clicks on the button.
(b) Write a JavaScript program that will create pull-down menu with three
options. Once the user will select the one of the options then user will
redirected to that website.
Pin Code
Submit
Chapter 2
Chapter 1 & Chapter 2 are linked to the webpage Ch1 HTML & Ch2.html
respectively. When user click on these links corresponding data appears in
FRAME3.
_______________
P.T.O.
22519 [4 of 4]
22232
22519
3 Hours / 70 Marks Seat No.
Marks
[1 of 4] P.T.O.
22519 [2 of 4]
(c) Write a JavaScript for loop that will iterate from 1 to 15. For each iteration, it
will check if the current number is odd or even and display a message to the
screen.
Sample Output :
“1 is odd”
“2 is even”
…………
………....
(d) Write the use of charCodeAt() and from CharCode() method with syntax and
example.
(a) Differentiate between push() and join() method of array object with respect to
use, syntax, return value and example.
(b) Write JavaScript code to perform following operations on string. (Use split()
method)
Display output as
(c) Explain splice() method of array object with syntax and example.
(d) Explain how to create and read Persistent Cookies in JavaScript with example.
22519 [3 of 4]
4. Attempt any THREE of the following : 12
(a) Explain test() and exec() method of Regular Expression object with example.
(b) List ways of protecting your web page and describe any one of them.
(c) Explain how to create and display Rotating Banner in JavaScript with
example.
(e) What is Status bar and how to display moving message on the status line of a
window using JavaScript ?
(a) 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
numbers and result will be displayed in result textbox.
(b) 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. (Use Timer methods)
(c) Write HTML code to design a form that displays textboxes for accepting
UserID and Aadhar No. and a 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 the UserID and Aadhar No. when the user clicks on SUBMIT
button.
P.T.O.
22519 [4 of 4]
6. Attempt any TWO of the following : 12
Frame 1 contains three buttons 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,music.html webpage will appear in Frame 3.
When user clicks DANCE button,dance.html webpage will appear in Frame 4.
FRAME 1
(Fig. 1)
(c) 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.
_______________
23124
22519
3 Hours / 70 Marks Seat No.
Marks
1. Attempt any FIVE : 10
(a) State meaning of each token of the following statement and describe it :
(i) ++a;
(ii) document. bgcolor;
(b) Write and explain syntax of prompt() method in JavaScript.
(c) List various assignment operators supported by JavaScript, explain any two
with the help of suitable example.
(d) Differentiate between shift() and push() methods of an Array object.
(e) State the meaning of “Defining a function”. Explain with the help of an
example.
(f) Give syntax of and explain the use of small “with” clause.
(g) With the help of suitable example explain the Date object and any two
methods of Date object.
[1 of 4] P.T.O.
22519 [2 of 4]
First Number :
Second Number :
The user enters two numbers in respective text boxes. Write a JavaScript such
that when user clicks “add”, a message box displays sum of two entered
numbers, if the user clicks on “sub”, message box displays subtraction of two
numbers and on clicking “mul” the message box displays multiplication of
two numbers.
(b) Write a JavaScript that accepts user’s first name and domain name of
organization from user. The JavaScript then forms email address as
<firstname@domain name> and displays the results in the browser window.
(c) Differentiate between substring() and substr() method of a string class. Give
suitable example of each.
(d) State what is a cookie ? Explain its need. State characteristics of persistent
cookies.
22519 [3 of 4]
Lenovo
HP Image
DELL
When the mouse moves over the specific brand name the script must display
the image of respective Laptop in the adjacent box.
(d) Give syntax of and explain the use of SetTime Out( ) function with the help of
suitable example.
(e) State the use of hiding the JavaScript. Explain the steps needed to accomplish
it and describe the process.
COFFEE
SOFT DRINK
(ii) List any three properties of regular expression objects and state their
use.
22519
23242
3 Hours / 70 Marks Seat No.
Marks
1.
Attempt any FIVE of the following: 10
a) Write features of JavaScript.
b) List and describe any four methods of Math object.
c) Write a JavaScript program that will print even numbers from
1 to 20.
d) Write a JavaScript program to display the elements of array in
ascending and descending order.
e) Give syntax of and explain function in JavaScript with suitable
example.
f) Enlist and explain any two mouse events.
g) Explain the term JavaScript URL.
P.T.O.
22519 [2]
Marks
2.
Attempt any THREE of the following: 12
a) State the use of Object, Method and Property in JavaScript.
b) Explain setter and getter properties in JavaScript with the help
of suitable example.
c) Write a JavaScript program to check whether a number is
positive, negative or zero using switch case.
d) State the use of following methods:
i) charCodeAt ( )
ii) fromCharCode ( )
3.
Attempt any THREE of the following: 12
a) Explain Associative arrays in detail.
b) Write a JavaScript function that checks whether a passed string
is palindrome or not.
c) Explain how to add and sort elements in array with suitable
example.
d) Explain the term browser location and history in details.
4.
Attempt any THREE of the following: 12
a) State what is frame? Explain how it can be created with suitable
example.
b) Explain the steps to create floating menu and chain select menu
c) Explain how to use banners for displaying advertisement.
d) Write a JavaScript function to check whether a given address
is a valid IP address or not.
e) Explain process to create status bar in JavaScript.
22519 [3]
Marks
5.
Attempt any TWO of the following: 12
a) Write HTML script that displays textboxes for accepting
username and password. Write proper JavaScript such that when
the user clicks on submit button
i) All textboxes must get disabled and change the color to
‘RED’ and with respective labels.
ii) Prompt the error message if the password is less than six
characters.
b) 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.
c) Write a JavaScript to create rollover effect that involves
text and images. When the user places his or her mouse
pointer over a book title, the corresponding book image
appears.
6.
Attempt any TWO of the following: 12
a) Explain following form control/elements with example
Button, Text, TextArea, Select Checkbox, Form.
b) Write a JavaScript for protecting web page by implementing
the following steps:
i) Hiding your source code
ii) Disabling the right MouseButton
iii) Hiding JavaScript
c) Develop a JavaScript to create rotating Banner Ads with URL
links.