In the name of ALLAH, the Most Beneficent, the Most Merciful

Cs521 Quiz 2 Fall 2024

Cs521 Quiz 2 Fall 2024

 Cs521 Quiz 2 Fall 2024



Here are all the MCQs and their correct answers:

  1. What does the jQuery "fadeOut" method do?

    • Answer: It makes an HTML element invisible with a fading effect.
  2. What is the file extension for a PHP file?

    • Answer: .php
  3. What is the purpose of the "catch" block in a try-catch statement?

    • Answer: It handles the thrown exception by providing an alternative code path.
  4. What is the scope of a variable declared inside a function in JavaScript?

    • Answer: Local scope
  5. What is jQuery?

    • Answer: A JavaScript library for creating dynamic web pages and simplifying web development.
  6. Which event type is triggered when a user clicks on an HTML element?

    • Answer: click
  7. What does the Document Object Model (DOM) represent in JavaScript?

    • Answer: The structure of a web page as a hierarchical tree of objects.
  8. What is the correct way to write an if statement in JavaScript?

    • Answer: if (x == 10) { }
  9. What is a server-side technology used for web development?

    • Answer: PHP
  10. Which loop in JavaScript is suitable for executing a block of code a specific number of times?

    • Answer: for loop
Post a Comment (0)
Previous Post Next Post
z
//1