Ruby - Advanced Metaprogramming
Why might using module_eval with strings be risky or discouraged in some Ruby applications?
Why might using module_eval with strings be risky or discouraged in some Ruby applications?
Using module_eval with strings executes code dynamically, which can be dangerous if the string content is not trusted.
Because it can execute arbitrary code leading to security vulnerabilities correctly identifies security risks. Options A, C, and D are incorrect or unrelated.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions