I have done this:
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath, mathptmx, amssymb}
\usepackage{tasks}[newest]
\settasks{label = \textbf{\Alph*.}}
\usepackage{enumitem}
\setlist[enumerate]{
label = \textbf{Question \arabic*.},
ref = \arabic*
}
\newcommand\correct{\label{\theenumi}}
%=========================================================
\begin{document}
\begin{enumerate}
\item How many letters in the word ``Tea'' ?
\begin{tasks}(4)
\task $1$
\task $3$ \correct
\task $2$
\task $4$.
\end{tasks}
\end{enumerate}
The answer is \ref{1}.
\end{document}
I intend to automatically label (for example, \label{1} for question 1) and manually refer.
I need "The answer is B" (without bold and dot) in the last line, but remain \ref{1} for later use (as {1} refers to question 1).
It will be helpful if the solution stays on tasks and enumerate environments, because I've already used them for my entire document.


\newlabel{{1}}{{\textbf {B.}}{1}}which means you need\ref{{1}}– cgnieder Apr 27 '20 at 12:52\ref{{1}}in my case? – Nguyễn Xuân Duy Bảo Apr 27 '20 at 13:53\newcommand*\tasklabelformat[1]{\textbf{#1.}}and then set\settasks{ label = \Alph* , label-format = \tasklabelformat }. BTW: you should also adjust thelabel-width, check the warnings in the log file. – cgnieder Apr 27 '20 at 14:50