Malware is short for MALicious softWARE. NCERT defines it as any software made to damage hardware, steal data or cause other trouble to the user. Viruses, worms, ransomware, Trojans and spyware are the kinds of malware it names first, and the chapter adds adware and keyloggers.
Exam questions on the types of computer virus usually test two things: how each type spreads, and what it does once it is inside. The table below sets them side by side.