Question 84Asked in Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)

In BFS, vertices are explored level by level, starting from the:बीएफएस में, वर्टिस को स्तर से स्तर तक खोजा जाता है, से शुरू होता है:

बीएफएस में, वर्टिस को स्तर से स्तर तक खोजा जाता है, से शुरू होता है:
  1. ADeepest levelसबसे गहरा स्तर
  2. BShallowest levelउथले स्तर
  3. CMiddle levelमध्य स्तर
  4. DHighest degree vertexउच्चतम डिग्री वर्टेक्स
Show answerHide answer

Correct answer: (B) Shallowest levelउथले स्तर

Explanation

BFS starts at the source (level 0, the shallowest) and visits all vertices at distance 1, then distance 2, and so on, using a queue.BFS स्रोत (स्तर 0, सबसे उथला) से शुरू होकर दूरी 1 के सभी शीर्ष, फिर दूरी 2 के, और इसी तरह देखता है, और queue का उपयोग करता है।

From Bihar STET 2025 Paper II Computer Science PYQ, 4 Nov 2025, Shift 2 (2:00 PM)

This is question 84 of Bihar STET 2025 Paper II Computer Science PYQ, 4 Nov 2025, Shift 2 (2:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.