Adobe Interview Question Testing / Quality Assurances

  • adobe-interview-questions
    0
    of 0 votes
    7
    Answers

    out put
    main() {
    unsigned int x;
    int y;
    x=3;
    y=-2;
    if(x>y)
    pf ("x is greater");
    else pf("Y is greater");
    }

    - Hmmm on January 28, 2012 in United States Report Duplicate | Flag
    Adobe Testing / Quality Assurance C

Country: United States
Interview Type: Phone Interview


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

nice question, just came to know that on comparison of unsigned and signed, signed is converted to unsigned. so answer will be "Y is greater"

- abhishekatuw on January 29, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

What is the value of y after being converted into unsigned ?

- ghantacoder on January 29, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

The first bit of Y which was previously being used to represent its sign will now be used to represent just its value (just for comparison). Y actually does not change. The value of Y during comparison with X is 4294967294.

- Anonymous on January 29, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

can u please tell me how to see the value of Y during the comparison?

- Reed Knight on February 13, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

value of Y is computed as follows --

on a compiler which sees int as 4 bytes ...


Y = 2^32 - |original value of y|

- jeev on March 03, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

what is pf?

- Anonymous on January 28, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

obviously printf

- anonymous on January 29, 2012 | Flag


Add a Comment
Name:

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

Books

is a comprehensive book walking you through every aspect of getting a job at a top tech company, while focuses on software engineering interviews.

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