Cop4530 Comprehensive

37 Questions | Attempts: 191
Please wait...
Question 1 / 38
🏆 Rank #--
Score 0/100

1. To find a pointer max to the largest element in the array a we can use the following genericalgorithm call (there are size elements in a)

Submit
Please wait...
About This Quiz
Cop4530 Comprehensive - Quiz

.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. The following illustrates the contents of the control stack S during a depth-first search of a tree [tree3],beginning at vertex R = root and searching for the vertex X = goal. (Search left before right, beginning at the root.) The search process is started but not complete.

Submit

3. Declare an fsu::Stack object S with elements of type fsu::String and underlyingcontainer fsu::Vector.

Submit

4. Declare an fsu::List object L with elements of type fsu::String.

Submit

5. This is an illustration of a vector of characters to be used in answering the question:element: B D F F F H K Q W Yindex: 0 1 2 3 4 5 6 7 8 9What is the return value of the call lower_bound('F') ?

Submit

6. What is the result of a levelorder traversal of the following tree?

Submit

7. What is the result of a postorder traversal of the following tree?

Submit

8. The following represents output from the call d.Dump() from the fsu::Deque object d:What is the result of the following output statement?std::cout << d;

Submit

9. Declare a Deque object d with elements of type String.

Submit

10. This is an illustration of a vector of characters to be used in answering the question:element: B D F F F H K Q W Yindex:      0 1 2 3 4 5 6 7 8 9What is the return value of the call upper_bound('F') ?

Submit

11. The following represents output from the call d.Dump() from the fsu::Deque<char> object d:What is the result of the d.Dump() after the call d.PushFront('X') ? 

Submit

12. The following represents output from the call d.Dump() from the fsu::Deque<char> object d:What is the result of the following output statement?std::cout << d[5];

Submit

13. Suppose the fsu::Deque<> d has elements in sorted order and we wish to insert the element x in correct order in d. The following generic algorithm call returns an iterator to the first correct location to insert x:

Submit

14. Declare a vector object widgetVector with elements of type Widget, size 15, and initialelement values equal to ZED.

Submit

15. Select the answer that best describes the asymptotic runtime of the operationfsu::List:: DestructorHere n is the size of the list.

Submit

16. What is the result of a pre-order traversal of the following tree?

Submit

17. An abstract data type [ADT] consists of the following (select all that apply):

Submit

18. Given the type definitiontypedef fsu::Pair < String , int > PairType;and instances:

Submit

19. Select a minimal set of operations that distinguish fsu::List from other fsu:: sequentialcontainers.

Submit

20. What is the worstcase runtime for the Search algorithm in a AVL Binary Search Tree? (Select all that apply)

Submit

21. Write a traversal loop for an fsu::Vector object v .

Submit

22. What is the result of a pre-order traversal of the following tree?

Submit

23. This is an illustration of a vector of characters to be used in answering the question:element: B D F F F H K Q W Yindex:     0 1 2 3 4 5 6 7 8 9What is the return value of the call lower_bound('Z') ?

Submit

24. What is the worstcase runtime for the Search algorithm in a RedBlack LeftLeaningBinary Search Tree? (Select all that apply)

Submit

25. Select a minimal set of operations that distinguish fsu::Vector from other fsu:: sequentialcontainers.(Here i is an iterator, t is a container element, and n is an integer.)

Submit

26. To copy the elements from an fsu::Deque<> d to an fsu::Vector<> v we can use the following generic algorithm call:

Submit

27. What is the worst-case runtime for the Search algorithm in a Red-Black Binary Search Tree? (Select all that apply)

Submit

28. Declare an ordered table object otable as an ordered set of pairs consisting of a key of typeKeyType and some data of type DataType. (Assume namespace fsu.)

Submit

29. This is an illustration of a vector of characters to be used in answering the question:element: B D F F F H K Q W Yindex:     0 1 2 3 4 5 6 7 8 9What is the return value of the call upper_bound('X') ?

Submit

30. Select the most appropriate statement of the asymptotic runtime for the sequential_searchalgorithm with input size n.

Submit

31. Select the answer that best describes the asymptotic runtime of the operationfsu::Vector::PushBack(t)Here t is an item of type fsu::Vector::ValueType and n is the size of the vector.

Submit

32. Select the answer that best describes the asymptotic runtime of the operationfsu::Deque:: bracket operator [i]Here i is an item of type size_t and n is the size of the deque. 

Submit

33. The adaptor template defining fsu::Stack < T , C > defines an implementation of ADT Stackby redefining the user interface of the container C. Which of the operations listed below must C possess for this adaptation to compile? (Check all that apply.)

Submit

34. Select the answer that best describes the asymptotic runtime of the operationfsu::List::PushBack(t) Here t is an item of type  fsu::List::ValueType and n is the size of the list.

Submit

35. Select the most appropriate statement for the asymptotic runtime for the binary_searchalgorithm with input size n.

Submit

36. Select the operations that define the associative container (Set) API. Here tval is a value anditer is an iterator.

Submit

37. Select a minimal set of operations that distinguish fsu::Deque from other fsu:: sequentialcontainers.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (37)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
To find a pointer max to the largest element in the array a we can use...
The following illustrates the contents of the control stack S during a...
Declare an fsu::Stack object S with elements of type fsu::String and...
Declare an fsu::List object L with elements of type fsu::String.
This is an illustration of a vector of characters to be used in...
What is the result of a levelorder traversal of the following...
What is the result of a postorder traversal of the following...
The following represents output from the call d.Dump() from the...
Declare a Deque object d with elements of type String.
This is an illustration of a vector of characters to be used in...
The following represents output from the call d.Dump() from the...
The following represents output from the call d.Dump() from the...
Suppose the fsu::Deque<> d has elements in sorted order and we...
Declare a vector object widgetVector with elements of type Widget,...
Select the answer that best describes the asymptotic runtime of...
What is the result of a pre-order traversal of the following tree?
An abstract data type [ADT] consists of the following (select all that...
Given the type definitiontypedef fsu::Pair < String , int >...
Select a minimal set of operations that distinguish fsu::List from...
What is the worstcase runtime for the Search algorithm in a AVL...
Write a traversal loop for an fsu::Vector object v .
What is the result of a pre-order traversal of the following...
This is an illustration of a vector of characters to be used in...
What is the worstcase runtime for the Search algorithm in a...
Select a minimal set of operations that distinguish fsu::Vector from...
To copy the elements from an fsu::Deque<> d to...
What is the worst-case runtime for the Search algorithm in a Red-Black...
Declare an ordered table object otable as an ordered set of pairs...
This is an illustration of a vector of characters to be used in...
Select the most appropriate statement of the asymptotic runtime for...
Select the answer that best describes the asymptotic runtime of the...
Select the answer that best describes the asymptotic runtime of the...
The adaptor template defining fsu::Stack < T , C > defines an...
Select the answer that best describes the asymptotic runtime of the...
Select the most appropriate statement for the asymptotic runtime for...
Select the operations that define the associative container (Set) API....
Select a minimal set of operations that distinguish fsu::Deque from...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!