Answer:
if(isalpha(passCode[0]))
{
passCode[0] = '_';
}
if(isalpha(passCode[1]))
{
passCode[1] = '_';
}
Explanation:
The first if statement uses isalpha() function which checks if the character passed in this function is an alphabet. If the character stored in 0-th position (which is the first position whose index is 0) of the variable passCode is an alphabet then it is replaced with the '_'
The next if statement checks if the second character in the passCode variable is an alphabet. This means the function isalpha() checks if the character stored in second position (index 1) of the variable passCode is an alphabet then it is replaced with the '_'
The complete activity with this chunk of code added and the output is attached in a screen shot.
Answer:
Option A: Software-as-a-service
Explanation:
Software-as-a-service (SAAS) is one of the cloud computing business models. The software is not delivered as a product hosted in the client machine. Instead, a customer just pays a subscription fee (sometimes free for limited quota) to gain access to the software which is hosted in a remote server maintainer by software vendor.
One benefit of SAAS is that the software vendor will usually responsible for software maintenance and update. The customer has no longer require to pay extra cost to upgrade the software. So long as the subscription is still valid, a customer can always access to the newest features of software.
Some examples of SAAS which is popular include DropBox, Google App, DocuSign, Microsoft Office 365 etc.
Answer:
Database platform as a service
Explanation:
The database platform as a service is also called the managed databases. This software serves by giving users the opportunity to set up and also operate databases. The user would be able to use the database cloud system without having to buy hardware or install software. The cloud providers are in charge of everything which includes it's availability and security.
Answer:
I'd go with the 2nd one
If it heats up more & more, then it's lifespan will be shortened more & more. The more it heats up, the less durability it has.
Answer:
CPI = 0.94
Explanation:
The formula for execution time is given below:
Execution time = clock cycles * cycle time
As Execution time = 750 s
clock cycle time = 0.333 ns = 0.333 * 10^-9
so putting these values in the above formula, we get
750 = clock cycles * ( 0.333 * 10^-9 )
clock cycles = 750 / ( 0.333 * 10^-9 )
clock cycles = 2.25 * 10^12
As the results of the spec cpu2006 bzip2 benchmark running on an amd barcelona has an instruction count = 2.389 * 10^12
and the formula for clock cycles is:
clock cycles = number of instructions * CPI
CPI = clock cycles / number of instructions
CPI = 2.25 * 10^12 / 2.389 * 10^12
CPI = 0.94