Can I upvote or downvote questions and answers asked and given by me? And even if I am able to upvote them, will my reputation increase because of that?
Also, if I answer my own question and then accept it, will my reputation increase?
Can I upvote or downvote questions and answers asked and given by me? And even if I am able to upvote them, will my reputation increase because of that?
Also, if I answer my own question and then accept it, will my reputation increase?
You cannot vote on your own posts. Ever. The vote buttons are still shown, even on your own posts, for the purposes of consistency, but they do not work. If you attempt to vote for one of your own posts, you'll be presented with an error message that says, essentially, you cannot do that.
You can vote on answers submitted by other people to your own question. I think it should be obvious why that is the case. The only things you cannot vote on are posts that you, yourself, posted. (Or, that you, yourself, posted from an alternate account. Technically, the system won't block this, because it sees them as two separate accounts, but operating multiple accounts in this fashion is an abuse of the system. When moderators catch this, we invalidate the votes and issue suspensions. So, it's not something you want to do.)
Since you cannot upvote or downvote your own posts, your reputation will not be increased or decreased.
Note that you can accept answers (the green checkmark) to your own questions, whether the answer was posted by you or by someone else. When you accept your own answer, you don't earn the +2 reputation that you normally get for accepting an answer. Also, you have to wait 2 days after posting before you can accept your own answer; the idea is to give other community members plenty of time to post better solutions before you jump to accepting the first thing you thought of. (Not that new, better answers cannot be posted later, even after an answer has been accepted.)
So, no, if you answer your own question and accept your answer, your reputation will not increase. But don't take that as a disincentive to answer your own question. If you've found a solution that works, we always appreciate you writing it up as an answer and sharing it with the community. The important thing here is to get good answers to questions; reputation is just a side benefit.
Fundamentally, the rule is that nothing you do to yourself can increase your reputation. If it could, that would be a massive abuse vector, leading to reputation fraud.