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

QB - Css PR Exam 2024 p16-1

Uploaded by

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

QB - Css PR Exam 2024 p16-1

Uploaded by

Muskan Kateja
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Prepare all questions,i will be assigning 2 questions to each of you at a random on the day of practical exam.

Sr. No. Question


1
Write a Java Script Program to create an Object Employee with it s attributes as emp_name, emp_age, salary, dept and use getter
and setter properties on it.
2
Write a JS Program to create a simple calculator. The calculator should have the following functionalities: addition, subtraction,
multiplication and division of 2 numbers, and square and cube of a single number. Achive it using switch case.
3 Write a Java Script to Display a Factorail of a Number using for Loop. Result should be poped out after user enters the number.
4 Write a Java Script to Display Fibonacci Series according to the limit entered by the user.
5 Write a program to use window object methods such as alert, prompt and confirm.
6
Write a Java Script to create an Array by taking elements of it from the user. Then arrange the Array in Assending and
Descending order in a Tabular Format.
7 Write a Java Script to Demonstrate the use of Functions used with array.
8
Write a Java Script to take name and age from user and pass it as an argument to a function and display that the user is eligible
for voting or not.
9 Develop a Javascript to convert the given character to unicode and vice-versa.
10
Write a JavaScript program that will display list of student (atleast 5 students)in ascending order according to the marks &
calculate the average performance of the class.
11 Write a Java Script to demonstrate all the types of Functions.
12
Write a Java Script to take String from the user. Then take the start and end point for substring from the user and display the
result in alert box.( eg. hello world is entered and user gives 6 and 10 then world must be displayed).
13
Write a Program to take input a String from user and demonstrate the difference between the split(), substring() and substr()
methods of String.
14
Write a Java Script to create an Associative array of Fruits with its price ( "Fruit" : price) by taking input from the user and
display only those fruits whose price is greater than 500 in a tabular form.
15 Write a Java Script to demonstrate various String functions(minimum 8 functions).
Write a JavaScript program for a travel booking form that collects details like Traveler Name, Destination, Travel Date, and
16 Number of Travelers. Use a drop-down menu to allow users to select the mode of transport (e.g., Air, Train, Bus). Depending on
the selected transport mode, dynamically update a list of available companies for booking.
17
Design a form with a dropdown to select a fruit (e.g., Apple, Banana) and a quantity (text input). Include a button that changes
the background color based on the selected fruit and displays the chosen fruit and quantity below the form.
18
Create a quiz form that features a question with multiple radio button options (e.g., favorite hobby, favorite game, etc.) and a text
input for the user’s name. Validate that an option is selected before displaying a summary of the inputs upon submission.
Write a pet adoption form with text inputs for Applicant Name and Contact Number, a dropdown for Pet Type (e.g., Dog, Cat),
19 and a text area for additional information. Upon submission, display the entered details along with a message based on the
selected pet type.
Write a program where a button changes its text to "Hovered!" and background color of pages changes when the mouse is over it
20 and button text changes back to "Click Me!" and background color becomes white again when the mouse leaves.

21
Develop a form with several input fields. Write JavaScript code that changes the border color of an input field to green when it
gains focus and to red when it loses focus (blur).
22
Write a JavaScript function that listens for the keydown event on an input box. When a key is pressed, log the key's value to the
console.
23
Develop an input box that counts the number of characters entered. Write JavaScript code that listens for the input event and
updates a paragraph with the character count in real-time.
24 Write a JS to implement keyevents on an inputbox
25
Write a JS Program to create a window with mouse events. Implement mouse events like on click, on double click, on mouse
down, on mouse up, on mouse move.
Write a JS Program to create a textbox and 2 drop-down menus. The 2 drop-down menu's will have options of different font-
26 styles and font-sizes respectively. The font-style and font-size of the text inside the textbox should change dynamically on change
of either of the drop-down menu selections.
27 Create a form, collect user input and submit the form when user presses enter key on the last element of the form.
28
Create a web page with a set of radio buttons that allow users to select a category of options (e.g., Fruits, Vegetables, or Grains).
Depending on the selected category, dynamically generate corresponding checkbox options.
Design a simple survey form using HTML and JavaScript that includes two radio buttons ("Yes" and "No"), a checkbox for
29 "Subscribe to newsletter," and a "Submit" button. Upon clicking the "Submit" button, display a thank you message in a read-only
textarea based on the user's selections.
30
Create a JavaScript program that changes the text of a label based on the value of an input field as the user types. The label
should update in real-time to reflect the current input. Use an image instead of button to implement intrensic function.
Write a JS Program to create a student registration form. Accept the following details: StudentName, StudentAge,
31 StudentPhoneNumber. Use a drop-down menu to allow the user to select their year. Dynamically change the item of the next
drop-down menu to allow the user to choose the semester. Use an image instead of button to implement intrensic function.
32 Write a JS Program to implement all concepts of cookies, namely: Create, Read and Delete.
33
Write a JS Program to implement window functions like: resizeBy, resizeTo, scrollBy, scrollTo, moveBy, moveTo, open a
window on the same tab, open the window on a new tab and open a window on a new page.
Write a javscript that displays a form that contains an input for username & password. User is prompted to enter the input &
34 password & password becomes the value of the cookie. Write a JavaScript function for storing the cookie. It gets executed when
the password changes.
35
Write a JavaScript program that creates a cookie called lastVisit which stores the current date and time. The cookie should expire
in 14 days. Also, demonstrate how to read this cookie value and display it on the web page.
Write a JavaScript function that opens a new browser window with a specific URL(any URL available), width, and height on a
36 Button Click. The function should also set the window's position on the screen. Ensure that window is brought on focus when it
is opened.
Create a function that opens three new browser windows with different URLs: one for a search engine (e.g., Google), one for a
37 social media site (e.g., Facebook), and one for a news site (e.g., BBC). Use setTimeout to focus each window in sequence with a
delay of 3 seconds between each focus action.
38 Write a JavaScript function to check whether a given address is a valid IP address or not.
39
Create a script that sets a cookie with a specific expiration date (e.g., 30 days from now) and displays a message indicating when
the cookie will expire.
40 Write a script that opens a new window and with a heading, a paragraph.close the window using button.
41
Create a JavaScript application with two buttons: the first opens a window displaying the current date in DD/MM/YYYY format,
and the second opens another window displaying all prime numbers between 1 and 50.
42
43 Write a javascript to create option list containing list of images and then display images in new window as per selection.
44
Write a JS program that validates a strong password. The password must be at least 8 characters long, contain at least one
uppercase letter, one lowercase letter, one digit, and one special character.
Write a JS program that validates a phone number based on the following criteria: it must be 10 digits long and may start with 7,
45 8, or 9.

46 Write a JS program that validates a date in the format DD/MM/YYYY


47 Write a JavaScript program that will print even numbers from 1to 20
48
Write a JS Program to create a textbox which will accept numbers, decimal point up to 2 digits and positive or negative sign. Eg:
+123.22 is a valid number, but +123a.22 is invalid.
49
Write a JS Program to create a regex which will perform a global, multi-line, and case-sensitive match for some user-defined text
in a textarea.
50
Write a JS Program to create a regex expression that will check the number of times the vowels has been arrived in a sentence.
Accept the sentence from the user.
51 Write a JavaScript function to validate Permanent Account Numbers (PAN).
Write a javascript program to design HTML page with books information Book name and its price in tabular format, use
52 rollovers to display the discounted price
at the place of original price
53 Create a Rollover effect uisng 3-4 Images
54 Write a JS Program to implement Text Rollover. There should be at least 10 texts to implement the concept.
55 Write a JS to create a frameset with 4 cols and 2 rows each displaying various pages or images.
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
56 MUSIC button, music.html webpage will appear in Frame 3. When user clicks DANCE button, dance.html webpage will appear
in Frame 4.

Write a script for creating following frame structure


In Frame 1 Add two frames
57 In frame 2 Display a list of links of html pages respectively. When these links are clicked corresponding data appears in FRAME
3.

58 Write a Java Script to demonstrate the use of Chain select menu.


59
Write a JS Program to implement Tree Menu. Show the directory structure of the folder where your CSS codes for Semester 5
are saved.
60
Write a JS to create a 2 Pulldown menus and according to the selection of element from 1st menu, the list of 2nd Pull Down
menu must be updated dynamically.
61 Write a javascript program to link banner advertisements to different URLs.
62
Create a slideshow with the group of three images, also simulate next and previous transition between slides in your Java script.

63 Write a JavaScript to demonstrate the use of Side bar menu.


Write a JS Program to create a slideshow of minimum 5 images and link them to different websites. Apply rollover action to all
64 images in a way that when a mouse hover's over an image, the url of the linked website should appear below the slideshow. The
slideshow should be timed and no buttons should be there on the screen.

You might also like