Display the total number of data values in the array beaches

Assignment Help Programming Languages
Reference no: EM13950520

1.Which of the following commands is used to create an array?

a. create

b. declare

c. function

d. source

2.You use the ______________ command to call a function library file.

a. create

b. declare

c. function

d. source

3.Which of the following commands is used to display all variables?

a. create

b. typeset

c. function

d. source

4.You use the ______________ command to create a function named Goals.

a. unset Goals

b. declare -a Goals

c. function Goals ()

d. source Goals

5.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

6.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[*]}

7.A ______________ refers to the element number in an array.

a. call

b. data value

c. subscript

d .return value

8.______________ is the process of breaking a programming task into smaller pieces.

a. Function calling

b. Subscripting

c. Indexing

d. Modularization

9.A ______________ activates a function.

a. function call

b. return value

c. subscript

d. function module

10.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[*]}

11.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[*]}

12.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

13.A value is ______________ to a function when the function is given the value to process.

a. called

b. returned

c. passed

d. evaluated

14.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[*]}

15.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)

Reference no: EM13950520

Questions Cloud

What is one of the challenges in business ethics : What is one of the challenges in business ethics? What can help managers to overcome the challenge of teaching business ethics to employees
Would a division of labor still be useful in society : Suppose that everyone was completely versatile-able to do everyone else's work just as well as his or her own. Would a division of labor still be useful in society? Why?
Survey and legal fees incurred : The cost of land would include all  survey and legal fees incurred. cost of removing an unwanted building on the land.
Complete a consolidated worksheet for panther corporation : Complete a consolidated worksheet for Panther Corporation and its subsidiary Snake Corporation as of December 31, 20X2. Prepare supporting amortization and income distri- bution schedules.
Display the total number of data values in the array beaches : Which of the following commands is used to display the total number of data values in the array named Beaches?
Discuss and explain whether betty get out of this contract : Each question must include at least three scholarly sources; Must be typewritten in Times New Roman or Arial 12-point font, double spaced, and with 1-inch margins;
What value should you assign to the property : A property management firm that wants to continue leasing the eight houses has offered you $400,000 for the property. A developer wants to build a 12-story apartment building on the site and has offered $600,000. What value should you assign to th..
Prepare amortization and income distribution schedules : Complete a consolidated worksheet for Panther Corporation and its subsidiary Snake Corporation as of December 31, 20X2. Prepare supporting amortization and income distribution schedules.
Relation between pressure and volume : 1. A gas in a piston-cylinder assembly undergoes a compression process for which the relation between pressure and volume is given by pVn 5 constant. The initial volume is 0.1 m3, the final volume is 0.04 m3, and the final pressure is 2 bar. Deter..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd