integer userInput
integer i
integer mid
integer array(20) number
userInput = 1
for i = 0; userInput >= 0; i = i + 1
if number[i] > -1
userInput = Get next input
number[i] = userInput
i = i - 1
mid = i / 2
if i > 9
Put "Too many inputs" to output
elseif i % 2 == 0
Put number[mid - 1] to output
else
Put number[mid] to output
It’s true because it’s also called “flash memory”
Answer:
1) B (++ and --)
2) A (1 2 3 4 5)
Explanation:
In the first question, the operators ++ and -- are used in almost all programming languages for adding and subtracting 1 respectively from an operand.
In the second question using a while statement the numbers 1-5 is printed out because the variable n=1 is increased by 1 after each iteration.
Security on a network not only means being able to prevent a hacker from breaking into your computer but also includes being able to recover from temporary service problems or from natural disasters is True.
a.True.
<u>Explanation:</u>
As network administrator he or she is responsible for both prevent from hacker and restore network from disaster with minimum down time. Network administrator has monitor network traffics and packets and do a period check on malware, spyware and ransom ware protection.
As network administrator should ready made tools or purchase to handle the network traffic to avoid network disaster.
Network administrator update firewall patches and upgrades virus signature files at period intervals. Network administrator also takes necessary advice from firewall hardware appliance from supplier and takes necessary steps o handle situation then and there.
Answer:
1 PROCESSOR :
(1 × 2.56 × 10^9) + (12 × 1.28 × 10^9) + (5 × 2.56 × 10^8) / 2 GHz = 9.6 s
2 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×2 + (5 × 2.56 × 10^8) / 2 GHz = 7.04 s
Speed -up is 1.36
4 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×4 + (5 × 2.56 × 10^8) / 2 GHz = 3.84 s
Speed -up is 2.5
5 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×8 + (5 × 2.56 × 10^8) / 2 GHz = 2.24 s
Speed -up is 4.29
Explanation:
The following formula is used in this answer:
EXECUTION TIME = CLOCK CYCLES / CLOCK RATE
Execution Time is equal to the clock cycle per clock rate