Answer:
// program in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variable
int inp_month;
cout<<"Enter month:";
// read month
cin>>inp_month;
// if month is february
if(inp_month==2)
cout<<"Number of days in month:28"<<endl;
// if month is 4 or 6 or 9 or 11
else if(inp_month==4||inp_month==6||inp_month==9||inp_month==11)
cout<<"Number of days in month:30"<<endl;
else
// for others month
cout<<"Number of days in month:31"<<endl;
return 0;
}
Explanation:
Read month from user and assign it to variable "inp_month".If month is 2 then there is 28 days in the month.If input month is 4 or 6 or 9 or 11 then there is 30 days in the month.For other month there will be 31 days in month.We assume there is no leap year.
Output:
Enter month:4
Number of days in month:30
Answer: Hot sites
Explanation:
Virtualization in the cloud computing is the technology that are useful for the hot sites. It basically making the virtual image of the network devices so that it can be easily use multiple machine at the similar time.
There are various types of benefits of the virtualization in the cloud computing are as follow:
- It protect the system from the system failure.
- It is the cost effective technology.
- By using this we can easily transfer the data from the physical storage to the virtual server.
Answer:
Check the explanation
Explanation:
In C, int requires 4 butes to sotre a integer number. that means it requires 4*8 = 32 bits. The maximum number can be stored using 32 bits is

The first digit is used for sign. decimal equivalent to this number can be computed as

=
= 
That means int can store a up to 2147483646.
Testing with C code
#include<stdio.h>
int main()
{
int a = 2147483647; // a with max number
printf("%d\n",a);// printing max number
a = a+1;// adding one to the number
printf("%d\n",a);// printing the number after adding one
return 0;
}
THE OUTPUT
$ ./a.out
2147483647
-2147483648
Answer:
correct option is D i.e. 20
Explanation:
Given data:
Parallelizable portion is given as 95%
so remaining will be serial portion i.e. 5%
we know that, for infinite number of cpus, maximum speed is calculated as

where f denote serial portion = 5% = 0.05

v = 20
hence so for serial portion of 5%, maximum speed is 20
correct option is D i.e. 20