2 Marks Questions
1.State the use of method in javascript with the help of suitable example.
2. List & Explain datatypes in JavaScript.
3. Write a simple calculator program using switch case in JavaScript.
4.Write a program using sort method of array object
5. Describe property Getters & Setters
6. Enlist & explain the use of any two Intrinsic JavaScript Functions
7. Describe browser location object.
8.List any four features of Java script
9. List the comparison operators in Java script
10. Write a Java script to create person object with properties firstname,
lastname, age, eyecolor,
Delete eyecolor property and display remaining properties of person object.
11. Write a Java script that initializes an array called flowers with the names
of 3 flowers. The
Script then displays array elements.
13. Write a Javascript to design a form to accept values for user ID &
password.
14. State any two properties and methods of location object.
15. Explain i>Object name ii> Property
16. What is operator? Which type of operators are used in Java script.
17. Write Java script to display current date and time.
18. Write a Java script to changing case of string
19.Explain Javascript method to find Unicode of a character
20. Explain following form control/elements with example. Button and
checkbox
21. State and explain what a session cookie is.
22. State the features of JavaScript
23. Differentiate between session cookies and persistent cookies.
24. Write a javascript program to check whether entered number is prime or
not
25. Explain following form events : (i) onmouseup (ii) onblur
26. Write a javascript program to changing the contents of a window.
27. Explain frame works of javascript and its application
28.Write a javascript syntax to accessing elements of another child window
4 Marks Questions
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. .
4.Write the use of chatAt() and indexof() with syntax and example
5.Differentiate between concat() and join() methods of array object
6. Write a JavaScript that will replace following specified value with another
value in 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. Explain open() method of window object with syntax and example
9. Describe regular expression. Explain search () method used in regular
expression with suitable Example
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 Java Script.
12. Explain text rollover with suitable example.
13. 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 links, it will display “MSBTE” in the
status bar. When the
User moves his mouse away from the link the status bar will display nothing
14. Write a JavaScript program that will display current date in DD/MM/YYYY
format
15. Write a JavaScript program that will remove the duplicate element from
an array
16.Write a JavaScript program that will display list of students in ascending
order according to the
Marks & calculate the average performance of the class.
17. Write and explain a string functions for converting string to number and
number to string…..54
18. Differentiate between concat( ) & join( ) methods of array object
19. Write a JavaScript function to check the first character of a string is
uppercase or not.
20.Write a JavaScript function to merge two array & removes all duplicate
values
21. Write a JavaScript function that will open new window when the user will
click on the button.
22. Describe text Rollover with the help of example
23. 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 re directed to that website
24. Describe Quantifiers with the help of example.
25. Describe frameworks of JavaScript & its application.
26. Describe how to link banner advertisement to URL with example.
27. Explain alert method in Java script with suitable example
28. Explain getter and setter properties in Java script with suitable example
29. Write a Javascript that displays the following properties of Math object.
30. Write a javascript function that concatenate the two strings.
31. Differentiate between concat() and join() methods of array object
32. Write a program to changing case of string.
33. How to add and sort elements in array? Explain with example
34. How to read and write cookie in javascript? Explain with example
35. How to finding non matching characters in regular expression? Explain
with suitable example.
36. What is status bar? How to create status bar in Javascript.
37. What is slideshow? Explain with example.
38. Describe how to replace text using Regular Expression with example
39. What is context menu? How to create it? Explain with example.
40. Write a javascript program to validate user accounts for multiple set of
user ID and password
(using swith case statement).
41. Differentiate between concat() and join() methods of array object
42.Write a javascript program to demonstrate java intrinsic function.
43. 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.
44. Write a javascript program to create read, update and delete cookies
45. Write a javascript program to link banner advertisements to different
URLs.
46. 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. .
47. State what is regular expression. Explain its meaning with the help of a
suitable example.
48. Differentiate between For-loop and For-in loop.
6 MARKS QUESTIONS
1. Write a HTML script which displays 2 radio buttons to the users for
fruits and vegetables 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.
2. Describe, how to read cookie value and write a cookie value. Explain
with example
3. 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 (1) Name Validation (2) Email ID Validation.
4.Describe how to evaluate checkbox selection. Explain with suitable
example.
5 .Write a script for creating following frame structure FRUITS, FLOWERS AND
CITIES are links to the webpage fruits.html, flowers.html, cities.html
respectively. When these links are clicked Corresponding data appears in
FRAME 3
4. 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
5. Write HTML script that will display following structure Write the
JavaScript code for below Operations: (1) Name, Email & Pin Code
should not be blank. (2) Pin Code must contain 6 digits & it Should not
be accept any characters.
8.Write 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 becomes the value of the Cookie. Write the JavaScript function
for storing the cookies. It gets executed when the password Changes
9. Write a JavaScript for creating following frame structure: Chapter 1 and
Chapter 2 are linked to The webpage Ch1.html and ch2.html respectively.
When user click on these links corresponding Data appears in FRAME3
10. Write HTML script that will display dropdown list containing options such
as Red, Green, Blue And Yellow. Write a JavaScript program such that when
the user selects any options. It will change The background colour of
webpage.
11. Develop a JavaScript program to create Rotating Banner Ads
12. Write a JavaScript for the folding tree menu.
13. Write a HTML script that displays textboxes for accepting emp id, name
and designation. Write Proper JavaScript such that when the user clocks the
submit button
i) All textboxes change the color to Blue
ii) Constructs mail id as <id><name>@yahoo.com and display mail
id.
14.Write a JavaScript for moving car using setTimeOut() and clearTimeOut()
method.
15. What is frame? How to create? Explain with example.
HTML frames are used to divide your browser window into multiple sections
where each Section can load a separate HTML document. A collection of
frames in the browser Window is known as a frameset. The window is divided
into frames in a similar way the Tables are organized: into rows and columns.
16.Describe how to change option list dynamically with the help of example.
17.Write a javascript to create rotating banner ads with URL links..
18. Write a Javascript to create menu using “folding tree menu”.
19. Write a javascript to checks whether a passed string is palindrome or not.
20. Develop javascript to convert the given character to unicode and vice-
versa.
21. 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.
22. 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.
23. Write a javascript to create option list containing list of images and then
display images in new Window as per selection.
24. Write a javascript function to generate Fibonacci series till user defined
limit