Kudos to you for asking, and for wanting to understand the norms and values among this community! I appreciate and admire that. If you are asking and thinking about this, I think you are on a great path.
No. I don't think this is something you should aspire to. I think you should aspire higher.
I would suggest that we back up and first understand the broader mission and purpose of this site. Then, I would encourage you to tailor your use of the site towards participation that will contribute towards that broader mission.
A complication is that the community does not have 100% agreement about the mission of the site. I have seen at least two camps on this site. One perspective says, the mission of this site is to build up an archive of knowledge that will be useful to others in the future. The format of the archive is as high-quality questions and answers. From that perspective, what makes a question useful is if it is likely to be encountered by many others in the future, and if it can be answered in a way that will help others. A second perspective says, this site is to help others who are learning mathematics, and to be a site for high-quality help in the form of questions and answers. Different people might identify with these two perspectives to a different extent.
The guidance you are reading about context is the result of a difficult compromise between these two camps, about the minimal requirement that can be acceptable to both camps -- or at least, tolerable to most people. As a result, many might say that it is a minimum bar, and we'd encourage you to aspire to a higher standard.
Now, with that perspective, I hope it is clearer why your proposed format is not a good fit for this site. It is unlikely to be useful to anyone else ever in the future unless they are looking at the same exact exercise-style task. And, it does not help people who want to help you, because it provides little information about your current level, what progress you have made, what you are stuck on, or what level of detail is needed in the answer and what we can assume you already know.
Also, I suggest that you re-read the advice on How to ask a good question. The section on "Provide context" says a lot more than just "show an attempt". If you got the impression that all you need to do is "show an attempt", then please re-read that answer again. It lists some of the reasons why we are asking for context. Those reasons include "help the potential responders to your question give you the best help you need", help "others to judge the most appropriate "level" for an answer to your question", "provide some motivation", "tell us where the question comes from", and "indicate your own background". And, again, in my mind, just providing an attempt is not enough to make your question a good one.
Finally, I would not even consider your examples to constitute showing an attempt. I would not consider "I have tried [...], but I failed" satisfactory, because it does not tell us what happened when you tried that or how far you got or at what step you got stuck or why you failed.
How do you ask a question that will be useful to others? Well, when you are stuck with some exercise-style task, think about what is the conceptual challenge that is preventing you from solving the exercise. Exercises are intended to give you practice in the concepts you learned in class, and test your understanding of those concepts. So, treat your failure to solve the exercise as a symptom, and try to identify the root cause. What concept or technique are you struggling with? Can you identify a generalizable question about that concept or technique? Do you not know how to perform a substitution? Do you not know how to choose among multiple strategies for integrating? Do you not know what are the main strategies? Can you formulate a question that will be useful to others in the future, even if they are working on a different exercise, and is concrete enough to be answerable?
See also https://cs.meta.stackexchange.com/q/1284/755 for some tips on how to formulate a question that will be a good fit for this site.