'How to automatically align choices in LaTeX?

I'd like to align choices automatically in LaTeX document. I've found others' questions similar to mine, but there are mainly three problems.

(url)

how to automatically align the four choices of a multiple choice question in exam?

(problems)

  1. Bullet points cannot be changed freely using tasks.
  2. Limited number of bullet points.
  3. Exam class cannot be used with book(documentclass).

How can I arrange from 1 to 8 choices on a single line? Also, I want to make bullet points like enumerate when the choices span two, or more than two lines.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source