Question: Vectors can be accessed like arrays using the a. Class Vector inherit the class array b. They are both essentially the same data structure c.

 Vectors can be accessed like arrays using the a. Class Vector

Vectors can be accessed like arrays using the a. Class Vector inherit the class array b. They are both essentially the same data structure c. They both are able to have default arguments d. Because the clas opera tion because index s vector overloads the D operator to return the value at the requested Q9: When a vector is implemented using an array: a. We cannot expand the size of the vector. b. We can only use it to store integers. c. Never possible. thewarray of larger size needs to be created in order to dynamically change the size Q10: An iterator is implemented for some containers in Ct+ to a. b. c. d. Allow client class to access To change the address where data is stored in the container To query the size of the container To access individual elements of the container and to navigate thrugh the container s private variables of the container directly Q11: STL List and Vector provide return the lterator placed at the first element in the container by using the: a. Head pointer b. Iterator) function c. Start() function d. begin() function Q12: The Sequence container can be used as both an array and a List because It inherits the List class. a. b. It contains an array It always keeps its data sorted d. c. It provides functions that allow access to elements both by position and by index Q13: Each pass in a bubble sort algorithm: a. Places the largest element in a separate sequence b. Splits the sequence in two equal parts c. Places the median element in the middle d. Moves the largest element in its correct position in the sequence Q14: A general tree can have: a. More than one roots. b. Nodes that have two parents. c. External nodes that have children d. Nodes with any number of children a. the number of leaves on the tree b. list of all the root's children c. the number of descendants it has d. zero Q15: The depth of the root in a general tree is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!