A software developer wishes to write code that will execute safely and only as intended. Which of the following programming language types is MOST likely to achieve this goal?
Correct Answer: C
According to CISSP, the most likely programming language type to achieve the goal of executing safely and only as intended is a strongly typed language. Strongly typed languages require explicit declarations of variables and enforce strict rules for how variables can be used, making it more difficult for developers to make errors that could compromise the security of the code. In contrast, weakly typed languages have more flexible rules for variable declarations and use, making it easier for developers to make mistakes that could compromise the security of the code.
Dynamically typed languages are similar to weakly typed languages in that they do not require explicit declarations of variables, but they also allow variables to change type during execution, which can increase the risk of security vulnerabilities. Statically typed languages are similar to strongly typed languages in that they require explicit declarations of variables and enforce strict rules for how variables can be used, but they also perform type checking at compile time rather than runtime, which can help to identify and fix potential security issues before the code is deployed.