SUN MICRO SYSTEM PLACEMENT PAPER (TECHNICAL-JAVA)

 

1.struct XXX

 

{ int a;float b; char *s;}X;

 

If optimization :X not used in compiler then un used bits. give your assumption.

 

2.struct XXX

 

{int a:6; float b:4; char s; }structure; size og (structure);

 

3.class used for the multiple inheritance in java_________________

 

(a) Anonymous class

 

(b) inner class

 

(c) abstract class

 

(d) none

 

4. XDR fixes in which part of OS1 stack.

 

5. LDAP is____________service protocol.

 

6. Given definition for a function which returns a array of pointers with argument of int*.

 

7.Give a function declaration with no arguments which refers a two dimensional array

 

8.Pick up the correct function declaration.

 

1.void *[] name();

 

2 void int[][] name();

 

3 void ** name();

 

4 none of the above.

 

9.Give the difference between monolithic and microlithic kernel:

 

a mololic large

 

b micro used in embedded systems.

 

c.none.

 

10.RPC corresponds to_______________in OSI stack.

 

11.find the no.of page faults using LRU stack. eg.3 4 4 6 7 8 1 2 .. ..

 

12.The in order representation of a tree 41523 and preorder is 211513 Draw it?

 

13. when does a stack member will be initialized

 

(a) when object is created

 

(b) when object is initialized.

 

(c) doesn't depend on object.

 

(d) none.

 

14 no.of CPU in a multiprocess is contrasted by

 

(a) RISC no here of CPU

 

(b) memory

 

(c)___________

 

(d)_____________

 

15 main()

 

{char *s; s="hot java"; strcpy(s,"solarrs java") }

 

16. main()

 

{printf("hot java");fork() exit(0);}

 

1. when redirected to a screen what will be printed.

 

2 when redirected to file what will be printed.

 

17.main()

 

{ int ret; ret=fork();ret=fork();ret=fork();ret=fork();if(!ret) printf("sun");

 

elseprintf("solaris");

 

how many sun 4 Solaris will get printed

 

18. main()

 

{char *p='a'; int *i=100/*p; }

 

what will be the value of *i= 1

 

19 which data structure gives efficient search

 

1. B-tree

 

2 .binary tree

 

3. array

 

4. linked list

 

20. struct point

 

{struct point *next;int data;}x;

 

main()

 

{ int i;for(x=p;x!=0;)x=x->next,x++; freelist(x); }

 

freelist(x)

 

{free(x);return}

 

find error?

 

21. mutex and _________are similar locking mechanisms.

 

22.next question on from pointers and functions( highly) take care.

 

23. SNMP and SMIP transport layer protocols for TCP/IP&OSI.

 

24 Unix : difference between select and poll

 

 

 

Sun Microsystem Placement Paper (Technical Section)

 

 

1. For the following program.

 

struct XXX

{int a;

float b;

char *s;

}X;

 

If optimization :X not used in compiler then unused bits_________________.

Give your assumption_______________.

 

2. Give the output of the following program

 

struct XXX

{int a:6;

float b:4;

char s;

}structure;

 

size of (structure);

 

3.Class used for the multiple inheritence in JAVA_________________

 

(a) anonymous class

(b) inner class

(c) abstreet class

(d) none

 

4. XDR fixes in which part of OS1 stack.

 

5. LDAP is____________service protocol.

 

6. Given definition for a function which returns a array of pointers with argument of int*.

 

7. Give a function declaration with no arguments which refers a two dimensional array

 

8. Pick up the correct function declaration.

 

1. void *[] name();

2. void int[][] name();

3. void ** name();

4. none of the above.

 

9. Give the difference between monolithic and microlithic kernal:

 

a. monolithic large

b. microlithic used in embedded systems.

c. none.

 

10. RPC coresponds to_______________in OSI stack.

 

11. Find the no.of page faults using LRU stack.

 

eg.3 4 4 6 7 8 1 2 .. ..

 

12.The inorder representation of a tree 41523 and preorder is 211513 Draw it?

 

13. When does a stack member will be initialised

 

(a) when object is created

(b) when object is initialised.

(c) doesnot depend on object.

(d) none.

 

14. Number of CPU in a multiprocess is contrassed by

 

(a) RISC nohere of CPU

(b) memory

(c) both (a) and (b)

(d) None of the above

 

15. Give the output of the following program

 

main()

{char *s;

s="hot java";

strcpy(s,"solarrs java")

}

 

16. Give the output of the following program

 

main()

{printf("hot java");

fork()

exit(0);

}

 

(i). When redirected to a screen what will be printed.

(ii). When redirected to file what will be printed.

 

17. Give the output of the following program

 

main()

{int ret;

ret=fork();ret=fork();ret=fork();ret=fork();

if(!ret)

printf("sun");

else

printf("solaris");

 

18. Give the output of the following program

 

main()

{char *p='a';

int *i=100/*p;

}

 

what will be the value of *i= 1

 

 

19. Which data structure gives efficient search

 

1 B-tree

2 binary tree

3 array

4 linked list

 

20. Find the error in the following program

 

struct point

{struct point *next;

int data;

}

x;

 

main()

{int i;

for(x=p;x!=0;)

x=x->next,x++;

freelist(x);

}

 

freelist(x)

{free(x);

return

}

 

21. Mutex and _________are similar locking mechanisms.

 

22. A complex question on pointers and functions.

 

23. SNMP and SMIP transport layer protocols for TCP/IP&OSI.

 

24. UNIX: difference between select and poll

 

 Click to download more papers