Adobe Interview Question






Comment hidden because of low score. Click to expand.
0
of 0 vote

binary: 0000 0101
1s complement: 1111 1010
add 1 to get 2s complement: 1111 1011

- Anonymous March 11, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

If we assume that the maximum word length is 8 bits,
The binary representation of -5 is 1000 0101
Then, 1's complement is 0111 1010
2's complement is 0111 1011

- Snehal March 12, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

poda vannam..........

- Anonymous July 27, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

beginning with the signed 8-bit binary representation of the decimal value 5, using subscripts to indicate the base of a representation needed to interpret its value:

000001012 = 510

The most significant bit is 0, so the pattern represents a non-negative (positive) value. To convert to −5 in two's-complement notation, the bits are inverted; 0 becomes 1, and 1 becomes 0:

11111010

At this point, the numeral is the ones' complement of the decimal value 5. To obtain the two's complement, 1 is added to the result, giving:

111110112 = − 510

The result is a signed binary number representing the decimal value −5 in two's-complement form. The most significant bit is 1, so the value represented is negative.

- Anonymous March 13, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

beginning with the signed 8-bit binary representation of the decimal value 5, using subscripts to indicate the base of a representation needed to interpret its value:

00000101 = 5

The most significant bit is 0, so the pattern represents a non-negative (positive) value. To convert to −5 in two's-complement notation, the bits are inverted; 0 becomes 1, and 1 becomes 0:

11111010

At this point, the numeral is the ones' complement of the decimal value 5. To obtain the two's complement, 1 is added to the result, giving:

11111011 = − 5

The result is a signed binary number representing the decimal value −5 in two's-complement form. The most significant bit is 1, so the value represented is negative.

- Anonymous March 13, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

is -5 not stored as 2``s complement of 5 in memory??

- Anonymous August 07, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

2's compliment 0f -5 if 5.
for 8 bit it ll be 00000101.

As we know -5 is represented as 11111011

so 2's compliment is 1's compliment+1
1's compliment is 00000100+00000001 = 00000101 = 5 (decimal)

- kaustubh August 20, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

00001010

- joebrainzheff1 November 14, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

[]

don't you know we r of ur

- Anonymous November 30, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

111001.100

- Anonymous August 19, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

0101 is 5
then 1010 1's
then 1011 is two's

- vinod kadam December 08, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Why da why

- Anonymous December 22, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Tq

- Anil January 09, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

😃 Helpful 😃

- Anonymous April 17, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

2's complement for -24

- Riya June 29, 2018 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

-3

- Anonymous November 08, 2020 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

_45

- Anonymous January 05, 2021 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More