Question: 6) (Multiple choice ( 2 points)) The statements queue.Enqueue(item1 + 1); queue.Dequeue(item 1+1) in the client program a) would cause a syntax error at compile

6) (Multiple choice ( 2 points)) The statements queue.Enqueue(item1 + 1); queue.Dequeue(item 1+1) in the client program a) would cause a syntax error at compile time. b) would cause a run-time error. c) would be legal, but would violate the encapsulation of the queue. d) would be perfectly legal and appropriate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
