Cool idea.
So the first thing to do would be to design and create a badge / icon / something for this.
From there, we have several options.
The easiest is to just create either a download link to the badge in the Quiz Pass Text, or even to just embed the bad directly in that section. This is the easiest method because it requires no coding or changes – something simple you can do.
But we can take it, farther, if you need as well. For example, if your user is logged in, then we can actually save whether they completed the quiz to their user profile, and give them an option to download it from there.
Really, it just depends on how you want it to work, because the sky is the limit.
One of my concerns is that social sharing is actually a lot more complicated – from a logic standpoint – than people realize. For example, unless you are talking about an Instagram post (where they can just upload the badge as the entire post), how do you expect users to share this badge across social media? They can, of course, upload the image and also post a link to the quiz, but that’s not very intuitive for users and there is no way to automate that posting on our end. What are your thoughts on this?