A. function sumitup { echo $(($1 + $2)) ; }
The function sumitup is a user-defined function in the Bash shell. It takes two arguments, represented by the variables $1 and $2. These arguments can be passed to the function when it is called. The function performs a calculation that adds the two arguments together and the result is stored in the $(($1 + $2)) expression. The echo command then outputs the result of this expression.
The keyword function is used to define a function, followed by the function name sumitup. The commands that the function will perform are enclosed in curly braces {} and separated by semicolons ;. In this example, the function only has one command, which is echo $(($1 + $2)).
This function can be called by simply typing sumitup followed by the two numbers that should be added. For example, sumitup 4 5 will output 9.
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.LX0-104 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
linux_admin
2 years, 2 months ago