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

Chapterwise Questions Bank (1)

Uploaded by

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

Chapterwise Questions Bank (1)

Uploaded by

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

Client-Side Scripting: Chapter-wise Question Bank

Chapter 1: Introduction to JavaScript

1. State the use of a method in JavaScript with a suitable example.

2. List & explain data types in JavaScript.

3. List any four features of JavaScript.

4. List the comparison operators in JavaScript.

5. What is an operator? Which types of operators are used in JavaScript?

6. State the features of JavaScript.

7. Differentiate between session cookies and persistent cookies.

8. Describe frameworks of JavaScript and their applications.

9. Explain the `alert()` method with examples.

10. Write a JavaScript program to calculate add, subtract, multiply, and divide operations with user

inputs.

11. Write a JavaScript function that will open a new window upon a button click.

12. Write a JavaScript program to validate email IDs.

Chapter 2: Arrays, Objects, and Functions

1. Write a simple calculator program using `switch` case in JavaScript.

2. Write a program using the `sort` method of an array object.

3. Describe property Getters & Setters.

4. Write a JavaScript to create a person object with properties (`firstname`, `lastname`, `age`,

`eyecolor`) and delete `eyecolor`.

5. Write a JavaScript that initializes an array called `flowers` with names of 3 flowers and displays

the elements.
6. Differentiate between `concat()` and `join()` methods of an array object.

7. Write a JavaScript function to merge two arrays & remove duplicate values.

8. Write and explain string functions for converting string to number and number to string.

9. Write a JavaScript function to check if the first character of a string is uppercase.

10. Write a JavaScript function to display five elements of an array in sorted order.

11. Write a JavaScript function to calculate the length of a string.

12. Write a JavaScript program to create a slideshow with three images, simulating next and

previous transitions.

13. Write a JavaScript function to merge two arrays and remove duplicates.

Chapter 3: Browser Objects and Document Object Model (DOM)

1. Describe the browser location object.

2. State any two properties and methods of the location object.

3. Explain the `open()` method of the window object with syntax and example.

4. Write a JavaScript to modify the status bar using `onMouseOver` and `onMouseOut`.

5. Write a JavaScript program that creates a pull-down menu with three options and redirects to the

corresponding website.

6. Describe frameworks of JavaScript and their applications.

7. Write a JavaScript program to implement a frame structure for linking multiple pages.

8. Write a JavaScript program to change an option list dynamically with examples.

9. Write a JavaScript program to access elements of another child window using JavaScript.

Chapter 4: Strings and Regular Expressions

1. Write the use of `charAt()` and `indexOf()` with syntax and examples.

2. Write a JavaScript that replaces a specific value in a string (`"fail"` with `"pass"`).

3. Describe regular expressions and explain the `search()` method with an example.
4. How to find non-matching characters in a regular expression? Explain with an example.

5. Write a JavaScript program to validate an email ID using regular expressions.

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

7. Write a JavaScript program to replace text using regular expressions with an example.

Chapter 5: Events and Form Validation

1. Write a JavaScript to design a form to accept values for user ID and password.

2. Explain the following form events: (i) `onMouseUp` (ii) `onBlur`.

3. Write a JavaScript program that validates user accounts for multiple sets of user IDs and

passwords.

4. Write a JavaScript program that displays a form and validates fields such as name, email ID, and

pin code.

5. Describe how to evaluate checkbox selection with examples.

6. Write a JavaScript program to dynamically disable or enable form elements.

7. Write a program to create rotating banner ads with clickable links.

8. Write a JavaScript program to create a dropdown menu with options that change the background

color of the webpage.

9. Write a JavaScript program to design an HTML page with book information in a table format.

10. Write a JavaScript program to validate user input for name, email, and password.

Chapter 6: Advanced Concepts

1. Write a JavaScript program to create rotating banner ads.

2. Write a JavaScript to check whether a string is a palindrome.

3. Develop a JavaScript program for a slideshow with next and previous transitions.

4. Write a JavaScript function to generate Fibonacci numbers up to a user-defined limit.

5. Write a JavaScript program to open a new window with two frames, displaying a button in one
frame and an image in another.

6. Write a JavaScript program to implement `For` and `For-In` loops and differentiate between them.

7. Develop a JavaScript program to create rotating banner ads.

8. Write a JavaScript program to convert a character to Unicode and vice versa.

9. Write a JavaScript program to implement cookies with read, update, and delete functionality.

You might also like