Convert to decimal: 0x2c7b Convert to binary: 0x2c7b Convert from decimal to bin
ID: 3664998 • Letter: C
Question
Convert to decimal: 0x2c7b Convert to binary: 0x2c7b Convert from decimal to binary: 437 Convert from decimal to hexadecimal: 437 Determine the output of the following code segment (without running it): Assume that an int is 32 bits. Write a code segment that uses shifts to multiply the unsigned int x by 37. Using an 8-bit word, find the binary representation of -47 in 1. two's complement ones' complement sign-magnitude Using a 16-bit word, find the binary representation of -47 in 1. two's complement ones' complement sign-magnitude Assume that a short is represented by 11 bits and an int is represented by 17 bits. What is the output generated by the following code segment: You may use a calculator to generate the values, but you must show how you calculated them. 10. Dell computers have a unique alpha-numeric service tag consisting of digits and upper case letters. When you call Dell technical support, they would like to know the service tag number so that they can appropriately route your call. One way to automate this is to have you type in your service tag number. Since there is no convenient way to uniquely type letters on a standard telephone keypad. Dell also gives you an express code, which is a decimal number calculated from the service tag. The calculation algorithm is simple: the service tag is treated as a base-36 number, where A=10. B=11. etc. Find the express code that corresponds to the service tag: H32Y1F1. You must show how you got your answer.Explanation / Answer
Answer: 1)0x2c7b 11387
Answer: 2)0x2c7b 10110001111011
Answer; 3)437 110110101
Answer: 4)437 1B5
The following is the procedure to convert hexa decimal to decimal
Follow the table to convert each digit to decimal
and multiply with the 16 powers starting from right.
example
2c7b = 2x(16^3) + 12x(16^2) + 7x(16^1) + 11x(16^0)
Hexa decimal each digit can be converted to binary by 4 binary digits.
example
2c7b = 0010 1100 0111 1011
Decimal number can be converted to binary by following the procedure
divide the number with 2 find out the remainder and starting from bottom write it.
example 7 can be converted to 111
quotient remainder
7 / 2 3 1
3 /2 1 1
answer: 111