Answer
First part:
The transmitted 8-bit sequence for ASCII character '&' with odd parity will be 00100110. Here leftmost bit is odd parity bit.
Second part:
The invalid bit sequence are option a. 01001000 and d. 11100111
Explanation:
Explanation for first part:
In odd parity, check bit of either 0 or 1 is added to the binary number as leftmost bit for making the number of 1s in binary number odd.
If there are even number of 1s present in the original number then 1 is added as leftmost bit to make total number of 1s odd.
If there are odd number of 1s present in the original number then 0 is added as leftmost bit to keep the total number of 1s odd.
Explanation for second part:
A valid odd parity bit sequence will always have odd number of 1s.
Since in option a and d, total number of 1s are 2 and 6 i.e. even number. Therefore they are invalid odd parity check bit sequences.
And since in option b and c, total number of 1s are 5 and 7 i.e. odd numbers respectively. Therefore they are valid odd parity check bit sequences.
Answer:
Your answer would be, B. Fifth digit ftom the right.
Explanation:
Binary with letters works like this,
the first 3 bits from the left, determine if the character is caps or lowercase, 010 is capital and 011 is lowercase, the next 5 are like this,
First - 2 to the power of four
Second - 2 to the power of three
Third - 2 to the power of two
Fourth - 2 to the powet of one
Fifth - 2 to the power of zero
So, given that information, the fourth digit from the right is 2 to the power of the three. The sixth digit is a bit to determine the capitalization, so the only answer left is B.
Answer:
// Program to convert rounded decimal to string
// This program segment is written in Java programming language
// Comments are used for explanatory purpose
// Program starts here
import java.text.D ecimalFormat;
public class RoundNumbers
{
public static void main(String[] args) {
// Declare number and assign value to it
double cv = 18.7713;
// Call decimalformat method
DecimalFormat commaType = new DecimalFormat("#,###.###");
//Convert cv to string
String myPi = commaFormat.format(cv);
// Print result
System.out.println(commaType.format(cv));
}
}
// End of Program