All challenges
Multiple ChoiceIntermediate 30s

Path Traversal (MCQ)

Choose the best answer for: path traversal in Python
Options
  1. 1../ sequences can escape intended directories
  2. 2Traversal only affects Windows and never other platforms
  3. 3Pathlib prevents all traversal by rejecting ../ paths
  4. 4open() validates paths and blocks any ../ sequences

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle