For loop, if you have to fill water in a bucket three times, It will fill water in a bucket three times. While loop, If you have to take water from the well multiple times but stop when the water is empty in the well.
Explanation:
For loop is used mostly static way of programming.
While loop is used for dynamic approach of programming.
Static approach has fix number of times the task is done.
Dynamic approach is conditional attempt to complete the entire task.
For loop uses discrete which means it uses the count approach.
While loop is basis on characteristic, It works mostly with alphabet.
Functions play major role in while loop to take a dynamic approach.
This assume that input is a file and is given on command line. Please note this will ot print lines with frederick as thats what I feel question is asking for
#!/usr/bin/perl -w
open(FILE, $ARGV[0]) or die("Could not open the file $ARGV[0]");
Under fundamental principles of software engineering, the term "abstraction" is simply defined as the act of highlighting some details and hiding other ones.
Thus, the correct answer among the options is Abstraction.