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

CSS-22519 QB All Chapter

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

CSS-22519 QB All Chapter

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

MET’S INSTITUTE OF TECHNOLOGY, POLYTECHNIC

BHUJBAL KNOWLEDGE CITY, ADGAON, NASHIK


DEPARTMENT OF COMPUTER ENGINEERING
QUESTION BANK
Course & Code: CO5I Semester: V
Subject: Client Side Scripting (CSS) Code: 22519

UNIT 1: BASICS OF JAVASCRIPT PROGRAMMING MARKS: 12


1. Explain any two/ four features of JavaScript?
2. Write a JavaScript to display Welcome message in JavaScript.
3. Explain the term – Object Name, Property, Method, Dot syntax, main event.
4. Explain six types of values in JavaScript.
5. What is conditional operator in JavaScript?
6. List the different types of operator in JavaScript. Describe any one in details.
7. List the different types of popup box. Explain any of it with example.
8. Write a JavaScript to display squares of 1 to 10 numbers using while loop.
9. Write a JavaScript program that accept two integers and display the larger.
10.Write a JavaScript conditional statement to sort three numbers. Display an alert
box to show the result.
11.Write a JavaScript for loop that will iterate from 0 to 15. For each iteration, it will
check if the current number is odd or even, and display a message to the screen.
12.Write a JavaScript conditional statement to find the largest of five numbers.
13.Write a JavaScript program to check from two given integers, if one is positive and
one is negative.
14.Write a JavaScript program check if a given positive number is a multiple of 3 or a
multiple of 7.
15.Write a JavaScript program to reverse a given string.
16.Write a JavaScript program to check number is Armstrong or not.
17.Write a JavaScript to display squares of 1 to 10 numbers using for loop.
18.Write a JavaScript program to find the area of a triangle where lengths of the three
of its sides are 5, 6, 7.
19.Write a JavaScript program to construct the following pattern, using a nested for
loop.
*
**
***
****
*****
UNIT 2: ARRAY, FUNCTION AND STRING MARKS: 14
1. Define array.
2. How to declare array in JavaScript.
3. Write a JavaScript for sorting the array elements.
4. Explain the use of join () function with examples.
5. Explain the use of push and pop functions.
6. Write a short note on – associative array in JavaScript.
7. Write syntax for defining the function.
8. Explain the method of calling a function from HTML.
9. What is string? Enlist some commonly used methods for manipulating String.
10.Write a JavaScript to convert string to number.
11.Differentiate between concat() and join() methods of array object.
12.Write a JavaScript function to count the number of vowels in a given
String.
13.Write a JavaScript that find and displays number of duplicate values in an array.
14.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
15.Explain the scope of variable with the help of programming example
16. How to retrieve a position of desired word from the string
UNIT 3: FORM AND EVENT HANDLING MARKS: 10

1. What is form.
2. Explain two uses of forms.
3. Explain in brief the properties and methods used in form. 4] How will you create
password field in a HTML form ?
4. Explain the use of button element with the help of example
5. What is the difference between group of checkbox buttons and group of radio
buttons .
6. Design a simple HTML form for filling the information for registration of a
student.
7. Write a form to make login and password.
8. What is event handler. Give an example of event handler in JavaScript. 10] Explain
various commonly used mouse Events in JavaScript.
9. Explain any two keyboard events in JavaScript.
10.Explain how to change attribute values dynamically.
11.Write a JavaScript to create three categories - Fruit, Flower and Colour. 14] Based
on the selection of category, the item, in the option list must get changed.
12.What is intrinsic function?
13.How to disable particular element on the form.
14.What is the use of read-only element in JavaScript.
UNIT4: COOKIES AND BROWSER DATA MARKS:8

1. What is cookies?
2. Explain how to create cookies in JavaScript.
3. Explain how to read cookies in JavaScript.
4. Write a JavaScript to delete the cookie.
5. Explain the functions getMonth( setMonth0, toGMTString())
6. Explain the syntax for opening a window.
7. Explain the use offocus() method for window object.
8. Write a JavaScript to change the contents of the newly created window.
9. Write a JavaScript to open multiple windows at a time.
10.What is the use of setTimeout () function? Write a JavaScript toillustrate it.
11.What is the use of setInterval0 function? Write a JavaScript to Illustrateit.
12.Write a JavaScript to display the pathname of the web page usingwindow.location
object.
UNIT 5: REGULAR EXPRESSION, ROLLOVER & FRAMES
MARKS: 14
1. Define the term -Regular expression.
2. Construct regular expression for validating the phone number in following format only
: (nnn)-nnnn-nnnn OR nnn.nnnn.nnnn
3. Write a Java program that checks whether the string entered by the user Contains
digits or not.
4. Explain any four commonly used methods in regular expression.
5. Write a JavaScript program to create rollover effect for three images.
6. How will you specify the range of characters using a regular expression?
7. Give the regular expression for matching digits and non-digits.
8. Explain any four regular expression object properties
9. What is frame?
10. Explain frameset tag along with the attributes used in it.
11. Write a JavaScript to display frames without border.
12. Write a JavaScript to change the contents of one frame from another frame.
13. WriteJavaScript to change the label of button element present in frame2 fromframe.
14. What is rollover?
15.What are the methods used most commonly during the rollover?
16. Write a JavaScript in which when user rolls over the name of fruit, thecorresponding
image should be displayed. For instance -if user rolls over thetext "Mango"; the image of
Mango should be displayed.
17. Write a JavaScript in which when user rolls over the name of fruit, thecorresponding
image should be displayed. Along with the appropriate imagedisplay, additional window
should pop up displaying the benefit of each fruit.
18. Design the frameset tag for following frame layout

FRAME1
FRAME2

FRAME3
UNIT 6: MENU, NAVIGATION AND WEB PAGE PROTECTION
MARKS: 12
1.What is the use of status bar in a web application?
2. State the method to put message in web browser status bar?
3. Write a JavaScript program that create a scrolling text on the status line of awindow.
4. Write a program to display a javascript status bar message whenever yourusers hover
over your hyperlinks.
5. Write a JavaScript to scroll the status bar message horizontally
6. What is banner ad?
7. Develop a JavaScript Program to Create Rotating Banner Ads with URL Links.
8. Write a JavaScript to create and display banner
9. Write a JavaScript that illustrates linking of banner advertisement to URL
10. What is slide show?
11. Write a JavaScript to show the creation of slide show,
12. Explain with suitable example how to create a pull down menu.
13. What is dynamic menu?
14. How to create dynamically changing menu in JavaScript.
15. What is float menu?
16. Explain chain select menu with necessary illustration.
17. What is tab menu? Explain it with diagrammatic representation.
18. Explain folding tree menu.
19. What is the use of scrollable menu?
20. Create a slideshow with the group of four images, also simulate the next and previous
transition between slides in your JavaScript.
21. List ways of protecting your webpage and describe any one of them.
22. Write a JavaScript that disables the right click button and displays the message 'Right
click button is ‘disable'.
23. Write short note on -Frameworks of JavaScript and its applications.

You might also like