0. struct XXX
{
int a;
float b;
char *s;
}X;
If optimization :X not used in compiler then un used
bits_________________. give your assumption_______________.
1. struct XXX
{
int a:6;
float b:4;
char s;
}structure;
size of (structure);
2. class used for the multiple inheritence in yava_________________
(a) Anonymous class
(b) inner class
(c) abstreet class
(d) none
3. XDR fixes in which part of OS1 stack.
4. LDAP is____________service protocol.
5. Given definition for a function which returns a array of pointers with argument of int*.
6. Give a function declaration with no arguments which refers a two dimensional array
7. Pick up the correct function declaration.
1.void *[] name();
2 void int[][] name();
3 void ** name();
4 none of the above.
8. Give the difference between monolithic and microlithic kernal
9. rPC corresponds to_______________in OSI stack.
10. find the no.of page faults using LRU stack.
eg.3 4 4 6 7 8 1 2 .. ..
11. the inorder representation of a tree 41523 and preorder is 211513 Draw it?
12. 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.
13. no.of CPU in a multiprocess is contrassed by
(a) RISC nohere of CPU
(b) memory
(c)___________
(d)_____________
14. main()
{
char *s;
s="hot java";
strcpy(s,"solarrs java")
}
15. main()
{
printf("hot java");
fork()
exit(0);
}
1. when redirected to a sreen what will be printed.
2 when redirected to file what will be printed.
16. main()
{
int ret;
ret=fork();ret=fork();ret=fork();ret=fork();
if(!ret)
printf("sun");
else
printf("solaris");
how many sun 4 solaris will get printed
17. main()
{
char *p='a';
int *i=100/*p;
}
what will be the value of *i= 1
1.03
cannot be defined.
18. which data structure gives efficient search
1 B-tree
2 binary tree
3 array
4 linked list
19. 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?