0% found this document useful (0 votes)
80 views

3 Hours / 70 Marks: Seat No

The document provides instructions for a test with multiple choice and long answer questions on JavaScript. It includes 6 main questions, with 3-5 sub-questions each, covering JavaScript concepts like arrays, objects, functions, events, validation, and cookies.

Uploaded by

Shaikh Ebad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

3 Hours / 70 Marks: Seat No

The document provides instructions for a test with multiple choice and long answer questions on JavaScript. It includes 6 main questions, with 3-5 sub-questions each, covering JavaScript concepts like arrays, objects, functions, events, validation, and cookies.

Uploaded by

Shaikh Ebad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

11920

22519
3 Hours / 70 Marks Seat No.

Instructions : (1) All Questions are compulsory.


(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data, if necessary.
(5) Preferably, write the answers in sequential order.

Marks

1. Attempt any FIVE of the following : 10

(a) List any four features of Java script.

(b) List the comparison operators in Java script.

(c) Write Java script to create person object with properties firstname, lastname,
age, eye color, delete eye color property and display remaining properties of
person object.

(d) Write a Java script that initializes an array called flowers with the names of 3
flowers. The script then displays array elements.

(e) Write Java script to call function from HTML.

(f) Write a Java script to design a form to accept values for user ID & password.

(g) State any two properties and methods of location object.

2. Attempt any THREE of the following : 12


(a) Explain getter and setter properties in Java script with suitable example.

(b) Explain prompt () and confirm () method of Java script with syntax and
example.

[1 of 4] P.T.O.
22519 [2 of 4]
(c) Write a Java script program which computes, the average marks of the
following students then, this average is used to determine the corresponding
grade.

StudentName 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

(d) Write the use of CharAt() and indexof() with syntax and example.

3. Attempt any THREE of the following : 12


(a) Differentiate between concat () and join () methods of array object.

(b) Write a Java script that will replace following specified value with another
value in a string.

String = “ I will fail”

Replace “fail” by “pass”

(c) Write a Java script code to display 5 elements of array in sorted order.

(d) Explain open () method of window object with syntax and example.
22519 [3 of 4]
4. Attempt any THREE of the following : 12

(a) Describe regular expression. Explain search () method used in regular


expression with suitable example.

(b) List ways of protecting your web page and describe any one of them.

(c) Create a slideshow with the group of three images, also simulate next and
previous transition between slides in your Java script.

(d) Explain text rollover with suitable example.

(e) 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 link, it will
display “MSBTE” in the status bar. When the user moves his mouse away
from the link the status bar will display nothing.

5. Attempt any TWO of the following : 12

(a) Write a HTML script which displays 2 radiobuttons to the users for fruits and
vegetable 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.

(b) Describe, how to read cookie value and write a cookie value. Explain with
example.

(c) 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

P.T.O.
22519 [4 of 4]
6. Attempt any TWO of the following : 12

(a) Describe how to evaluate checkbox selection. Explain with suitable example.

(b) Write a script for creating following frame structure

FRAME 1

FRAME 2 FRAME 3

 FRUITS

 FLOWERS

 CITIES

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.

(c) 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.

_________________
21222
22519
3 Hours / 70 Marks Seat No.
15 minutes extra for each hour

Instructions : (1) All Questions are compulsory.

(2) Answer each next main Question on a new page.

(3) Illustrate your answers with neat sketches wherever necessary.

(4) Figures to the right indicate full marks.

(5) Assume suitable data, if necessary.

(6) Mobile Phone, Pager and any other Electronic Communication


devices are not permissible in Examination Hall.

Marks

1. Attempt any FIVE of the following : 10

(a) State the features of Javascript.

(b) Differentiate between bession cookies and persistent cookies.

(c) Write a javascript program to check whether entered number is prime or not.

(d) Explain following form events :

(i) onmouseup

(ii) onblur

(e) Write a javascript program to changing the contents of a window.

(f) Explain frame works of javascript and its application.

(g) Write a javascript syntax to accessing elements of another child window.

[1 of 4] P.T.O.
22519 [2 of 4]
2. Attempt any THREE of the following : 12

(a) Write a javascript program to validate user accounts for multiple set of user
ID and password (using swith case statement).

(b) Differentiate between concat() and join() methods of array object.

(c) Write a javascript program to demonstrate java intrinsic function.

(d) 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.

3. Attempt any THREE of the following : 12

(a) Write a javascript program to create read, update and delete cookies.

(b) Write a javascript program to link banner advertisements to different URLs.

(c) 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.

(d) State what is regular expression. Explain its meaning with the help of a
suitable example.

4. Attempt any THREE of the following : 12

(a) Differentiate between For-loop and For-in loop.

(b) Write a javascript function that accepts a string as a parameter and find the
length of the string.

(c) Write a javascript program to validate email ID of the user using regular
expression.
22519 [3 of 4]
(d) Write a javascript program to design HTML page with books information in
tabular format, use rollovers to display the discount information.

(e) List ways of protecting your webpage and describe any one of them.

5. Attempt any TWO of the following : 12

(a) Write a javascript to checks whether a passed string is palindrome or not.

(b) Develop javascript to convert the given character to unicode and vice-versa.

(c) 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.

6. Attempt any TWO of the following : 12

(a) 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.

(b) Write a javascript to create option list containing list of images and then
display images in new window as per selection.

(c) Write a javascript function to generate Fibonacci series till user defined limit.

____________

P.T.O.
22519 [4 of 4]
12223
22519
3 Hours / 70 Marks Seat No.

Instructions : (1) All Questions are compulsory.


(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data, if necessary.
(5) Preferably, write the answers in sequential order.

Marks

1. Attempt any FIVE of the following : 10


(a) State the use of method in JavaScript with the help of suitable example.
(b) List & explain datatypes in JavaScript
(c) Write a simple calculator program using switch case in JavaScript.
(d) Write a program using sort method of array object.
(e) Describe property Getters & Setter.
(f) Enlist & explain the use of any two Intrinsic JavaScript functions.
(g) Describe browser location object.

2. Attempt any THREE of the following : 12


(a) Write a JavaScript program that will display current date in DD/MM/YYYY
format.
(b) Write a JavaScript program that will remove the duplicate element from an
array.

[1 of 4] P.T.O.
22519 [2 of 4]
(c) 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

(d) Write and explain a string functions for converting string to number and
number to string.

3. Attempt any THREE of the following : 12

(a) Differentiate between concat( ) & join( ) methods of array object.

(b) Write a JavaScript function to check the first character of a string is uppercase
or not.

(c) Write a JavaScript function to merge two array & removes all duplicate
values.

(d) Write a JavaScript function that will open new window when the user will
clicks on the button.

4. Attempt any THREE of the following : 12

(a) Describe text Rollover with the help of example.

(b) 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
redirected to that website.

(c) Describe Quantifiers with the help of example.

(d) Describe frameworks of JavaScript & its application.

(e) Describe how to link banner advertisement to URL with example.


22519 [3 of 4]
5. Attempt any TWO of the following : 12
(a) Write HTML script that will display following structure
Name

Email

Pin Code

Submit

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.
(b) Write a webpage that displays a form that contains an input for username &
password. User is prompted to entre the input & password & password
becomes the value of the cookie. Write a JavaScript function for storing the
cookie. It gets executed when the password changes.
(c) Write a JavaScript for creating following frame structure :
TYIF FRAME1
FRAME2 Operating System FRAME3
 Chapter 1

 Chapter 2

Chapter 1 & Chapter 2 are linked to the webpage Ch1 HTML & Ch2.html
respectively. When user click on these links corresponding data appears in
FRAME3.

6. Attempt any TWO of the following : 12


(a) Write HTML script that will display dropdown list containing options such as
Red, Green, Blue & Yellow. Write a JavaScript program such that when the
user selects any options. It will change the background colour of webpage.
(b) Develop a JavaScript program to create Rotating Banner Ads.
(c) Write a JavaScript for the folding tree menu.

_______________

P.T.O.
22519 [4 of 4]

You might also like