Answer:
Explanation:
The following code is written in Python. It asks the user for an input. Then cleans the input using regex to remove all commas, whitespace, and apostrophes as well as making it all lowercase. Then it reverses the phrase and saves it to a variable called reverse. Finally, it compares the two versions of the phrase, if they are equal it prints out that it is a palindrome, otherwise it prints that it is not a palindrome. The test case output can be seen in the attached picture below.
import re
phrase = input("Enter word or phrase: ")
phrase = re.sub("[,'\s]", '', phrase).lower()
reverse = phrase[::-1]
if phrase == reverse:
print("This word/phrase is a palindrome")
else:
print("This word/phrase is NOT a palindrome")
Answer:
You will get compile error
Explanation:
A source file has source code, what a human understands. It isn't compiled or linked.
An object file has compiled, but not linked intermediary code.
An executable file has compiled and linked code which is executable.
Answer:
Was not PCI DSS- compliant.
Explanation:
This is a payment Card industry data security standard which is an information security standard that deal with branded credit card.
Consumers must learn how to separate the truth from deceptive techniques.
Explanation:
Deceptive advertisements are hazardous for both consumer and advertiser. It is a misrepresentation of the nature of products or services promoted falsely by advertisers.
Professionals exploit consumers by following means:
- false or incomplete information,
- fraudulent activities
- deceptive practices.
It may involve -
- financial theft,
- health risks,
- scams, etc.
Having proper knowledge about such practices and taking legal actions against fraudsters can help claim for the damages incurred.