Question

Given the following declaration char x = -12; char y = 63; if the computer uses...

Given the following declaration char x = -12; char y = 63; if the computer uses 2’s complement to represent the numbers then which statement is correct: a. The number of bits in x is equal to the number of bits in y b. The number of bits in x is less than the number of bits in y c. The number of bits in x is greater than the number of bits in y d. None of the above

Homework Answers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Design a combinational circuit with inputs a, b, c, d and outputs w, x, y, z....
Design a combinational circuit with inputs a, b, c, d and outputs w, x, y, z. Assume that the inputs a, b, c, d represent a 4-bit signed number (2s complement). The output is also a signed number in 2s complement which is 7 greater than the input if the input is less than 2, and is 3 less than the input if the input is greater than or equal to 2.
If and else statements: 1a.) Given the following declaration: int temperature; Write an if statement that...
If and else statements: 1a.) Given the following declaration: int temperature; Write an if statement that prints the message "The number is valid" if the variable temperature is within the range of -50 trough 150 (both values excluded). 1b.) Given the following declarations int x; int y; Write an if statement that assigns 100 to x when y is equal to 0. 1c.) Given the following declaration: int grade; Write an if statement that prints the message "The number is...
Given the following five pairs of (x, y) values, x 5 3 9 6 12 y...
Given the following five pairs of (x, y) values, x 5 3 9 6 12 y 10 6 4 3 1 Determine the least squares regression line (give the values of b0 and b1 (in that order), separated by a comma (numbers correct to 4 decimals))
The joint probability distribution of two random variables X and Y is given in the following...
The joint probability distribution of two random variables X and Y is given in the following table X Y → ↓ 0 1 2 3 f(x) 2 1/12 1/12 1/12 1/12 3 1/12 1/6 1/12 0 4 1/12 1/12 0 1/6 f(y) a) Find the marginal density of X and the marginal density of Y. (add them to the above table) b) Are X and Y independent? c) Compute the P{Y>1| X>2} d) Compute the expected value of X. e)...
PLEASE DON'T USE ANY OTHER PROOFS FROM POOFS BY CASES! USE DEFINITION OF ABSOLUTE VALUE! And...
PLEASE DON'T USE ANY OTHER PROOFS FROM POOFS BY CASES! USE DEFINITION OF ABSOLUTE VALUE! And I was thinking of doing 4 cases: 1. x greater than or equal to  0, and y greater than or equal to  0 2. x greater than or equal to 0, y less than 0 3. x less than 0, y greater than or equal to 0 4. x less than 0 , and y is less than 0. Proofs by cases - absolute value. Prove...
Convert (96)10 to binary form in 2's complement representation. Given the two binary numbers X =...
Convert (96)10 to binary form in 2's complement representation. Given the two binary numbers X = 1010011 and Y = 1010010 perform the subtraction X - Y. Enter your result below: Which bit of a signed binary number represents the sign?
Which of the following is TRUE in simple linear regression? A. A residual represents the difference...
Which of the following is TRUE in simple linear regression? A. A residual represents the difference between an observed Y value and predicted X value for a given Y value. B. A residual is always greater than the observed Y value. C. A residual represent the difference between the average X value and the average Y value. D. None of the above.
10. Which of the following statements is (are) correct? (x) Net capital outflow is always less...
10. Which of the following statements is (are) correct? (x) Net capital outflow is always less than net exports if the country has a trade deficit. (y) If S = I + NCO, then I = S – NCO z) If saving is greater than domestic investment, then NCO is greater than net exports. A. (x), (y) and (z) B. (x) and (y) only C. (x) and (z) only D. (y) and (z) only E. (y) only
#include <iostream> #include <cstdlib> using namespace std; int main(int argc, char *argv[]) // declaration of main...
#include <iostream> #include <cstdlib> using namespace std; int main(int argc, char *argv[]) // declaration of main function { int limit, // a user entered limit for a loop step, // a user entered step value x; // control variable for the loop cout << "Counting up from 1 to 10\n"; // The control variable x takes on values from 1 to 10 for (x = 1; x <= 10; x++) // for loop to count from 1 to 10 values...
[12] The expected reaction to a surplus is: A) a reduction in price. B) an increase...
[12] The expected reaction to a surplus is: A) a reduction in price. B) an increase in quantity supplied. C) a reduction in quantity demanded. D) all of the above. [13] Equilibrium price and equilibrium quantity are the price and quantity: A) where demand equals supply in a market. B) toward which a free market automatically moves. C) both of the above. D) none of the above. [14] A shortage will develop when a product's price is: A) equal to...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT