Why won't some of the ArrayBag methods require changes when implementing the LinkedBag class?
A. because the methods don't use the self variable
B. because the ArrayBag class is based on lists
C. because the LinkedBag object is not iterable
D. because the methods don't directly access the array variable
Answer: D
You might also like to view...
What is the effect of the following code fragment?
``` c = 0; for ( int i = 0; i < MAX_SIZE; ++i ) if ( list1[i] == t ) ++c; ``` a. counts the number of occurrences of the value of c in list1 b. adds up all occurrences of the value of t in list1 c. counts the number of occurrences of the value of t in list1 d. assigns t to list1[i] and increments c
Comparable
A) specifies a single method, compareTo B) specifies three methods, compareTo, compare, and equals C) specifies two methods, compare and equals D) specifies two methods, compare and compareTo
Second-generation computers replaced tubes with transistors
Indicate whether the statement is true or false
Excel derives the chart scale based on the values in the worksheet along the vertical axis, also called the y-axis or value axis of the chart.
Answer the following statement true (T) or false (F)