Question 2 • Introduction to Computer Science B – 4-232
A firewall is hardware or software that monitors incoming and outgoing network traffic and applies security rules to allow or block it. This helps prevent unauthorized access and other security breaches. A trojan horse and a keylogger are types of malicious software, while anti-malware detects or removes malware rather than controlling network traffic.
AI-written and checked against the verified answer.