Answer:
- def Lambda(strList):
- return list(filter(lambda s: (s.startswith("e")), strList))
-
- print(Lambda(["meaning", "cart", "engine", "egg"]))
Explanation:
The solution code is written in Python 3.
Lambda function is an anonymous function. It is a function without any name and it is started with keyword lambda. To write a lambda function to filter the string started with an 'e', we can write a lambda expression, s.startswith("e") that work on one input strList. If any word from strList started with letter "e", the word will be added into a list generated by filter function. At the end, the Lambda function will return the list of strings as output.
When we test the Lambda function using the sample string list (Line 4), we shall get ['engine', 'egg'] printed to terminal.
Im not sure about B. but if you can choose mutiple pick C,D,E but if you can shoose only one than pick A
Answer:
The correct answer is option (D).
Explanation:
According to the scenario, the most appropriate answer is option (D) because the firewall can be defined as the software program which checks through the network for incoming and outgoing communication on predefined rules.
while the other options are wrong because of the following reasons :
- A sniffer can be defined as the program which is used to check the network traffic but it didn't work on predefined rules.
- An auditor can be defined as a program that is used to analyze the network.
- The hacker can be a person who hacks the system to gain access or gather information.