Answer:
Explanation:
What translation?
b. The smallest integer that can be represented by a sign-and-magnitude binary number is always 0.
c. It is impossible to store 1610 in 4-bits because overflow will occur. d. The two’s complement representation of +6710 in 8-bits is 1000011.
Answer:
a. In one’s complement format, the leftmost bit is saved for the sign where 1 indicates a negative number and 0 indicates a positive number.
Explanation:
In binary numbers, 1's complement is used to represent the signed binary numbers. In unsigned numbers, there is no need of sign. But in signed binary numbers a signed bit is required. To add the bit that is represent the sign of the number in binary, 0 represents the positive number while 1 represents the negative number.
If we have a number and want to convert it in signed binary number, we just takes it 1's complement and add the signed bit at the left of the number.
E.g.
1 = 0001
is the binary of 1, if we want to add sign, we just add the zero at left most side of the binary which make it positive as given below:
+1 = 0 0001
Now of we want to convert it into negative than, we take 1's complement in which all bits are inverted.
-1 = 1 1110
Answer:
An if statement
Explanation:
Conditional statements are important aspects of programming where decisions are made depending on the outcome of one or more conditions.
Generally, the conditional statements are called selection control structure but because of the general syntax which it operates on, they are regarded as if statement.
There's no limit to the number of if statement a program can have.
The syntax of an if statement goes thus:
if(condition 1) {
statements
}
else if(condition 2)
{
statements
}
.....
.....
....
else
{
statement
}
An example is a c++ program segment that compares and prints the larger number between two variables
if(x > y)
{
cout<<x<<" is greater than "<<y;
}
else if (y>x)
{
cout<<y<<" is greater than "<<x;
}
else
{
cout<<"Both numbers are equal";
}
Answer:
The answer for the part of the operating system communicates with the BIOS, device drivers, resource managers, and APIs to coordinate operating system functions is theKernel.
Explanation:
The Kernel is the part of the operating system that is most visible to users.
It provides a reference point for activities in the operating system and coordinates operating system functions.
The kernel communicates with the BIOS, device drivers, and the API and handles the hardware, timing schedule, peripherals, memory, disks and user access.