JavaScript for Developing Interactive Websites and Web Applications 1.2

This test covers the role of JavaScript in developing interactive websites and web applications, including both programming skills and management aspects in the IT field. It provides a comprehensive overview of core programming concepts and their application in modern web projects.

Sample Questions

  1. Which of the following is used to declare a variable in JavaScript that can be reassigned?

    • let
    • const
    • function
    • var
  2. What method is used to select an HTML element by its ID in JavaScript?

    • document.getElementByTagName()
    • document.getElementById()
    • document.querySelector()
    • document.getElementsByClassName()
  3. Which event occurs when a user clicks on an HTML element?

    • onchange
    • onload
    • onclick
    • onhover