Monday, February 15, 2010

Adobe Written Test Section II

Here it goes!!

11) 2’s Complement representation of (-5)

12)Input is reverse polish notation of an expression. WAP to evaluate the exression

i/p 235+*
o/p 16

[Reverse polish is nothing but postfix ]

13) WAP to find the depth of a tree

14) WAP to copy ‘n’ bits from pth posn (from LSB) of a number to another at p th posn from USB.

15)Binary search program was given which has 3 If statements in it
Like a[mid]< x , a[mid] > x and a[mid] == x
We were asked to reduce the no of if statements.
(I guess soln is to use ?: operator)

16)Few simple c questions like
Char a[]=”string”;
Char *a= “string”; what is the diff btw these 2 a’s?

17)What are bitfields.Where are they used?

18)what are data breakpoints.Give 2 applications where it is used.

19)double degC ,degF;

DegC = 5/9 *(degF-9);
I don’t remember the exact conversion formula.
Point here is that 5/9 should be typecasted to get correct result.

20) only 1 question is left which I don’t remember ;-)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.