Courseiva
easyMultiple ChoiceObjective-mapped

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 emphasizes pure functions and is not the simplest approach for this.

  • Declarative programming

    Why it's wrong here

    Declarative programming focuses on what to do rather than how, not fitting here.

  • Object-oriented programming

    Why it's wrong here

    OOP involves classes and objects, which are overkill for a simple addition.

  • Procedural programming

    Why this is correct

    Procedural programming uses a linear sequence of instructions, ideal for simple calculations.

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.