Answer the following statements true (T) or false (F)
1. A node can be dynamically allocated.
2. Before you can assign headPtr a value, you must first create a new Node object.
3. Generally speaking, a link-based implementation does not impose a fixed maximum size on the data structure.
4. Like an array-based implementation, a link-based implementation’s insertion and removal operations will need to move data items.
5. For a link-based bag, the most convenient place to make an insertion is at the beginning of the chain.
1. True
2. False
3. True
4. False
5. True
You might also like to view...
Assume you are working with the people table in the maxdb database described in this chapter. Write a query that lists the names of all the people and their hire dates sorted by their names.
What will be an ideal response?
The following code selects all the records from the ________ that do not have ________.
``` query = "SELECT * FROM AuctionItems " _ & "WHERE Ends = #" & Date() - 1 & "# " _ & "AND CurrentBidder IS NOT NULL " _ & "ORDER BY Display" ``` (a) current day, more than one bid. (b) past week, a null CurrentBidder field. (c) previous day, a null CurrentBidder field (d) previous day, one bid.
When debugging a Ruby program, you can use the ____ method to examine the value assigned to the program's local variables.
A. var local B. var variable C. show local D. show variable
An abstract class is somewhat restricted in how it can be used because
A) it cannot use dynamic binding for its member functions. B) it cannot use static binding for its member functions. C) All of its members must be public. D) the compiler does not allow objects of the class to be created. E) None of the above