Correct option is D
X had the intention and took action toward committing theft. Under Section 511 IPC (Attempt), even if the theft was factually impossible, attempt liability arises.
Information Booster:
· Section 511 IPC (62 BNS) punishes attempts to commit offences punishable with imprisonment.
· Impossibility is no defence if an act is done with criminal intention and is more than mere preparation.
Additional Information:
·
Example: Picking an empty pocket still counts as an attempt to steal.