niusouti.com

A virtual memory system has five virtual pages numbered zero through four and three page frames.All the page frames are initially empty.How many page faults are generated with the following access sequence using a FIFO replacement policy?0 1 2 3 0 1 4 0 1

题目

A virtual memory system has five virtual pages numbered zero through four and three page frames.All the page frames are initially empty.How many page faults are generated with the following access sequence using a FIFO replacement policy?0 1 2 3 0 1 4 0 1 2 3 4

A.8

B.9

C.10

D.11


相似考题
更多“A virtual memory system has five virtual pages numbered zero through four and three page f ”相关问题
  • 第1题:

    下列语句能给数组赋值而不使用for循环的是

    A.myArray{[1]="One";[2]="Two";[3]="Three";}

    B.String s[5]=new String[]{"Zero", "One", "Two", "There", "Four"};

    C.String s[]=new String[]{"Zero", "One", "Two", "There", "Four"};

    D.String s[]=new String[]=|"Zero", "One", "Two", "There", "Four"};


    正确答案:C
    解析:A)、D)语法不正确,B)中s[5]的形式只能通过for循环的格式进行赋值,而不能直接赋值。C)中表达式左侧的“[]”说明现在定义一个数组,不需要指明数组长度,而表达式右侧“[]”在后面直接紧跟初始内容时也是不需要指定数组大小的,数组大小直接由初值长度决定。

  • 第2题:

    下列语句能给数组赋值,而不使用for循环的是

    A.myArray{[1]="One";[2]="Two";[3]="Three";}

    B.String s[5]=new String[] {"Zero","One","Two","Three","Four"};

    C.String s[]=new String[] {"Zero","One","Two","Three","Four"};

    D.String s[]=new String[]= {"Zero","One","Two","Three","Four"};


    正确答案:C
    解析:字符串数组赋初值的方法有两种,一种是如选项C一样初始化。另外一种是先为每个数组元素分配引用空间,再为每个数组元素分配空间并赋初值。例如还可做如下赋值:
      string s[]=new String[5];
      s[0]="Zero";
      s[1]="One";
      s[2]="Two";
      s[3]="Three";
      s[4]="Four";

  • 第3题:

    下列给字符串二维数组进行赋值的语句中,错误的是()。

    A.String s[ ] [ ] = new String [ ] [ ] { { “One “ , “ Two “ }, { “ Three “ , “ Four “ } } ;

    B.String s[ ] [ ] = { { “ One “ , “Two “},{ “ Three “ , “ Four “ } } ;

    C.String s[ ] [ ] = new String [ ] [ ] { { “Zero”} , { “ One ” , “Two” , “ Three” , “ Four” } } ;

    D.String s[ 2] [2 ] = { { “ One ” , “Two”},{“ Three” , “ Four” } } ;


    String s[ 2] [2 ] = { { “ One ” , “Two”},{“ Three” , “ Four” } } ;

  • 第4题:

    Which configuration command creates a virtual router called isp-1?()

    A.virtual-routerisp-1

    B.virtual-routerISP-1

    C.virtual-routerVRisp-1

    D.virtual-routerVRISP-1


    参考答案:A

  • 第5题:

    Howmanypiecesofadvicearegiventotheteenagerswhohaveproblemsinthispassage?

    A.Two.

    B.Three.

    C.Four.

    D.Five.


    正确答案:B

  • 第6题:

    【填空题】运行下列程序,输出结果是____。 #include <iostream> using namespace std; enum opt{ONE,TWO,THREE,FOUR,FIVE,SIX,SEVEN}op; int main(void) { cout<<ONE; cout<<TWO; cout<<SIX; return 0; }


    B 解析:本题考查循环辅助控制语句break和continue,前者退出整个for循环,后者跳过本次循环没有执行完的若干条语句,开始下一次循环操作,建议读者采用本书推荐的列表法分析。