You can logout from Quora by clicking on the Profile menu at the top-right. You should see a Logout link at the bottom of the dropdown menu that appears.
On the mobile apps and mobile web, go to the “You” tab, click the “…” icon, and then select the “Logout” option that appears at the bottom of the menu.