Ask somebody to implement Dijkstra's algorithm and they might not remember specifically
which algorithm that was. Questions shouldn't say "BFS" or "Dijkstra" in them -- if you're going to ask whiteboard questions, the way to do it is to pose a problem where that's a solution. Ask an actual shortest path problem or a weighted shortest path problem, or an "any path in non-infinite time" problem, or what-have-you.
BFS and Dijkstra's aren't really the sort of thing you implement from memory, you figure it out fresh each time, unconsciously plagiarizing from your past experiences.