Question

What is the purpose of the if statement in a shell script?

A To define functions and procedures. Correct Answer Incorrect Answer
B To iterate over a list of values. Correct Answer Incorrect Answer
C To make decisions based on conditions. Correct Answer Incorrect Answer
D To handle errors and exceptions. Correct Answer Incorrect Answer

Solution

To make decisions based on conditions.

Practice Next

Relevant for Exams:

×
×