πŸ“Š JavaScript
Q. JavaScript Code can be called by using
  • (A) RMI
  • (B) Triggering Event
  • (C) Preprocessor
  • (D) Function/Method
πŸ’¬ Discuss
βœ… Correct Answer: (D) Function/Method

Explanation:

In JavaScript, code execution is typically triggered using functions or methods. Functions are reusable blocks of code that can be called whenever needed.

Why the other options are incorrect:

  • (A) RMI (Remote Method Invocation) β†’ Used in Java (not JavaScript) for calling methods remotely over a network.
  • (B) Triggering Event β†’ Events (like onclick, onload) can trigger

Explanation by: Official MCQ Buddy

In JavaScript, code execution is typically triggered using functions or methods. Functions are reusable blocks of code that can be called whenever needed.

Why the other options are incorrect:

  • (A) RMI (Remote Method Invocation) β†’ Used in Java (not JavaScript) for calling methods remotely over a network.
  • (B) Triggering Event β†’ Events (like onclick, onload) can trigger

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
287
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Babita
Publisher
πŸ“ˆ
89%
Success Rate