ISRO Scientist/Engineer Question Paper Computer Science 2017

51. Question

The cyclomatic complexity of each of the modules X and Y shown below is 10. What is the cyclomatic complexity of the sequential integration shown on the right hand side?

question60




Answer
52. Question

What is the output of the following program?
main( )
{
int a = 10;
if ((fork ( ) == 0))
a++;
printf (“%d
”, a );

}




Answer
53. Question

Given reference to the following pages by a program
0, 9, 0, 1, 8, 1, 8, 7, 8, 7, 1, 2, 8, 2, 7, 8, 2, 3, 8, 3
How many page faults will occur if the program has three page frames available to it and uses an optimal replacement?




Answer
54. Question

In a doubly linked list, the number of pointers affected for an insertion operation will be

<bonus marks awarded>




Answer
55. Question

Consider the following C function
void swap ( int x, int y )
{
int tmp;
tmp = x;
x= y;
y = tmp;
}
In order to exchange the values of two variables a and b:




Answer