Bird
Raised Fist0

A text file saved in UTF-8 shows question marks when opened in a program expecting ASCII. What is the problem?

medium📝 Analysis Q7 of Q15
Intro to Computing - How Data is Represented
A text file saved in UTF-8 shows question marks when opened in a program expecting ASCII. What is the problem?
AThe file is empty
BThe program cannot decode UTF-8 characters properly
CThe file is corrupted
DThe program is running too slowly
Step-by-Step Solution
Solution:
  1. Step 1: Recognize UTF-8 vs ASCII decoding

    UTF-8 can encode many characters; ASCII expects only 7-bit codes, so decoding fails.
  2. Step 2: Exclude unrelated causes

    File corruption or emptiness would cause different symptoms; speed does not affect decoding.
  3. Final Answer:

    The program cannot decode UTF-8 characters properly -> Option B
  4. Quick Check:

    UTF-8 needs proper decoding, else shows question marks [OK]
Quick Trick: UTF-8 needs compatible decoder, else shows ? [OK]
Common Mistakes:
MISTAKES
  • Assuming file corruption
  • Ignoring encoding differences
  • Blaming program speed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Intro to Computing Quizzes