← Quiz: Secure File Uploads: all 10 questions
Quiz: Secure File Uploads · Question 3 of 10
What does this print? (code)
What does this print?
name = "photo.jpg.php"
print(name.split(".")[1], name.rsplit(".", 1)[-1])
- A.php jpg
- B.jpg php
- C.photo php
- D.jpg jpg
Answer & explanation
Correct answer: jpg php
A check that reads the first extension sees jpg; the server decides by the last one, php.
Can you get the rest right without peeking?
Take the timed Quiz: Secure File Uploads quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →