Why do computer files have extensions?
Show answer & explanation
Answer: Tell OS how to open files
Make filenames longer — Wrong. Extensions don't exist to lengthen names. They indicate file type, telling the operating system which application should open the file.
Tell OS how to open files ✓ — Correct! File extensions (.pdf,.jpg,.exe,.txt) tell the operating system what type of file it is and which application should open it..docx = Word document,.mp4 = video,.py = Python code. Extensions are associated with programs—double-clicking a.pdf opens your PDF reader. Some systems hide extensions but still use them internally!
Track file creation dates — Wrong. Extensions indicate file type/format, not dates. Metadata stores creation/modification times separately from the filename.
More Technology questions
- Why can Cloudflare's lava-lamp camera feed improve encryption even though the cryptographic software that consumes it is deterministic?
- If an attacker learns a pseudorandom generator's seed and algorithm after watching several outputs, why can the later outputs become reconstructable?
- If a phone game shuffle and a physical noise source both look messy, what makes only one useful for security against someone who knows the code?
- At parking-lot speed, why do quiet EVs need alert sounds before tire noise helps?
- Why does the Ferrari 296 cabin sound duct take sound before exhaust treatment?
- Why do sound engineers tune engine orders instead of just making a Ferrari-like exhaust louder?
