Question Detail

COM 101 Computer Software and Programming Languages Objective Question

Question

What is an algorithm in the context of computer programming?
Options
A The physical hardware that executes instructions.
B A part of a computer program that performs a well-defined task.
Correct Answer
C A type of system software that manages memory.
D A high-level programming language.
Correct Answer

Option B is the correct answer.

Detailed Explanation

An algorithm is defined as a part of a computer program that performs a well-defined task. It is a group of steps within a program that has a particular function leading to the completion of that program.

Hint

Think of it as a specific, step-by-step procedure within a larger program to accomplish a particular goal.

Question Info