22519 - -Sample-question-paper-Clint Side Scripting Language (Elective) I Scheme 5th Semester Computer MSBTE Sample Paper
Scheme – I
Question Paper Profile
Program Code : CO / CM
/ CW / IF
Semester : Fifth
Course Title : Clint Side Scripting Language (Elective)
Marks
:
70 Time: 3 Hrs.
Q.1)
Attempt any FIVE of the following. 10
Marks
a)
State the use of dot syntax in JavaScript with
the help of suitable example.
b)
List and explain Logical operators in
JavaScript.
c)
Write a JavaScript that identifies a running
browser.
d) Write
a JavaScript that initializes an array called “Fruits” with names of five
fruits. The script then displays the array in a message box.
e) Give
syntax of and explain the use of “with” statement/clause in JavaScript using
suitable example.
f)
Enlist and explain the use of any two Intrinsic
JavaScript functions.
g)
State and explain what is a session cookie
?
Q.2)
Attempt any THREE of the following. 12
Marks
a) Write
syntax of and explain prompt method in JavaScript with the help of suitable
example.
b) Write
a JavaScript program which compute, the average marks of the following students
Then, this average is used to determine the corresponding grade.
The grades
are computed as follows :
Range
|
Grade
|
<60
|
F
|
<70
|
D
|
<80
|
C
|
<90
|
B
|
<100
|
A
|
c) Write
a JavaScript that displays all properties of window object. Explain the code .
d) Write
a JavaScript function that checks whether a passed string is palindrome or
not.
Q.3)
Attempt any THREE of the following. 12
Marks
a) Differentiate
between concat() and join() methods of array object.
b) Write
a JavaScript function to count the number of vowels in a given string.
c) Write
a JavaScript that find and displays number of
duplicate values in an array.
d) Write
a function that prompts the user for a color and uses what they select to set
the background color of the new webpage opened .
Q.4)
Attempt any THREE of the following. 12
Marks
a) State
what is a regular expression? Explain its meaning with the help of a suitable
example.
b) Write
a webpage that accepts Username and adharcard as input texts. When the user
enters adhaarcard number ,the JavaScript validates card number and diplays
whether card number is valid or not. (Assume valid adhaar card format to be
nnnn.nnnn.nnnn or nnnn-nnnn-nnnn).
c) Write
the syntax of and explain use of following methods of JavaScript Timing Event.
a. setTimeout()
b. setInterval()
d) Develop
JavaScript to convert the given character to Unicode and vice versa.
e) List
ways of Protecting your webpage and describe any one of them.
Q.5)
Attempt any TWO of the following. 12
Marks
a) Write
HTML Script that displays textboxes for accepting Name, middlename, Surname of
the user and a Submit button. Write
proper JavaScript such that when the user clicks on submit button
i)
all texboxes must get disabled and change the
color to “RED”. and with respective labels.
ii)
Constructs the mailID as
<name>.<surname>@msbte.com and displays mail ID as message. (Ex. If
user enters Rajni as name and Pathak as surname mailID will be constructed as
rajni.pathak@msbte.com) .
b) Write
a webpage that diplays a form that contains an input for Username and password.
User is prompted to enter the input and password and password becomes value of
the cookie. Write The JavaScript function for storing the cookie . It gets
executed when the password changes.
c) Write
a script for creating following frame structure :
FRAME1
|
||
FRAME2
• FRUITS
• FLOWERS
• CITIES
|
FRAME3
|
|
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 “FRAME3”.
Q.6)
Attempt any TWO of the following. 12
Marks
a) Write
HTML Script that displays dropdownlist containing options NewDelhi, Mumbai,
Bangalore. Write proper JavaScript such that when the user selects any options
corresponding description of about 20 words and image of the city appear in
table which appears below on the same page.
b) Develop
a JavaScript Program to Create Rotating Banner Ads with URL Links.
c) Create
a slideshow with the group of four images, also simulate the next and previous
transition between slides in your JavaScript.
Comments
Post a Comment
If you have any query, please let us know