(CSS) 2023 Paper
(CSS) 2023 Paper
22519
3 Hours / 70 Marks Seat No.
Marks
1. Attempt any FIVE : 10
PRACTICALKIDA.COM
(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 :
PRACTICALKIDA.COM
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
PRACTICALKIDA.COM
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
PRACTICALKIDA.COM
Latte
Expression
(c) If “SOFT DRINK” option is selected dropdown list contains
MAAZA
SPRITE
COCA-COLA
(ii) List any three properties of regular expression objects and state their
use.
22232
22519
3 Hours / 70 Marks Seat No.
Marks
PRACTICALKIDA.COM
(b)
(c)
List the logical operators in JavaScript with description.
Write JavaScript to create a object “student” with properties roll number,
name, branch, year. Delete branch property and display remaining properties
of student object.
(d) Write a JavaScript that initializes an array called Colors with the names of 3
Colors and display the array elements.
(e) Explain calling a function with arguments in JavaScript with example.
(f) Enlist any four mouse events with their use.
(g) State any four properties of Navigator object.
[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.
PRACTICALKIDA.COM
(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
PRACTICALKIDA.COM
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
PRACTICALKIDA.COM
(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.
_______________