Answer:
- sum = 0;
- n = 1;
- f = fibonacci(n);
-
- while f <= 500
- if(mod(f,2)==0)
- sum = sum + f;
- end
- n = n + 1;
- f = fibonacci(n);
- end
-
- disp(sum)
Explanation:
Firstly, let's define several variables which are necessary to hold the value of total of Fibonacci sequence, <em>sum</em>, Fibonacci index,<em> n</em> and Fibonacci term, <em>f</em> (Line 1 - 3). We can get the first Fibonacci term using the Matlab built-in function <em>fibonacci() </em>(Line 3).
Since the Fibonacci term should be less than or equal to 500, create a while condition that meet the requirement (Line 5). Within the while loop, check if the current Fibonacci term is an even number. This can be achieved by using mod() function to calculate the <em>f</em> modulus by 2 (Line 6). If the result is zero, the <em>f</em> is an even number and f value will be added with variable <em>sum</em>.
Next increment the Fibonacci index by 1 and use the same function <em>fibonacci()</em> to get the next Fibonacci term, f, and repeat the same process as described above until the <em>f</em> becomes bigger than 500.
At the end, display the result (Line 13). The result shall be 188.
I believe your answer should be A.
Answer:
Lack of ips
Insecure configuration
Explanation:
Lack of IPS
This is fully known as intrusion prevention softwares this works by enabling the firewall and protecting the computer system from unauthorised users and potential attackers and it prevents data from being stolen by identifying potential attacks. It monitors the network continuously, thereby looking for possible malicious threats and also capturing informations about these threats.
Insecure configuration
Obviously if you have power shell enabled then you would have a secure configuration. Attackers can easily access your system in the presence of this flaw.
The correct answer here is A. AutoCorrect which is in all of the Office Suite products. AutoCorrect changes it without your approval, but generally leaves a small notification next to the word asking if you would like to change it back.