Answer of this question is
D. Query
Answer:
<h3>A minimum of 4 bits will be needed.</h3><h3 />
Explanation:
As there are 12 months in a year so will need 12 need combinations.
Number of bits can be determined by the powers of 2. By this we mean:
Two unique combinations can be made that are 0 and 1.
- <u>If 2 bits are used</u>
4 unique combinations can be made.
- <u>If 3 bits are used</u>
8 unique combinations can be made.
- <u>If 4 bits are used</u>
16 unique combinations can be made.
Now we will have to use 4 bits so that 12 unique combinations may be assigned to each month.
<h3>Following is given the bit pattern for each month:</h3><h3 />
JANUARY => 0000
FEBRUARY => 0001
MARCH => 0010
APRIL => 0011
MAY => 0100
JUNE => 0101
JULY => 0111
AUGUST => 0110
SEPTEMBER => 1000
OCTOBER => 1001
NOVEMBER => 1010
DECEMBER => 1011
<h3>i HOPE IT WILL HELP YOU!</h3>
Answer:
876100
019343
Explanation:
10s complement of a decimal number is obtained by the following process:
- Obtain 9s complement ( Subtract each digit by 9)
- Add 1 to the result
1) 123900
9s complement => (9-1)(9-2)(9-3)(9-9)(9-0)(9-0)
= 876099
Adding 1 , 10s complement of 123900 = 876100
2) 980657
9s complement = (9-9)(9-8)(9-0)(9-6)(9-5)(9-7)
= 019342
Adding 1 , 10s complement of 980657 = 019343
Answer:
Code in C++
Explanation:
C++ Code
#include<iostream> //for input and output
using namespace std;
int main()
{
int hour;
int minute;
cout<<"Enter the hour:";
cin>> hour;
cout<<"Enter the minute:";
cin>>minute;
minute = minute+15;
if(minute>=60){
hour++;
minute=minute-60;
}
if(hour>=24){
hour=0;
}
cout<<"Hours: "<<hour<<endl;
cout<<"Minutes:"<<minute;
return 0;
}
Code Explanation
First we need to declare two int variables to hold hour and minute values input from user.
Check if by adding 15 minutes into minute entered by user is greater then or equal to 60 then increment into hour and subtract 60 from minute.
Another check is that if user enters more then 24 hour or by making increment into hour, the hour values i greater then or equal to 24 then we need to change the hour to 0.
Result
Case 1:
Enter the hour:8
Enter the minute:15
Hours: 8
Minutes:30
Case 2:
Enter the hour:9
Enter the minute:46
Hours: 10
Minutes:1
Answer:
Web based email is a service that allows to access and use electronic mail via web browser.
It allows clients to login into the email software running on a web server to compose, send and receive, delete mails basically.