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

Prelim Exam CSS

CSS || Prelim || Test
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Prelim Exam CSS

CSS || Prelim || Test
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SHARAD INSTITUTE OF TECHNOLOGY, POLYTECHNIC

YADRAV (ICHALKARANJI)
PRELIM TEST 2024 – 2025

ROLL No.

DEPARTMENT : CO/CSIT CO Covered : All CO’s


SUBJECT : Client Side Scripting Language SUBJECT CODE : 22519
CLASS : TY A & B MARKS : 70
DATE & TIME : 25/10/2024 Time: 03 Hr
Instructions: 1) All the questions are compulsory.
2) Figures to the right indicate full marks.

Q.1 Attempt any FIVE of the following 10 marks


a Write a simple calculator program using switch case in JS.

b Enlist and explain any 4 intrinsic JS functions.


c Explain the term JavaScript URL.

d Write a javascript syntax for accessing elements of another child window.

e Differentiate between session cookies and persistent cookies.

f Write a javascript program to check whether entered number is prime or not.

g Write a JavaScript program that will display current date in DD/MM/YYYY format..

Q.2 Attempt any THREE of the following 12 marks

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

b Write a JavaScript program that will remove the duplicate element from an array.

c Explain getter and setter properties in Java script with suitable example.

Design a webpage that displays a form that contains an input for user name and
d 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.

e Explain string Unicode methods with example

Q.3 Attempt any THREE of the following 12 marks


Write a JavaScript function that checks whether a passed string
a
is palindrome or not.
b Explain open () method of window object with syntax and example

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

How to read and delete query in JS? Explain with example.(querying, setting &
d
deleting property)
Write JS code to perform following operation on string using split( )
Input String: “Sudha Narayan Murthy” Display output as:
e First Name: Sudha
Middle Name: Narayan
Last Name: Murthy

Q.4 Attempt any THREE of the following 12 marks

a Describe text Rollover with the help of example.

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

c Write a javascript program to validate email ID of the user using regular expression.

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
d
status bar. When the user moves his mouse away from the link the status bar will
display nothing.

e Explain test( ) and exec( ) methods of regular expression with example

Q.5 Attempt any TWO of the following 12 marks

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

Write a javascript program to create a sildeshow with the group of six images, also
b
simulate the next and previous transition between slides in your javascript.
Write HTML script that displays textboxes for accepting username and password.
Write proper JavaScript such that when the user clicks on submit button i) All

c textboxes must get disabled and change the color to „RED; and with respective labels
ii) Prompt the error message if the password is less than six
characters
Write HTML code to design a form that displays two buttons START and STOP. Write
d JS code such that when user clicks on START button real time digital clock will be
displayed on screen. When user clicks on STOP button clock will stop displaying time.
e Write JS for moving a car using using setTimeout( ) and clearTimeout( ) methods.

Q.6 Attempt any TWO of the following 12 marks


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 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.
d 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.
e Describe how to change option list dynamically with the help of example.

*****************************************

You might also like