CWISA-102 practice question 13 of 15

What scripting language works natively inside of nearly all modern Web browsers and may also be used for automation within some wireless solutions, such as Node-RED?

Full set: 67 questions
Answer options
A: PHP
B: Python
C: JavaScript Correct answer
D: R
Correct Answer:
C. JavaScript
Explanation

JavaScript is the only scripting language that runs natively in virtually all modern web browsers, where it is used to create dynamic and interactive web content. It is the standard for client-side web development. Additionally, Node-RED, a popular flow-based programming tool for IoT and automation, is built on Node.js. Node.js is a JavaScript runtime environment, meaning that custom logic and functions within Node-RED flows are written in JavaScript. This unique combination of native browser support and server-side/automation capabilities makes JavaScript the correct answer.

Why Incorrect

A. PHP: This is a server-side scripting language. It executes on the web server to generate content, but it does not run natively within the client's web browser.
B. Python: This is a versatile, general-purpose programming language widely used in automation and backend development, but it does not run natively in web browsers.
D. R: This is a specialized language primarily used for statistical computing and data analysis. It lacks native support for execution in web browsers.

References

1. Node-RED Official Documentation: "The Function node allows you to run arbitrary JavaScript code against the messages that are passed through it."

Source: Node-RED Docs, "Writing Functions". Retrieved from https://nodered.org/docs/user-guide/writing-functions

2. Mozilla Developer Network (MDN) Web Docs: "JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js..."

Source: MDN Web Docs, "JavaScript". Retrieved from https://developer.mozilla.org/en-US/docs/Web/JavaScript

3. University of Southampton, Courseware (COMP6225: The Internet of Things): The course materials describe Node-RED as a "visual tool for wiring the Internet of Things" and explicitly state its foundation on Node.js, with practical exercises involving writing JavaScript in function nodes.

Source: University of Southampton, ECS, Course COMP6225 Lecture Slides on Node-RED. (Specific reference to Node.js/JavaScript foundation in introductory lectures).

Scroll to Top