
CompTIATech+
Domain 4Objective 1
Programming Languages FC0-U71 Practice Questions (Page 6)
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 28 practice questions to prepare you well beyond it. (estimate)
28questions here
6free pages
6concepts
13%of the exam
Questions 26–28
- 26
A developer is writing a function that should return the sum of all numbers from 1 to n. The developer writes: function sum(n) { if (n <= 0) return 0; else return n + sum(n-1); }. What is the result of sum(5)?
Select an answer first - 27
A team is building a web application with a complex user interface that needs to respond to user interactions without page reloads. They also need to reuse code across the front end and back end. Which language choice best supports these needs?
Select an answer first - 28
A developer is reviewing code and sees the following line: if (x = 10) { ... }. In many languages, this is a logic error. Why?
Select an answer first
Finished these 3 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to FC0-U71
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.