Answer
TRUE
Explanation
A computer virus is a self-replicating program which are malicious and are designed to infect and gain control over a computer without the owner's knowledge.
To protect your computer from viruses especially when downloading files from the internet, it is advisable for one to perform regular windows security updates. This is because because windows have malware definitions to its windows defender and security essential utilities.
b. Replaces a circuit breaker on the main circuit board
c. Fits into the standard outlet box
d. Used when permanent protection is not available
Answer:
int count = 0; //int variables
int longest =0; // int variables
Scanner input = new Scanner(System.in); // given input is reference variable
String str= new String(); // creating object of sting class
while (input.hasNext()) // taking the input by using scanner reference
{
str= input.next(); // taking input in string
if (str.length() == longest) // checking condition
++count; // increment the count
else
if (Str.length() > longest) // if string is greater then longest
{
longest = str.length(); // calculating length
count = 1; // assign count to 1
}
}
Explanation:
Following are the description of the code :
The code that examines all the strings in the input source and determines how long the longest string (or strings are) is the following:
total = 0;% initial value is zero, in every while loop it will be incremented
while(input.hasNextInt()){
total += input.nextInt( );
}
print(“2 + 7”)
print(3 + 1)
Answer:
line 1 = 2+7 (you added quote marks)
line 2 = 4 (you did not add quote marks, which adds both nums together)
Explanation:
b. False