We can use a shift operator when doubling the capacity of the array or cutting the capacity of an array in half because:

A. shift operators always multiply or divide by a power of 2
B. the array capacity is always a power of 2 in our array expansion/contraction strategy
C. doubling the array and cutting the capacity of the array in half both change the capacity of the array from one power of 2 to another
D. All of the above


D

Computer Science & Information Technology

You might also like to view...

The ________ Options button controls how text wraps around a picture or other object in a document

Fill in the blank(s) with correct word

Computer Science & Information Technology

A(n) ________ chart is used to show continuous data over time

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ability to redefine a method in a subclass is referred to as ___________.?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

To set the message for an Input text field use the ____ property.

A. Text B. Input C. Value D. Field

Computer Science & Information Technology