Answer:
public class num9 {
public static void main(String[] args) {
int sum =0;
int num =5;
for(num =5; num<=500; num+=5){
System.out.println(num);
sum +=num;
}
System.out.println(sum);
}
}
Explanation:
- Declare and initialize the variables sum and num
- Use a for loop with the condition for(num =5; num<=500; num+=5) Since the loop will increment by 5 and run from 5 to 500
- Within the loop, add num to sum at each iteration
- Print all elements on seperate lines
- Outside the loop, print the final value of sum
Create a for loop
Answer:
A. Technicians A and B
Explanation:
When we're talking about generic scanners and about all OBD-II codes, in this case, both technician A and B is the correct answer. Because we can scan all OBD-II codes with a generic scan.
But the technician A just says generic tools must be able to read all generic OBD-II codes and technicians B just says generic scan tools must be able to read manufacture OBD-II code, both are correct.
Answer:
Packets with unknown source addresses will be dropped.
Explanation:
This question is incomplete, we must add the number "1" in Fa0/1.
Which event will take place if there is a port security violation on switch S1 interface Fa0/1?
There are four options:
- A notification is sent.
- A syslog message is logged.
-The interface will go into error-disabled state.
- Packets with unknown source addresses will be dropped.
In this specific example, we have configured a security protection mode, if there is an unknown MAC address, every package will be dropped.
We can configure in our switch with different Mac address, if there is not a MAC address in our configuration, the security mode will active, and we could receive any package.