Solved

In an Implementation of a Queue Uses the ADT List,which

Question 56

Multiple Choice

In an implementation of a queue uses the ADT list,which of the following can be used to implement the operation enqueue(newItem) ?


A) list.add(list.size() ,newItem)
B) list.add(list.size() +1,newItem)
C) list.add(newItem.size() ,newItem)
D) list.add(newItem.size() +1,newItem)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions