How many edges does a spanning tree of a connected graph with 12 vertices contain?
Correct answer C. 11
Subject / 421 questions
Page 3 of Programming multiple-choice questions with answers. Tap an option to check yourself.
Page 3 of 22
Correct answer C. 11
Correct answer C. It finalises a vertex's distance when the vertex is removed from the queue, assuming later paths cannot be shorter
Correct answer C. 4
Correct answer C. Floyd's tortoise and hare algorithm
Correct answer A. O(1)
Correct answer B. O(n)
Correct answer B. To remove special cases for inserting or deleting at the front of the list
Correct answer A. 4
Correct answer A. Last In, First Out (LIFO)
Correct answer D. 3, 4, 2, 5
Correct answer B. Underflow
Correct answer A. top == MAX − 1
Correct answer C. Stack
Correct answer A. A B C * + D E / −
Correct answer B. A B + C D − *
Correct answer A. 4
Correct answer D. 10
Correct answer B. A B C ^ ^
Correct answer A. Stack
Correct answer D. (rear + 1) % n == front