Answer:
1. True 2. False 3. True 4. True 5. True 6. False 7. True
Explanation:
1. A hacker/cracker finds and exploits weakness in order to gain access with a criminal intent, just as an intruder.
2. Activists are people who campaign to bring about a positive political or social change.
3. It is illegal to use a device as a packet sniffer to steal people's usernames and passwords.
4. This quite true, as there is a huge community of hackers where people are highly recognized for hacking.
5. Yes, intruders have a common attack methodology.
6. IDS monitors networks or systems to identify suspicious activities while a user interface is the means the computer and the user interacts. So it's false.
7. instrusion detection involves monitoring networks or systems to identify suspicious activities, so an intruder is detected if their behavior is suspicious when compared to a legitimate user.
Answer & Explanation #1
To answer your first query. You can write a function that takes two arguments and returns their sum like this:
#Python program to add two numbers using a function
def add_num(a,b): #function for addition
sum=a+b
return sum #return value
num1=25 #variable declaration
num2=55
print("The sum is",add_num(num1,num2)) #call the function
Answer & Explanation #2
As for your error, I believe it is an indent error in your first return statement. All you must do is indent the return statement.
Is it where you can pick multiple answers