【单选题】【消耗次数:1】
若信号S的初值为2,当前值为-1,则表示有多少个等待进程?
0
1
2
3
参考答案:
复制
纠错
相关题目
【单选题】 若P、V操作的信号量S初值为2,当前值为 -1,则表示有( )个等待进程。
①  0
②  1
③  2
④  3
【单选题】 若P、V操作的信号量S初值为2,当前值为 ?1,则表示有( )个等待进程。
①  0
②  L
③  2
④  3
【单选题】 若P、V操作的信号量S初值为2,当前值为1,则表示有()个等待进程。
①  0
②  l
③  2
④  3
【判断题】 若一个样本的观察值为0,0,1,1,0,1,则总体均值的矩估计值为1/2。
①  正确
②  错误
【单选题】 有定义语句“int a[][3]={1, 2, 3, 4, 5, 6};”,则a[1][0]的值是____。
①  4
②  1
③  2
④  5
【单选题】 若已定义inta=3,b=2,c=1;则语句++a||++b++c;运行后b的值为()。
①  0
②  3
③  1
④  2
【单选题】 若已定义inta=3,b=2,c=1;则语句++a||++b&&++c;运行后b的值为()。
①  0
②  3
③  1
④  2
【单选题】 若a的值为3时,下列程序段被执行后,c的值是多少?( ) if ( a>0 ) if ( a>3 ) c = 2; else c = 3; else c = 4;
①  1
②  2
③  3
④  4
【单选题】 inta=1,b=2,c=3; if(a>b)a=b; if(a>c)a=c; 则a的值为().
①  1
②  2
③  3
④  不一定
【单选题】 在一棵度为3的树中,度为3的结点数为2个,度为2的结点数为1个,度为1的结点数为2个,则度为0的结点数为( )个。
①  4
②  5
③  6
④  7
随机题目
【单选题】 He made a mistake, but then he corrected the situation it got worse.
①  until
②  when
③  before
④  as
【单选题】 Please help yourself to the fish.
①  Thanks, but fish doesn’t agree with me
②  Sorry, I can’t help
③  I don’t like fish
④  No, I can’t
【单选题】 The reason _________ I am writing this letter is to tell you about the meeting on Saturday.
①  because
②  why
③  for
④  as
【单选题】 Is that Mr Robert Lee?
①  Yes, Lee speaking
②  Hello, what do you want
③  Sorry, speaking
④  I don’t know
【单选题】 Hello, is that Shanghai Airlines?
①  Yes, can I help you?
②  Yes, what do you want?
③  Yes, you’re right
④  Yes, right number
【单选题】 May I see the menu, please?
①  That is the menu, sir
②  Yes, please go on
③  Here you are, sir
④  Of course, sir
【单选题】 __________ a teacher in a university, it is necessary to have at least a master’s degree.
①  To become
②  Become
③  One becomes
④  On becoming
【单选题】 May I see your tickets and passports, please?
①  No, you can’t
②  Yes, you can
③  here they are
④  No, they are mine
【单选题】 At midnight, he received a telephone call and was asked to meet at once.
①  mystery
②  mysterious
③  mystical
④  mythical
【单选题】 Not only the teacher but also the students _______ smiling.
①  is
②  are
③  was
④  be