Certified Information Systems Security Professional (CISSP) — Question 302
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?
Answer options
- A. Weakly typed
- B. Dynamically typed
- C. Strongly typed
- D. Statically typed
Correct answer: C
Explanation
A strongly typed language enforces strict type rules which helps prevent type-related errors that could lead to unintended behavior. Weakly and dynamically typed languages may allow more flexibility but can introduce risks due to type coercion or runtime type errors. Statically typed languages, while also providing type safety, do not necessarily guarantee that the code will execute as intended without errors.