For the following questions answer them individually
A IP packet has arrived in which the fragmentation offset value is 100, the value of HLEN is 5 and the value of total length field is 200. What is the number of the last byte?
What is the output of the following C program?
#include <stdio.h>
void main (void)
{
int shifty;
shifty = 0570;
shifty = shifty >> 4;
shifty = shifty << 6;
printf("The value of shifty is %o \n", shifty);
}
How much memory is required to implement z-buffer algorithm for a $$512 \times 512 \times 24$$ bit-plane image
Using the page table shown below,translate the physical address 25 to virtual address. The address length is 16 bits and page size is 2048 words while the size of the physical memory is four frames.
Consider a standard circular queue ‘q’ implementation (which has same condition for queue full and queue empty) whose size is 11 and the elements of the queue are q[0], q[1l,.... q[10]. The front and rear pointers are initialized to pointat q[2]. In whichposition will the ninth element be added?
How many lines of output does the following C code produce?
#include <stdio.h>
float i = 2.0;
float j = 1.0;
float sum = 0.0;
main()
{
while(i/j > 0.001)
{
j += j;
sum = sum + (i/j);
printf("%f \n", sum);
}
}
If only one memory location is to be reserved for a class variable, no matter how manyobjects are instantiated, then the variable should be declared as ............
Assume that a 16 bit CPU is trying to access a double wordstarting at an odd address. How many memory operations are required to access the data?