Something like the following. Also you need to give what language you are using. Anyways, you should be able to convert this to your language of choice.
<script type="text/javascript">
function checkGeneration() {
var gen = ["Baby Boomer ","Generation X","Xennials","Generation Y"];
var reversestr = "";
var getyear = window.prompt("Enter a 3 digit number: ");
if (parseInt(getyear) <= 1964) {
alert(gen[0]);
} else if(parseInt(getyear) <= 1979) {
alert(gen[1]);
} else if(parseInt(getyear) <= 1985) {
alert(gen[2]);
} else if(parseInt(getyear) <= 1995) {
alert(gen[3]);
}
}
checkGeneration();
</script>
Answer:
Following is the program in the python language
st = 'sAN RaN' #String
print(st.lower()) #display into the lowercase
Output:
san ran
Explanation:
Following are the description of program
- Declared and initialized the string in the "st" variable .
- The lower function in python is used for converting the uppercase string into the lower case string .
- Finally in the print function we used lower function and display the string into the lower case
The question above has multiple choices as follows;
a. API
b. docstring
c. help
d. man
Well, I am stuck between B and C. I’ll however settle for (B) docstring.
Python docstrings provide an easier way to associate
documentation with python classes, modules and functions. The interactive help function
on the other is built in and is intended for interactive use. This function
exists to view help interactively. With the help feature, you can quickly learn
classes, modules, functions and many more.
Answer:
Quarantine the computer.
Explanation:
Malware can be characterized with negative software capable of causing various damages to a computer, such as theft of data and information, in addition to damage to devices.
In order to avoid having your computer infected with malware, it is essential to have installed reliable malware-checking software, in addition to taking all appropriate security measures when accessing the internet and never clicking on unknown or suspicious links.
Therefore, when realizing that the computer has been infected by malware, it is necessary to quarantine the computer and immediately disconnect from a network so that it does not infect other computers. The quarantine acts as an action where the infected file is moved to an encrypted folder where the malware cannot be executed and spread by the operating system.