Courseiva
easyMultiple Choice

FC0-U71 Practice Question: A junior developer needs to create a simple…

A junior developer needs to create a simple program that adds two numbers and displays the result. Which programming paradigm is most suitable for this task?

⚠ Common exam trap

CompTIA often tests the misconception that object-oriented programming is always the 'modern' or 'best' choice, leading candidates to select it even for trivial tasks where its overhead is unnecessary.

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

✓

Procedural programming

Procedural programming is the most suitable paradigm for a simple program that adds two numbers and displays the result because it follows a linear, step-by-step sequence of instructions. The developer writes a series of statements (e.g., `result = a + b; print(result)`) that execute in order, directly mapping the task's logic without unnecessary abstraction. This paradigm is ideal for small, straightforward tasks where clarity and direct control over execution flow are paramount.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Functional programming

    Why it's wrong here

    Functional programming suits stateless computation, but the stem's requirement is simply sequential input, arithmetic and output — imperative statements execute that directly. Functional purity, immutable bindings and composing pure functions add machinery the task never demands. It would be the right choice where transformations must be composed, parallelised or tested without side effects.

  • ✗

    Declarative programming

    Why it's wrong here

    Declarative programming describes the desired result rather than the step sequence, which suits query languages and configuration templates, not a trivial arithmetic procedure. Adding two numbers and printing the sum is naturally expressed as explicit imperative steps.

  • ✗

    Object-oriented programming

    Why it's wrong here

    Object-oriented programming models state and behaviour as classes and objects, so a two-number addition would need a class and method before any output appears. It is tempting because OOP suits large systems needing encapsulation and reuse. For a single arithmetic operation, a procedural script executes the steps directly without that scaffolding.

  • ✓

    Procedural programming

    Why this is correct

    Procedural programming structures a solution as a sequence of steps and procedure calls, which suits a simple linear task: read two values, add them, print the result. No objects, classes or state modelling are needed here.

About these practice questions

Courseiva writes every FC0-U71 question from scratch — 988 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.