Citrix written test Question Paper at off campus

Citrix written test Question Paper at off campus
1. What is the output of this statement ?
Printf(“%d”,printf(“%d %d”,2,2) & printf(“%d %d ”, 2, 2));

a. 22222
b. 22221
c. It will give an error during compilation
2. What is the output of this code snippet

{ int *p[10];
printf("%d %d\n",sizeof(*p),sizeof(p));
3. Function inlining is best used when
a. In a small recursive function
b. In large function where number of variables used is small
c. In a large function where there are many loops and number of variables used is small
d. None of these
4. If there is a large quantum in round robin it will be equivalent to
a. First come first serve
b. Shortest job first
c. Least recently used
d. None of these
5 . which of the following will lead to starvation
a. Fifo
b. Shortest job first
c. Round robin
d. Least recently used
6 . if the address space is which of the following is the broadcast ip
7. if there are 9 yellow balls, 3 red balls and 2 green balls. What is the probability that the second ball picked is yellow given the first ball is yellow
a. 8/13
b. 9/13
c. 8/14
d. 9/14
8. How many processes are created in this snippet?
Fork() && fork () || fork ();
Fork ();
a. 15
b. 19
c. 21
d. 27
e. 31
9. which of the following is TRUE about the declaration const char * p
a. the pointer cannot be changed but the value to which it points can be changed
b. the value is constant but the pointer can be changed
c. neither the value nor the pointer can be changed
d. none of these
10. If F and L are the pointers to the first and last elements in a linked list, then which of the following operations is dependent on the length of the list?
a. delete the first element in the list
b. insert a new element as a first element
c. delete the last element of the list
d. add a new element at the end of the list
11. Find the slope of the line joining the points (0,2) and (3, -2)
a. -4/3
b. ¾
c. -3/4
d. 4/3
12. Solve for x in x^3+3x^2+5x+9=6
a. -1
b. 1
c. -2
d. -3
13. 73 to the base x is equivalent to 51 to the base y. which of the following may be the possible values of x and y
a. 10, 12
b. 8, 16
c. 9, 13
d. 8, 12
14. Which of the following is independent of the operating system and machine architecture
a. linker
b. loader
c. compiler
d. debugger
15. Which of the following restricts a process to the memory allocated to it
a. stack pointers
b. memory allocation hardware
c. kernel
d. none of these
16. When a user logs out, what happens to the processes created by him?
a. they’ll be killed
b. aborted
c. hang
d. none of these
17. What is the output of
Struct node {
Int a;
Int b;
Int c;
Struct node a = {2,4,5};
Struct node *st;
St = &a;
Printf(“%d”, *(int *)st);
a. 2
b. 3
c. 7
d. 11
18. What is the output of
Struct outer{
Struct inner{
Int a = 10;
Int b = 5;
Struct inner new;
Printf(“%d”, new.a)
a. It will give a compilation error
b. 10
c. 5
d. 15earrange?blogID=9179416692752405527
19. Thrashing is solved by
a. increasing cpu bound processes
b. reducing the degree of multi-programming
c. increasing user processes
d. none of these
20. If t` is the reverse of t then what is the reverse of trs
a. s’r’t’
b. srt
c. t’r’s’
d. t’rs’

No comments:

Top Blogs