
CompTIATech+
Domain 4Objective 3
Programming Concepts FC0-U71 Practice Questions (Page 1)
Part of the Software development concepts domain, which accounts for 13% of the FC0-U71 exam. CompTIA does not publish an official question count, but from its 60-minute exam (~25–40 total, ~3–5 in this domain), expect 1–1 from this objective — we provide 31 practice questions to prepare you well beyond it. (estimate)
31questions here
7free pages
8concepts
13%of the exam
Questions 1–5
- 1
Which of the following is an example of a syntax error?
Select an answer first - 2
A developer is reviewing two code snippets that are supposed to do the same thing. Snippet 1: `if (x > 0) { print("Positive"); }`. Snippet 2: `if (x > 0) print("Positive");`. Both snippets compile and run correctly. What is the key difference between them?
Select an answer first - 3
A developer defines a function `calculateDiscount(price, percent)` that returns the discounted price. They call it with `calculateDiscount(100, 10)`. What is the return value?
Select an answer first - 4
In most programming languages, what is the purpose of declaring a variable before using it?
Select an answer first - 5
A developer writes the following code: `if x = 5 { print("x is 5") }`. The program fails to compile. What is the most likely cause?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by CompTIA. “FC0-U71” is a trademark of its owner, used for identification only.