FC0-U71 Security Practice Question
Which type of malware attaches to legitimate files and spreads when those files are executed?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Virus
A virus attaches itself to files or programs and replicates when the infected file is executed. Worms spread without a host file; trojans disguise as legitimate software.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Ransomware
Why it's wrong here
Ransomware encrypts files for ransom, but does not attach to files to spread.
- ✓
Virus
Why this is correct
Correct. A virus attaches to files and spreads when executed.
- ✗
Worm
Why it's wrong here
Worms spread independently without attaching to files.
- ✗
Trojan
Why it's wrong here
Trojans disguise as legitimate software but do not self-replicate by attaching to files.
Go deeper
Related to this question
About these practice questions
One of 988 original FC0-U71 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This FC0-U71 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the FC0-U71 exam.