Question Pack

Question Pack

Published by: Anil K. Panta

Very Short Answer Questions

  1. Define client-side scripting.

  2. What is the difference between var, let, and const in JavaScript?

  3. Write the syntax for creating a function in JavaScript.

  4. How do you declare and initialize an array in JavaScript?

  5. Explain the purpose of the document.getElementById() method.

  6. What is an event listener? Give one example.

  7. List any two data types supported by JavaScript.

  8. Mention two advantages of using JavaScript in web development.

  9. What is the difference between == and === operators?

  10. How can you include an external JavaScript file on an HTML page?


Descriptive Answer Questions

  1. Explain the Document Object Model (DOM) with suitable examples.

  2. Describe the different types of JavaScript events and their uses with examples.

  3. Write and explain a JavaScript program to validate a simple HTML form (e.g., checking empty fields).

  4. Discuss various looping statements available in JavaScript with syntax and examples.

  5. Define objects in JavaScript. How can you create and manipulate object properties dynamically?


Long Answer 

1. Design and write a complete JavaScript-based web page that:

  • Accepts user input through a form (name, email, and age).

  • Validates all inputs.

  • Displays a personalized message using DOM manipulation if validation passes.

  1. Develop a mini-JavaScript application (logic + explanation) that:

    • Displays a dynamic image slideshow with "Next" and "Previous" buttons.

    • Explain the working of each function used in your code

We will get back to you via email or phone call