JavaScript Subject Question Paper
2. Attempt any THREE of the following:
a) Explain “switch-case” statement with its syntax, working and a suitable example.
b) Describe the term-getter and setter property with a suitable example.
c) Construct a JavaScript program, to find whether a given number is prime or not.
d) Describe different methods used to convert a string to the number with the help of its
syntax and example.
3. Attempt any THREE of the following:
a) Explain the significance of charCodeAt() and fromCharCode() methods with suitable
example.
b) Explain defining and calling a function with arguments using its syntax and example.
c) Develop a JavaScript program having an array of 5 integer elements then sort the
elements in their descending order and display them.
d) Describe any eight features of JavaScript.
4. Attempt any THREE of the following:
a) Demonstrate the use of non-explicit and explicit quantifiers used in regular
expression.
b) Describe any four frameworks of JavaScript.
c) Discuss the JavaScript code to disable the visitors right mouse button while the
browser displays your webpage.
d) Discuss the JavaScript code for calling a child windows JavaScript function.
e) List different technique to protect the web page and describe with example
concealing email address technique.