A contiguous segment of an array is specified using two subscripts, lower and upper. Which expression gives the position of the element in the middle of the array segment?

A) lower + upper / 2
B) lower /2 + upper
C) (upper - lower)/2
D) lower + (upper - lower) / 2


D) lower + (upper - lower) / 2

Computer Science & Information Technology

You might also like to view...

A collection of worksheets is sometimes called a _____.

A. worksheet collection B. 3D worksheet collection C. 2D workbook D. 3D workbook

Computer Science & Information Technology

What is the ERRDISABLE state?

a. It automatically disables a port on a Cisco Catalyst switch. b. It effectively shuts down the port c. It indicates that no traffic is sent or received on that port. d. All of the above are correct. e. None of the above is correct.

Computer Science & Information Technology

The data type returned from a string-building function is:

a. char b. char * c. string d. string * e. none of the above

Computer Science & Information Technology

The zoom level on a document only affects your view of the document and not how it will be printed

Indicate whether the statement is true or false.

Computer Science & Information Technology