I can talk only about Germany. If there are sidewalks, pedestrians have to use them, also if there are special assigned bike paths, they have to be used too. But where those features are missing, both pedestrians and bicyclists have to use the road - unless it is marked as a motor way. And of course a road can only be marked as a motor way, if there are alternative ways to reach the same destination for the prohibited vehicles.