Css PR Exam List
Css PR Exam List
2. Write a Java script to create person object with properties firstname, lastname, age,
eyecolor, delete eyecolor property and display remaining properties of person object
3. Write JavaScript to create a object "student" with properties roll number name,
branch, year. Delete branch property and display remaining properties of student
object.
4. Write a javascript program to validate user accounts for multiple set of user ID and
password (using switch case statement).
5. Write a JavaScript that accepts a number and displays addition of digits of that
number in a message box.
6. 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”
10.Write a JavaScript program which compute, the average marks of the following students
Then, this average is used to determine the corresponding grade.
7. Write a JavaScript function that checks whether a passed string is palindrome or not
8. 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.
9. Write a JavaScript function to insert a string within a string at a particular position
10. Write Javascript to call function from HTML.
11. Write a JavaScript function to insert a string within a string at a particular position
12. 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.
13. 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 Marks
Name
Amit 70
Sumit 78
Abhishek 71
1. Write a javascript function that accepts a string as a parameter and find the length of
the string.
2. Write a JavaScript that will replace following specified value with another value in
string.
a. String = “I will fail” Replace “fail” by “pass”
3. 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 Write a javascript function to generate Fibonacci series till
user defined limit.
16. Write a JavaScript function to count the number of vowels in a given string
17. 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.
18. 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.
19. Write a javascript to create option list containing list of images and then display
images in new window as per selection.
20. 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.
21. 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.
22. Write HTML script that display textboxes for accepting username and password.
Write proper java script such that when the user clicks on submit button
i)All 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
1. 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. 3 ii) Constructs the mailID as [email protected] and
displays mail ID as message. (Ex. If user enters Rajni as name and Pathak as surname
mailID will be constructed as [email protected])
Coffee
Soft drink
II)When beverage is selected a drop down list with options as below appears on page
Green tea
Milk tea
Black tea
Capaccino
Latte
Expresso
Maaza
Sprite
Coca-cola
1. 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.
2. Write a javascript program to create read, update and delete cookies.
3. 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)
4. Write a webpage that displays a form that contains an input for username & password.
User is prompted to enter the input & password & password becomes the value of the
cookie.
5. Write a JavaScript function for storing the cookie. It gets executed when the password
changes.
6. Write a webpage that displays a form that contains an input for students rollno and
names. user is prompted to enter the input student rollno and name and rollno and
name becomes value of the cookie
7. 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.
1. 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
2. Write the JavaScript code for below operations:
Name, Email & Pin Code should not be blank.
Pin Code must contain 6 digits & it should not be accept any characters.
FRAME 1
FRAME 2 FRAME 3
• FRUITS
• FLOWERS
• CITIES
2 marks
5. Write a javascript program to changing the contents of a window.
6. 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".
7. Write an HTML script that displays names of different brands of Laptop and an image by
default as:
Lenova
HP Image
Dell
When the mouse moves over the specific brand name the script must display the image of
respective Laptop in the adjacent box.
8. Write a JavaScript in create rollover effect that involves text and images When the user
places his or her mouse pointer over a book title, the corresponding book image appears.
9. 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
10. 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
11. Design frameset tag to display following output
Frame 1
Frame2 Frame3 Frame4
FRAME1
FRAME2
FRAME3
4 marks
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.
14. Write a javascript to open a new window and the new window is having two frames. One
frame containing button as “click here !”, and after clicking this button an image should
open in the second frame of that child window.
15. 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.
16. Write a JavaScript for the folding tree menu.
17. 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.
18. Write JavaScript for protecting web page by implementing the following steps
i)Hiding your source code
ii)Disabling the right MouseButton
iii Hiding JavaScript
19. 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
20. Write a JavaScript for the folding tree menu
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 that demonstrates use of floating menu alongwith respective HTML
script.
23. Write a JavaScript that sets a crawling status bar message to the webpage. Message is
"Welcome to the Mystic World of JavaScript".The message must start crawling when the
webpage gets loaded.
24. 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.
25. Create a slideshow with the group of four images, also simulate the next and previous
transition between slides in your JavaScript.