Master the CompTIA Network+ Exam. Prepare with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your certification!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What is the main function of a keylogger?

  1. To enhance security protocols

  2. To encrypt files for protection

  3. To log every key pressed on a keyboard

  4. To remove malware from a system

The correct answer is: To log every key pressed on a keyboard

The main function of a keylogger is to log every key pressed on a keyboard. This type of software or hardware captures the input from the keyboard and records it, often without the user's knowledge. Keyloggers are typically used for tracking user activity, which can be exploited by cybercriminals to capture sensitive information such as usernames, passwords, and other personal data. While keyloggers can be used for legitimate purposes, such as monitoring employee activity or parental control, their primary function is centered around monitoring and logging keystrokes, making this choice the correct answer. Other functions mentioned, such as enhancing security protocols, encrypting files, or removing malware, do not align with the defining characteristics of a keylogger, which focuses specifically on tracking keyboard inputs.