Courseiva
mediumMultiple ChoiceObjective-mapped

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

    Event-driven programming responds to events (e.g., user actions), not scheduled tasks.

  • Procedural programming

    Why this is correct

    Procedural programming is based on a sequence of instructions, suitable for automation tasks.

  • Object-oriented programming

    Why it's wrong here

    OOP uses classes and objects; a simple backup script usually does not need such structure.

  • Functional programming

    Why it's wrong here

    Functional programming emphasizes pure functions and immutability, not typical for simple scripts.

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.