Q. Which Python function is unsafe to use with untrusted input due to code execution risks?

  • (A) eval()
  • (B) print()
  • (C) len()
  • (D) input()
πŸ’¬ Discuss
βœ… Correct Answer: (A) eval()
Explanation: eval() executes arbitrary code and should be avoided with untrusted input.
Explanation by: Mr. Dubey
eval() executes arbitrary code and should be avoided with untrusted input.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
74
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate