Answer:
Primary memory is directly accessible by Processor/CPU. Secondary memory is not directly accessible by the CPU. ... The memory devices used for primary memory are semiconductor memories. The secondary memory devices are magnetic and optical memories
Answer:
II and III only
Explanation:
In Code segment II, the output of the array will be started form arr[0] and ends at the arr[length]. Because loop starts from 0 and ends at length of array. This will print the full array data.
In code segment III, the output will be all values of array as loop starts form first index and ends at last index.
On the other hand I code segment prints all array values except last value of the array. As the loop shows that, it will terminate at second last value of the array.
Answer:
PCI uses a 32-bit or 64-bit parallel bus.
Answer:
Latency of an object O is shown below.
Explanation:
W segment and stalled state transmits nothing and waits for acknowledgement. The latency is 2 R TT + the time required for server that are using to transmit the object + the amount of time when server is in stalled state. Let K be the number of window that is K= O/WS .The serveries stalled state where K-1 is period of ime with period lasting RTT-(W-1)S/R
latency = 2RTT +O/R +(K-1)[S/R +RTT - WS/R]
After combining the two case
latency = 2 RTT + O/R + (K-1)[S/R +RTT - WS/R]
where [x] means maximum of (x.0). This is the complete ananlysis of the static windows.
server time for transmit the object is (K-1)[S/R +RTT - WS/R]
Answer:
<em>C++.</em>
#include <iostream>
using namespace std;
////////////////////////////////////////////////////////////////
int main() {
int weekly_hours = 0;
int hourly_rate;
float gross_pay = 0;
cout<<"Enter weekly hours worked: ";
cin>>weekly_hours;
cout<<"Enter hourly rate: ";
cin>>hourly_rate;
cout<<endl;
////////////////////////////////////////////////
if (weekly_hours > 40) {
gross_pay = (weekly_hours*hourly_rate) + ((weekly_hours*hourly_rate)*0.5);
}
else
gross_pay = weekly_hours*hourly_rate;
cout<<"Weekly gross pay: $"<<gross_pay;
////////////////////////////////////////////////
return 0;
}