CSS Program
CSS Program
2 Marks:
1. 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.
2. Write a Java script that initializes an array called flowers with the
names of 3
3. Write a Java script to design a form to accept values for user ID &
password.
4 Marks:
1. Write a Java script program which computes, the average marks of
following students then, this average is used to determine the
corresponding Grade.
2. Write a Java script that will replace following specified value with
another value in a string.
String = “ I will fail”
Replace “fail” by “pass”
5. 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
6 Marks:
1. 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.
2. 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
Summer 2022
2 Marks:
1. Write a javascript program to check whether entered number is prime
or not.
2. Write a javascript program to changing the contents of a window.
3. Write a javascript syntax to accessing elements of another child
window.
4 Marks:
1. Write a javascript program to validate user accounts for multiple set of
user
ID and password (using swith case statement)
2. Write a javascript program to demonstrate java intrinsic function.
3. 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.
4. Write a javascript program to create read, update and delete cookies.
5. Write a javascript program to link banner advertisements to different
URLs.
6. 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.
7. Write a javascript function that accepts a string as a parameter and
find the Length of the string.
8. Write a javascript program to validate email ID of the user using
regular Expression.
9. Write a javascript program to design HTML page with books
information in Tabular format, use rollovers to display the discount
information.
6 Marks:
1. Write a javascript to checks whether a passed string is palindrome or
not.
2. Develop javascript to convert the given character to unicode and vice-
versa.
3. 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.
4. 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.
5. Write a javascript to create option list containing list of images and
then Display images in new window as per selection.
6. Write a javascript function to generate Fibonacci series till user defined
limit.
Winter 2023
4 Marks
1. Write a JavaScript that accepts a number and displays addition of
digits of that Number in a message box.
2. Write an HTML script that accepts Amount, Rate of Interest and
Period from User. When user submits the information a JavaScript
function must calculate And display simple interest in a message
box. (Use formula S.I. = PNR/100)
3. Write an HTML Script that displays the following webpage output
The user enters two numbers in respective text boxes. Write a
JavaScrip such That when user clicks “add”, a message box
displays sum of two entered Numbers, if the user clicks on “sub”,
message box displays subtraction of two Numbers and on
clicking “mul” the message box displays multiplication of Two
numbers.
4. Write a JavaScript that accepts user’s first name and domain
name of Organization from user. The JavaScript then forms email
address as
<firstname@domain name> and displays the results in the
browser window.
5. Write a JavaScript that accepts a string and searches for the
pattern “MSBTE” In the given string using regular expressions. If
the pattern is found, JavaScript will display that “Pattern is found”
else display “Pattern is not Found”.
6. List and state various properties of a window object. Write a
JavaScript that
Opens a new popup window with message “WELCOME To
SCRIPTING” When the page loads and a new popup window
displaying message “FUN WITH SCRIPTING” when the page
unloads.
7. Write an HTML script that displays names of different brands of
Laptop and An image by default as :
When the mouse moves over the specific brand name the script
must display
The image of respective Laptop in the adjacent box
6 Marks:
1. Write a JavaScript that demonstrates use of floating menu
alongwith
Respective HTML script.
2. i) Write HTML and respective JavaScript such that Webpage
displays three checkboxes as :
Summer 2023
2 Marks:
1. Write JavaScript to create a object “student” with properties
roll number,
Name, branch, year. Delete branch property and display
remaining properties Of student object.
2. Write a JavaScript that initializes an array called Colors with
the names of 3 Colors and display the array elements.
4 Marks:
1. Write a JavaScript for loop that will iterate from 1 to 15. For
each iteration, it Will check if the current number is odd or
even and display a message to the Screen.
Sample Output :
“1 is odd”
“2 is even”
…………
………….
2. Write JavaScript code to perform following operations on
string. (Use split() Method)
Input String : “Sudha Narayana Murthy”
Display output as
First Name : Sudha
Middle Name : Narayana
Last Name : Murthy
6 Marks:
1. Write HTML code to design a form that displays two textboxes for
accepting Two numbers, one textbox for accepting result and two
buttons as ADDITIONAnd SUBTRACTION. Write proper JavaScript such
that when the user clicks On any one of the button, respective
operation will be performed on two Numbers and result will be
displayed in result textbox.
2. Write HTML code to design a form that displays two buttons START
and
STOP. Write a JavaScript 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. (Use Timer methods)
3. Write HTML code to design a form that displays textboxes for accepting
UserID and Aadhar No. and a SUBMIT button. UserID should contain 10
Alphanumeric characters and must start with Capital Letter. Aadhar
No. Should contain 12 digits in the format nnnn nnnn nnnn. Write
JavaScript code To validate the UserID and Aadhar No. when the user
clicks on SUBMIT Button.
4. Write a script for creating following frame structure :
Frame 1 contains three buttons SPORT, MUSIC and DANCE that will
Perform following action :
When user clicks SPORT button, sport.html webpage will appear in
Frame 2.
When user clicks MUSIC button,music.html webpage will appear in
Frame 3.
When user clicks DANCE button,dance.html webpage will appear in
Frame 4.