nerdexam
CompTIA

FC0-U61 · Question #622

A programmer is designing an expert system that uses a series of closed-ended questions to arrive at specific output. Which of the following characteristics will MOST likely be used in the code for th

The correct answer is A. Branching. An expert system that uses a series of closed-ended questions to arrive at specific output will most likely use branching in its code to guide the user through a decision path.

Software Development

Question

A programmer is designing an expert system that uses a series of closed-ended questions to arrive at specific output. Which of the following characteristics will MOST likely be used in the code for the expert system to achieve this?

Options

  • ABranching
  • BLooping
  • CArrays
  • DVectors

How the community answered

(41 responses)
  • A
    80% (33)
  • B
    10% (4)
  • C
    2% (1)
  • D
    7% (3)

Why each option

An expert system that uses a series of closed-ended questions to arrive at specific output will most likely use branching in its code to guide the user through a decision path.

ABranchingCorrect

Branching (e.g., using if-else statements or switch cases) is essential for an expert system that uses closed-ended questions, as it allows the program to follow different paths and ask subsequent questions based on the user's previous answers, leading to a specific diagnosis or recommendation. This simulates a decision-making process by evaluating conditions and executing corresponding code blocks.

BLooping

Looping is used to repeat a block of code multiple times, which is not the primary mechanism for navigating a series of conditional questions in an expert system.

CArrays

Arrays are data structures used to store collections of elements, which are useful for organizing information but do not inherently provide the decision-making logic needed for an expert system's question-and-answer flow.

DVectors

Vectors are dynamic arrays, also used for storing collections of elements, and do not provide the conditional execution logic necessary for an expert system's decision tree.

Concept tested: Programming logic - decision structures

Source: https://www.ibm.com/docs/en/SSD5K6/8.1.0?topic=rules-if-then-else-statements

Topics

#programming logic#expert systems#branching

Community Discussion

No community discussion yet for this question.

Full FC0-U61 Practice