Courseiva
Applications and Software →mediumMultiple Choice

FC0-U71 Applications and Software Practice Question

Which programming concept allows a program to make decisions based on conditions, such as checking if a user is logged in?

⚠ Common exam trap

FC0-U71 often tests the distinction between control flow constructs (conditionals vs. loops) and data-related concepts (variables vs. functions), so candidates may confuse 'making decisions' with 'repeating actions' or 'storing data'.

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

✓

Conditional logic

Conditional logic (e.g., if/else statements) evaluates a Boolean expression and executes different code paths based on whether the condition is true or false. In the example, checking if a user is logged in requires a decision point: if the user is authenticated, grant access; otherwise, redirect to login. This is the fundamental mechanism for decision-making in programming, distinct from iteration, modularization, or data storage.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Loops

    Why it's wrong here

    Loops repeat a block while a condition holds, but they do not select between alternative branches. They are tempting because they also use conditions, and would be correct when the requirement is to iterate over a collection or repeat an action until a state changes.

  • ✗

    Functions

    Why it's wrong here

    Functions encapsulate reusable code but do not themselves choose between paths; the decision requires a conditional construct such as if. Functions would be the right answer when the requirement is to group repeated logic into a callable, parameterised block.

  • ✗

    Variables

    Why it's wrong here

    Variables store values but execute no branching logic, so they cannot evaluate whether a user is logged in. They are tempting because conditions test variable values, and declaring variables would be correct when a program needs to hold state for later use.

  • ✓

    Conditional logic

    Why this is correct

    Conditional logic evaluates boolean expressions such as whether a user is logged in, then executes different branches accordingly. It is the programming construct that lets a program make decisions based on runtime conditions, matching the scenario described.

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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

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.