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

Important_Questions_for_CSS_Exam

Uploaded by

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

Important_Questions_for_CSS_Exam

Uploaded by

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

Important Questions for Passing CSS (Client-Side Scripting) Exam

If you need to score 28 marks out of 70 to pass, here is a list of important questions that will help

you maximize your chances of passing the CSS (Client-Side Scripting) exam. This list includes

2-mark, 6-mark, and 10-14 mark questions that frequently appear in exams and cover essential

topics from your syllabus.

2-Mark Questions (20-25 Marks)

1. State the features of JavaScript.

2. Explain the purpose of the `prompt()` method in JavaScript.

3. List and explain data types in JavaScript.

4. What is an operator in JavaScript?

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

6. What is the use of `getElementById()` method in JavaScript?

7. What does `console.log()` do in JavaScript?

8. What is the difference between `==` and `===` in JavaScript?

9. Explain the `charAt()` and `indexOf()` methods with examples.

10. What is the `window.open()` method? Explain with syntax and example.

11. What is the purpose of using cookies in JavaScript?

12. What are the comparison operators in JavaScript?

6-Mark Questions (12-18 Marks)

1. Explain how JavaScript functions work, and give an example of function definition and usage.

2. Write a JavaScript program to create a `person` object with properties `firstname`, `lastname`,

`age`, and `eyecolor`. Then delete the `eyecolor` property and display the remaining properties.

3. Write a JavaScript program to create a calculator using a switch-case statement for addition,

subtraction, multiplication, and division.


4. Write a JavaScript program that initializes an array of flowers with three flower names, and then

displays the array elements.

5. Explain how regular expressions are used in JavaScript. Write a program to validate an email

address using a regular expression.

6. Write a JavaScript code to display the current date and time.

7. Write a JavaScript program that validates the user ID and password using simple validation rules

(e.g., length of password, valid characters).

8. Explain the difference between `concat()` and `join()` methods in JavaScript arrays.

10-14 Mark Questions (15-20 Marks)

1. Write a JavaScript program to create a frame layout with the following:

- Frame 1: Header.

- Frame 2: Links for Fruits, Flowers, and Cities.

- Frame 3: Display content based on the clicked link.

2. Create a slideshow with a group of three images, with functionality to transition to the next and

previous slides.

3. Write a JavaScript program to create a pull-down menu with three options (Google, MSBTE,

Yahoo) and redirect the user to the selected website.

4. Write a JavaScript program to validate a phone number format (`(ddd)-(dddddddd)`) using regular

expressions.

5. Create a dynamic menu (e.g., floating menu, tabbed menu) using JavaScript.

6. Write a JavaScript program that checks if a string is a palindrome or not.

7. Explain and demonstrate how to read and write cookies in JavaScript.

8. Write a JavaScript program that removes duplicate elements from an array.

Final Tips for Passing

- Focus on practicing **2-mark questions** first to build your foundation.


- Then, move on to **6-mark questions** for more detailed explanations and coding examples.

- For **10-14 mark questions**, try to write complete solutions and code examples.

- Make sure to understand key concepts like **DOM manipulation**, **functions**, **arrays**, and

**regular expressions**.

- Practice **writing code** for small tasks like form validation, array handling, and creating simple

interactive elements.

Good luck with your studies! You've got this!

You might also like