Courseiva
mediumMultiple ChoiceObjective-mapped

FC0-U71 Practice Question: Which coding best practice improves code…

Which coding best practice improves code readability and maintainability?

⚠ Common exam trap

A common misconception is that using global variables simplifies data sharing or that hard-coding values makes code faster. In reality, these practices severely degrade maintainability and are universally discouraged in professional software development.

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

Using meaningful variable names

Using meaningful variable names (option B) is a core coding best practice because it makes the code self-documenting, allowing other developers (or the original author after time) to quickly understand the purpose of each variable without needing extensive comments. This directly improves both readability and maintainability, as changes can be made with lower risk of misinterpretation. In contrast, practices like using global variables or hard-coding values obscure logic and create dependencies that are difficult to manage.

Answer analysis

Option-by-option breakdown

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

  • Using global variables for all data

    Why it's wrong here

    Global variables make code harder to debug and maintain.

  • Using meaningful variable names

    Why this is correct

    Meaningful names clarify the purpose of variables, improving readability and maintainability.

  • Hard-coding values whenever possible

    Why it's wrong here

    Hard-coding values reduces flexibility and makes changes difficult; constants or configurations are preferred.

  • Writing long, single functions

    Why it's wrong here

    Long functions are difficult to read and test; smaller functions are better.

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.