Step 1: Recall the purpose of the Widal test.
The Widal test is a serological test used to detect antibodies against:
\[
\textit{Salmonella typhi}
\]
the bacterium responsible for typhoid fever.
Step 2: Understand what the test detects.
The test identifies antibodies against:
\[
\text{O antigen}
\]
and
\[
\text{H antigen}
\]
of Salmonella typhi present in the patient's serum.
Step 3: Evaluate the options.
• Typhoid \(\rightarrow\) Diagnosed using Widal test \(\checkmark\)
• Malaria \(\rightarrow\) Diagnosed by blood smear/rapid antigen test \(\times\)
• Pneumonia \(\rightarrow\) Diagnosed by clinical and laboratory methods \(\times\)
• Cancer \(\rightarrow\) Not diagnosed by Widal test \(\times\)
Therefore,
\[
\boxed{\text{Typhoid}}
\]
Hence, the correct answer is:
\[
\boxed{\text{(A)}}
\]