Ruby, unlike Python, cannot be used to implement metaprogramming techniques because it strictly adheres to the object-oriented paradigm without the flexibility of runtime code generation.
The statement is false. Both Ruby and Python are multi-paradigm languages and support metaprogramming techniques, which include the capacity for runtime code generation. Particularly, Ruby is known for its powerful metaprogramming capabilities. This question tests the test taker's knowledge of programming language characteristics and dispels a common misconception that a language's primary paradigm limits its capabilities. It's important for penetration testers to recognize the breadth of functionality provided by various programming languages to select the best tool for the task.
Learn More
AI Generated Content may display inaccurate information, always double-check anything important.
What is metaprogramming?
How does Ruby's metaprogramming compare to Python's?
Why is understanding programming languages important for penetration testers?