The nameplate tells you what the equipment is built for, and connecting it to anything else is not your decision to make.
The supply that is closest and most convenient is not automatically the supply the equipment is rated for, and the equipment will not refuse it.
A plate reading 24 V DC, 2 A tells you two things. It is a direct-current device, and it is built for twenty-four volts. Both have to match the supply. The 2 A tells you what it draws when it is working normally, which is what the circuit feeding it has to be able to deliver.
Check yourself: A nameplate reads 24 V DC. Can you connect it to a 120 V AC supply?
Answer: No. A 24 V DC rating does not authorize connection to 120 V AC.
Two things are wrong at once: the supply type is different (alternating instead of direct) and the voltage is five times the rating. Either one alone would be enough to rule it out.
No card. No account needed to start. Score by topic against the 70% mark.
Written from the owner's poster for this lesson. Nothing added beyond what the poster states.
Written for Texas apprentices as free study material. The Texas apprentice licence is an application, not an exam (Occupations Code 1305.161), and nothing here counts as apprenticeship hours or continuing-education credit. VoltMark is not affiliated with, endorsed by, or sponsored by NFPA, PSI, TDLR, or any state or local licensing authority. Always follow your employer's safety programme and your supervising electrician.

Electrician licensing exam prep: practice questions, timed exam simulations, and step-by-step help finding every answer in the NEC.