Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.What type does CompareTo return? int string boolean char 2.The variable top in

ID: 3583026 • Letter: 1

Question

1.What type does CompareTo return?

int

string

boolean

char

2.The variable top in the array implementation of a stack referes to

the next available position in the array

the number of items in the stack

the item at the top of the Stack

A and B

3.A graph is connected if and only if the numbers of vertices in the traversal is the same as the number of vertices in the graph regardless of the starting vertex

Depth first

breadth First

Level order

None of the above

4.A tree is a tree that includes all of the vertices of a graph and some but possibly not all of the edges

directed

undirected

spanning

none of the above

Explanation / Answer

1)Ans) int

2)Ans) the item at the top of the Stack

3)Ans) Level order

4)Ans) Spanning