0% found this document useful (0 votes)
44 views5 pages

Client Side Scripting 4 Marks Ultra V.IMP - Questions

Uploaded by

saqibzuber813
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views5 pages

Client Side Scripting 4 Marks Ultra V.IMP - Questions

Uploaded by

saqibzuber813
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Client Side Scripting

Ultra V.IMP Questions


4 Marks

1. Explain getter and setter properties in Java script with suitable


example.
2. Explain prompt() and confirm() method of Java script with
syntax and example
3. Write a Java script program which computes, the average
marks of the following students then this average is used to
determine the corresponding grade.

Student Name Marks


Sumit 80
Kalpesh 77
Amit 88
Tejas 93
Abhishek 65

The grades are computed as follows:

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.

15. Write a JavaScript program to validate user accounts for


multiple set of user ID and Password (using switch case
statement).

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.

Student Name Marks


Amit 70
Sumit 78
Abhishek 71

28. Write and explain a String functions for converting string to


number and number to string.
29. Write a JavaScript function to check the first character of a
string is uppercase or not.
30. Write a JavaScript function to merge two array & removes all
duplicate values.
31. Write a JavaScript program that will create pull-down menu
with three option. Once the user will select the one of the
options then user will redirected to the website.
32. Describe frameworks of JavaScript & its application.

33. Explain Object creation in JavaScript using ‘new; keyword


with adding properties and methods with example
34. 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 diplay a message to the screen.
Sample Output :
“1 is odd”
“2 is even”
…………
………....
35. Write the use of
i) charCodeAt() and ii) fromCharCode()
method with syntax and example.
Page 4 of 5
36. Write JavaScript code to perform following operations on
string. (Use split() method)
Input String: “Sudha Narayana Murthy”
Display output as
First Name: Sudha
Middle Name: Narayana
Last Name: Murthy
37. Explain splice() method of array object with syntax and
example.
38. Explain how to create and read Persistent Cookies in
JavaScript with example.
39. State the use of Object, Method, and Properties in JavaScript
40. Write a JavaScript program to check whether a number is
positive, negative or zero using switch case.
41. Explain Associative arrays in detail.
42. Write a JavaScript function that checks whether a passed
string is palindrome or not
43. Explain how to add and sort elements in array with suitable
example
44. Explain the term browser location and history in details
45. State what is frame? Explain how it can be created with
suitable example.
46. Explain the steps to create floating menu and chain select
menu
47. Explain how to use banners for displaying advertisement
48. Write a JavaScript function to check whether a given address
is a valid IP address or not

Page 5 of 5

You might also like