Cyber Monday 2023! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: CM25OFF
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPP Topic 2 Question 59 Discussion

Actual exam question for C++ Institute's CPP - C++ Certified Professional Programmer exam
Question #: 59
Topic #: 2
[All CPP - C++ Certified Professional Programmer Questions]

Which lines of the code below contain proper instantiation of queue objects?






using namespace std;

int main()


deque mydeck;

list mylist;

vector myvector;

queue first; // line I

queue second(mydeck);// line II

queue third(second);// line III

queue fourth(mylist);// line IV

queue fifth(myvector);// line V

return 0;


Show Suggested Answer Hide Answer
Suggested Answer: A, B, C


Currently there are no comments in this discussion, be the first to comment!

Save Cancel