Client Side Scripting 4 Marks Ultra V.IMP - Questions
Client Side Scripting 4 Marks Ultra V.IMP - Questions
Range Grade
< 60 E
< 70 D
< 80 C
< 90 B
< 100 A
Page 1 of 5
4. Write the use of CharAt() and indexOf() with syntax and
example.
5. Explain the differences between the push(), join(), and concat()
methods of the Array object, focusing on their syntax, usage,
and return values, with suitable examples.
6. Write a Java script that will replace following specified value
with another value in a string
String = “I will fail”
Replace “fail” by “pass”
7. Write a Java script code to display 5 elements of array in sorted
order.
8. Describe the open() method of the window object with syntax
and an example. Also, write a JavaScript function that will open
a new window when the user clicks on a button.
9. What is a regular expression, and what is its purpose in
JavaScript? Illustrate with an example. Discuss the concept of
quantifiers in regex with examples. Additionally, explain the
test() and exec() methods of the Regular Expression object in
JavaScript, and demonstrate their use with suitable examples.
10. List ways of protecting your web page and describe any one of
them
11. Create a slideshow with the group of three images, also
simulate next and previous transition between slides in your
JavaScript.
12. Explain text and image rollover with suitable example
13. What is a status bar in JavaScript, and how can it be used to
display messages? Explain the process of creating a status bar
and demonstrate how to display a moving message on the
status line of a browser window using JavaScript
14. Write a JavaScript program to modify the status bar using
onmouseover and onmouseout events. For example, display
"MSBTE" in the status bar when the user hovers over a link,
and clear the message when the user moves the mouse away.
Page 2 of 5
16. Write a JavaScript program to demonstrate java intrinsic
functions.
17. Design a webpage that displays a from 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.
18. Write a JavaScript Program to create read, update and delete
cookies.
19. Explain how to create a rotating banner in JavaScript,
including the process of linking banner advertisements to
different URLs. Provide an example JavaScript program to
implement a rotating banner with clickable advertisements
leading to various URLs.
20. 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.
21. Differentiate between For-loop and For-in loop.
22. Write a JavaScript function that accepts a string as a
parameter and find the length of the string.
23. Write a JavaScript program to validate email ID of the user
using regular expression.
24. Write a JavaScript program to design HTML page with books
information in tabular format, use rollovers to display the
discount information.
Page 3 of 5
25. Write a JavaScript program that will display current date in
DD/MM/YYYY format.
26. Write a JavaScript program that will remove the duplicate
element from an array.
27. Write a JavaScript program that will display list of student in
ascending order according to the marks & calculate the average
performance of the class.
Page 5 of 5