Answer:
The correct code to the given question is
if ((counter % 10) == 0) // check the condition
{
System.out.println("Counter is divisible by ten: " + counter); // display
}
else // check the condition
{
System.out.println("Counter is not divisible by ten: " +counter); // display the //value
}
counter++; // increment the value of counter
Explanation:
Following are the description of code
- In the given question we have to check the condition that the given number is divisible by 10 or not .
- In the if block if the number is divisible by 10 then it print the value of number and increment the value of counter .
- In the else block if the number is not divisible by 10 then it print the value of number and increment the value of counter .
- It means the value of counter is increases in the if block as well as in the else block .So we have to remove the counter statement from there and place outside the if and else block .
<span>What command should you use to rearrange parts of files on the drive so they are contiguous? Answer = Defrag</span>
<span>b. false; unlike clip art, you cannot resize a photograph
</span>
Answer:
The blocking ping is not effective in an organization because it may required ping echo message from some trusted system. the best method will be to do the filtering of incoming echo ICMP messages.
In systems we have ping utility, that is based on ICMP protocol. Its function is to check the end to end connectivity of the system.
In this case a fist all an echo ICMP message is send to the host then host reply with ICMP message. to defend yourself from this flood attack, we need to filter the incoming echo ICMP packet messages. a net filter can be used to achieve it.
The best method be to applied is the firewall having a net filter with limit setting or any intrusion system. In market we have various firewall and intrusion system available to do so.
Explanation:
Solution
Ping Flood Atack:
In this attack the main of the attacker is to saturate the system with ICMP for example (internet control message protocol) traffic. as you have saturated the system, it will have less CPU time to serve others.
Defence against this attack:
In our systems we have ping utility, that is based on ICMP protocol. Its used to check the end to end connectivity of the system. here fist all an echo ICMP message is send to the host then host reply with ICMP message. to defend yourself from this flood attack , we need to filter the incoming echo ICMP packet messages. a Net filter can be used to achieve this.
The best way will be to used the firewall having net filter with limit setting or any intrusion system. In market we have various firewall and intrusion system available to do so.
Blocking ping packets to avoid ping flood attack:
Its not a good approach to block ping packets. because you may required ping echo message from some trusted system. The best option will be to do the filtering of incoming echo ICMP message.
The way sampling is used to store audio recordings are:
- Sound capture.
- converting digital signal.
- sound wave capture, etc.
<h3>How is sampling used to store audio recordings?</h3>
In this process, sound is taken in by the use of a microphone and so it is later converted into a digital signal.
Note that an analogue-to-digital converter is often used to taken in or capture a sound wave at frequent time intervals. This recording is then regarded as a sample and the data is stored in a file for future use.
Learn more about interview from
brainly.com/question/8846894
#SPJ1