Can you use the random_shuffle generic algorithm with a list container? What about a vector container? Why or why not?

Fill in the blank(s) with the appropriate word(s).


The random_shuffle algorithm requires random access iterators. The list doesn’t hve them but the vector does. So random_shuffle does not work with the list container but does with the vector.

Computer Science & Information Technology

You might also like to view...

A(n) ______ tablet has a screen in its lid and a keyboard in its base, with the lid and base connected by a swivel-type hinge.

A. convertible B. detachable C. slate D. ultrathin

Computer Science & Information Technology

The ____ icon on a collapsible block indicates that tapping the button expands the block to display content.

A. minus sign B. question mark C. plus sign D. exclamation mark

Computer Science & Information Technology

If you were creating your own dialog box, which of the following features would be most appropriate to show five different print options?

A) List box B) Spin arrow C) Check box D) Text box

Computer Science & Information Technology

There are a number of special Web pages, called ____, available to help you locate what you are looking for on the Internet.

A. search sites B. virtual IDs  C. domain sites D. Internet repositories

Computer Science & Information Technology