Ask Data Structure Expert

2. Determine which of the following commands is used to create an array?
a.create
b.declare
c.function
d.source

3.You use the ______________ command to call a function library file.
a.create
b.declare
c.function
d.source

4.Which of the following commands is used to display all variables?
a.create
b.typeset
c.function
d.source

5.You use the ______________ command to create a function named Goals.
a.unset Goals
b.declare -a Goals
c.function Goals ()
d.source Goals

6.Which of the following commands is used to remove a function named Goals?
a.unset Goals
b.declare -a Goals
c.function Goals ()
d.source Goals

7.You use the ______________ statement to display all the values in an array named Beaches.
a.echo ${Beaches[0]}
b.echo ${Beaches[1]}
c.echo ${Beaches[#]}
d.echo ${Beaches[*]}

8.A ______________ refers to the element number in an array.
a.call
b.data value
c.subscript
d.return value

9.______________ is the process of breaking a programming task into smaller pieces.
a.Function calling
b.Subscripting
c.Indexing
d.Modularization

10.A ______________ activates a function.
a.function call
b.return value
c.subscript
d.function module

11.Which of the following commands is used to display the length of the data value located at subscript 5 in the array named Beaches?
a.echo ${Beaches[5]}
b.echo ${#Beaches[4]}
c.echo ${#Beaches[5]}
d.echo ${@Beaches[*]}

12.Which of the following commands is used to display the first value in the array named Beaches?
a.echo ${Beaches[0]}
b.echo ${Beaches[1]}
c.echo ${Beaches[2]}
d.echo ${Beaches[*]}

13.You use the ______________ command to declare a variable so it can only be used in a function.
a.global
b.function
c.declare -a
d.source

14.A value is ______________ to a function when the function is given the value to process.
a.called
b.returned
c.passed
d.evaluated

15.Which of the following commands is used to display the total number of data values in the array named Beaches?
a.echo ${Beaches[]}
b.echo ${*Beaches[#]}
c.echo ${#Beaches[*]}
d.echo ${@Beaches[*]}

16.Which of the following declares an array named States with the elements Florida, Georgia, Maine, Montana, and Alabama?
a.states=(Florida Georgia Maine Montana Alabama)
b.states[]=(Florida Georgia Maine Montana Alabama)
c.states[01234]=(Florida Georgia Maine Montana)Alabama
d.function()=(Florida Georgia Maine Montana Alabama)

 

Data Structure, Computer Science

  • Category:- Data Structure
  • Reference No.:- M9345444

Have any Question?


Related Questions in Data Structure

Data Communication Delivering Information anywhere

Topic: Data Communication Delivering Information anywhere. Write a 9-12 pages paper in which you: Present an overview of the origin and history of the concept. Describe the current use of and attitude toward the concept. ...

Problem regarding the management program

Problem: Looks like its just adding a save and load feature to the same file you sent me for python 3.5 Until now, you have had to leave your team management program running on your computer indefinitely since you did no ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As