Draw a diagram that shows the relationship between a file name, its extension, and the file format. Include at least three examples of common file formats with their extensions (e.g., .txt, .jpg, .mp3). Label each part clearly.
File formats and extensions in Intro to Computing - Draw & Build Visually
Start learning this pattern below
Jump into concepts and practice - no test required
or
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Draw This - beginner
Grading Criteria
Solution
+----------------+ +------------+ +--------------------+ | File Name | | Extension | | File Format | +----------------+ +------------+ +--------------------+ | report | ----> | .txt | ----> | Plain Text Document | | photo | ----> | .jpg | ----> | JPEG Image File | | song | ----> | .mp3 | ----> | MP3 Audio File | +----------------+ +------------+ +--------------------+
This diagram shows how a file name is made up of two parts: the main name and the extension. The extension (like .txt, .jpg, or .mp3) tells the computer what type of file it is, which is called the file format.
For example, the file named report.txt has the extension .txt, which means it is a plain text document. The file photo.jpg has the extension .jpg, which means it is a JPEG image file. Lastly, song.mp3 has the extension .mp3, which means it is an MP3 audio file.
This helps the computer know how to open or use the file correctly.
Variations - 2 Challenges
[intermediate] Draw a flowchart that explains how a computer decides which program to use to open a file based on its extension. Use at least three different file extensions in your flowchart.
[advanced] Draw a detailed diagram showing the difference between file format and file extension, including examples of files that share the same extension but have different formats (e.g., .txt for plain text and .txt for configuration files). Explain how the computer uses both to handle files.
Practice
1. What does the file extension in a filename tell you?
easy
Solution
Step 1: Understand what a file extension is
The file extension is the part after the dot in a filename, like .txt or .jpg.Step 2: Know the purpose of the extension
It tells the computer what type of file it is and which program should open it.Final Answer:
The type of file and which program can open it -> Option DQuick Check:
File extension = file type and program [OK]
Hint: File extension shows file type and program [OK]
Common Mistakes:
- Confusing extension with file size
- Thinking extension shows file creation date
- Believing extension shows file location
2. Which of these is the correct way to write a filename with a PDF extension?
easy
Solution
Step 1: Identify the file extension format
A file extension always follows a dot after the filename, like .pdf.Step 2: Check the options for correct dot usage
Only 'document.pdf' uses a dot before 'pdf', making it a valid filename with extension.Final Answer:
document.pdf -> Option AQuick Check:
Filename.extension = document.pdf [OK]
Hint: File extension always follows a dot (.) [OK]
Common Mistakes:
- Omitting the dot before the extension
- Using underscores or dashes instead of a dot
- Confusing extension with part of the filename
3. What will happen if you try to open a file named
photo.jpeg on a computer?medium
Solution
Step 1: Recognize the file extension .jpeg
The .jpeg extension is used for image files, especially photos.Step 2: Understand default program association
Computers open .jpeg files with image viewer programs, not text editors or music players.Final Answer:
It will open with a photo or image viewer program -> Option BQuick Check:
.jpeg = image viewer opens file [OK]
Hint: Match extension to program type (jpeg = image) [OK]
Common Mistakes:
- Thinking .jpeg opens as text
- Assuming .jpeg causes errors
- Confusing image files with audio files
4. A user tries to open a file named
report.docx but gets an error. What is the most likely cause?medium
Solution
Step 1: Understand the .docx extension
.docx files are Microsoft Word documents requiring a compatible program to open.Step 2: Identify common error causes
If the program to open .docx files is missing, the file cannot open, causing an error.Final Answer:
The program to open .docx files is not installed -> Option CQuick Check:
Missing program for .docx = error [OK]
Hint: Missing program for extension causes open errors [OK]
Common Mistakes:
- Thinking missing extension causes error
- Blaming file size or spaces in name
- Assuming file is corrupted without checking program
5. You have a text file named
notes.txt and want to share it with someone who only has a PDF reader. What should you do?hard
Solution
Step 1: Understand file format compatibility
A PDF reader can only open PDF files, not plain text files like .txt.Step 2: Choose the correct way to share
Renaming the file does not change its format; converting the file to PDF creates a compatible file.Final Answer:
Convert the text file to PDF format before sharing -> Option AQuick Check:
Convert format to match reader = success [OK]
Hint: Convert file format, don't just rename extension [OK]
Common Mistakes:
- Renaming extension without converting content
- Assuming PDF readers open all text files
- Changing extension to .docx without conversion
