"There is a skill of knowing when and how to ask questions, and this skill can be learned."
^ this
Ask the questions well and more senior dev isn't going to be nearly as annoyed and be way more willing to dive in and help. Show that at a minimum you understand why you are stuck.
"This doesn't work, help" is bad.
"This doesn't work because when X happens I get Y instead of Z which is what would have expected" is much better.