🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Secure File Uploads: all 10 questions

Quiz: Secure File Uploads · Question 4 of 10

What are magic bytes?

What are magic bytes?

  1. A.A secret key added to every upload
  2. B.Fixed bytes at the start of a file that identify its format
  3. C.The last bytes of a file
  4. D.Bytes added by antivirus software
Answer & explanation

Correct answer: Fixed bytes at the start of a file that identify its format

For example, every PDF starts with %PDF- and every PNG with 89 50 4E 47.

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 →