Courseiva
mediumMultiple Choice

FC0-U71 Practice Question: A programmer writes a script that automates the…

A programmer writes a script that automates the backup of files every night. Which type of programming paradigm is this script likely using?

⚠ Common exam trap

Many exam-takers confuse the trigger mechanism (scheduled event) with event-driven programming, but the script's internal logic is procedural, not reactive to events.

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

The script automates a fixed sequence of steps (e.g., copy files, verify integrity, log results) executed in order every night. This is the hallmark of procedural programming, which structures code as a linear series of instructions or procedures. The task does not require reacting to events, modeling objects, or avoiding side effects, making procedural the natural fit.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Event-driven programming

    Why it's wrong here

    A nightly backup runs on a schedule, so a sequential script suffices; event-driven programming instead binds execution to handlers firing on external triggers such as clicks, incoming packets or file-system notifications. It would be the right paradigm for reacting to asynchronous events, not for a fixed timed job.

  • ✓

    Procedural programming

    Why this is correct

    Procedural programming structures code as sequential, step-by-step instructions and procedures, matching a nightly backup script that runs a fixed sequence of file-copy operations. It satisfies the stem's automation scenario without requiring objects or declarative rules.

  • ✗

    Object-oriented programming

    Why it's wrong here

    The scenario describes a scheduled task, which sequential scripting handles; object-oriented programming structures code around classes, objects, inheritance and encapsulation. It would be the right paradigm when modelling reusable entities with state and behaviour, not for a simple nightly backup routine.

  • ✗

    Functional programming

    Why it's wrong here

    The script's purpose is sequential automation of file operations, which is imperative; functional programming centres on evaluating pure functions and avoiding mutable state. It is tempting because functional languages handle data transformation elegantly, and functional style is correct when composing stateless transformations over collections.

About these practice questions

This FC0-U71 question is part of Courseiva's 988-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.