Adobe Placement Paper 2012

by admin on January 20, 2012

1. What are Data breakpoints? Give two scenarios where we make the use of this

2. Compare two binary trees they are same or not.

3. What do you mean by Bit fields? Give example

4. Write the function for changing a number from hexadecimal to integer htoi(s

5. You have N computers and [Ca, Cb] means a is connected to b and this connectivity is symmetric and transitive. then write a program which checks that all computers are interconnected and talk two each other

6. WAP to find Depth of tree program. We were given the structure of the node using that we need to write the code.

7. Some code in assembly was given and given five options. What is being calculated?
Ans (XY) 2 + Y + Z

8. In binary search we have two comparisons one for greater than and other for less than the mid value. Optimize so that we need to check only once

9. Represent (-5)10 in 2’s complement representation in 8 bits

10. What is the output of the program
void main()
{
char s[]=”oracle is the best”;
char t[40];
char *ss,*tt;
while(*tt++=*ss++);
printf(“%s”,t);
getch();
}
// A. oracle is the best
// B. Core dump
// c. Error Message
// D. Goes into infinite loop
Ans: B. core dump (Garbage value)

11. What is the output of the program
void main()
{
int j[10]={9,7,5,3,1,2,4,6,9};
int i=1;
clrscr();
for(;i<9;i++)
printf(“%d “,–j[i++]);
getch();
}
// A. 6,2,1,5
// B. 6,2,1,5,7
// c. Error Message
// D. core dump
Ans: A. 6,2,1,5

12. Expression was given. Draw tree and then find the postfix

13. which is the best data structure to check correct paranthesization of an expression ?? give reasons ?

14. tell diff a) void (*P)(void *a[],int n);
b) void *(*p[])(void *a,int n);

15. in one line tell the maximum of 3 nos using tertiary operator(?:)

16. a question was there in which #defeine sum(a,b) (a*b)
#define mult (a,b) (a)+(b)

17. difference between #define and typedef?

18. What is the difference between Char a[ ]=”string” and char *a=”String”

19. Expand a[3][2][5]=6;

Related posts:

  1. SAP Labs Placement Paper 2011
  2. ORACLE Placement Papers 5
  3. ORACLE Placement Papers 21
  4. ADOBE Placement Papers 1
  5. ADOBE Placement Paper

Leave a Comment

Security Code:

Previous post: