Question: 1. Command line arguments in Perl are stored in a a. scalar b. resource c. array d. hash 2. Elements of a split line can
1. Command line arguments in Perl are stored in a
a.
scalar
b.
resource
c.
array
d.
hash
2. Elements of a split line can be glued together with
a.
combine
b.
join
c.
push
d.
shift
3. Which of the following is used in Perl?
a.
else if
b.
elseif
c.
elsif
d.
elif
4. The last character of a line in Perl is removed by
| a. | chop | |
| b. | chomp | |
| c. | Either a or b | |
| d. | None of the above |
5. The shift function
| a. | adds elements to a list to the left | |
| b. | removes elements from a list to the left | |
| c. | adds elements to a list to the right | |
| d. | removes elements from a list to the right |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
