The mechanism that bring a page into memory only when it is needed is called
Segmentation
Fragmentation
Page Replacement
Demand paging
Answer: Option D
The primary distinction between long term scheduler and short term scheduler is________________
Process creation tasks
Type of tasks executed
Frequency of Execution
CPU scheduling time
Answer: Option C
# include
main ( )
{
char ch = 'A'; while (ch<='F') { switch(ch) {
case 'A': case 'B': case 'C' : case 'D' :
ch++; continue;
case 'E' : case 'F': ch++;
}
putchar(ch);
}
What will be the output of the above program?
ABCDEF will be displayed
FG will be displayed
EFG will be displayed
EF will be displayed
Answer: Option B
Assume that i ,j and k are integer variables and their values are 8,5 and 0 respectively.
What will be the values of variables i and k after executing the following expressions ?
k=(j>=5) ? (i< 5) ? i-j-i : k-j : i ;
i+ = (k)?(i)?(k):(i):(k);
-3 and 3
3 and -5
3 and -3
-5 and 3
Answer: Option D
A member function defined within the class definition, rather than simply declared there taken to be an ____________________________________________ member function