niusouti.com

The way to pick out the items on the first list from the second is known as_____.A recognitionB recallC memorizationD relearning

题目

The way to pick out the items on the first list from the second is known as_____.

A recognition

B recall

C memorization

D relearning


相似考题

4.阅读以下说明和Java代码,将应填入(n)处的字句写在对应栏内。【说明】下面的Java程序演示了程序竞争资源(Mutex的实例对象)而引起程序死锁的一种例子。【Java程序】import java.applet.*;import java.awt.*;//此处声明一个互斥类class Mutex { }class A extends (1){private Mutex first,second;public A(Mutex f,Mutex s){first = f;second = s;}public void run(){//锁定first变量(2) (first){try{ //本线程挂起,等待重新调度Thread.sleep(1); //注意此处(1)不是小题序号}catch(InterruptedException e){}System. out. println("threadA got first mutex");(2) (second) //锁定second变量{ //do somethingSystem. out. println("threadA got second mutex");} //释放second变量} //释放first变量}}class B extends (1){private Mutex first,second;public B(Mutex f,Mutex s){(3) ;second = s;}public void run(){(2) (second) //锁定second变量{//do somethingtry{Thread.sleep(((int)(3*Math.random()))*1000);//本线程挂起,等待重新调度}catch(InterruptedException e){}System.out.println("threadB got second mutex");(2) (first) //锁定first变量{//do somethingSystem.out.println("threadB got first mutex");} //释放first变量} //释放second变量}}public class DeadlockExample{public static void main(String arg[]){Mutex mutexX = new Mutex();Mutex mutexY = new Mutex();AthreadA = new A(mutexX,mutexY);B threadB = new B (4);threadA.(5);threadB.start();}}

参考答案和解析
正确答案:A
更多“The way to pick out the items on the first list from the second is known as_____.A rec ”相关问题
  • 第1题:

    下列代码中 if(x>0) {System.out.println("first");} else if (x>-3){System.out.println("second");} else { System.out.println("third");} 要求打印字符串为"second"时,x的取值范围是( )。

    A.x≤0 并且 x>-3

    B.x>0

    C.x>-3

    D.x≤-3


    正确答案:A
    解析:本题考查Java中的条件结构。条件语句根据判定条件的真假来决定执行哪一种操作。题目所给程序,如果x>0,则直接执行其后的System.out.println("first")语句,而不执行else if等语句,当x≤0而且x>-3时执行 System.out.println("second")语句,所以选项A正确。当x为其他值时执行else语句。应该对 Java的流程控制涉及的语句数量有所掌握,这些都是考试重点内容。

  • 第2题:

    下列代码中 d(x>0)(System.out.Pdntln("first");} else if(x>-3){System.out.pnntln("second");} else{System.out.pdlldn("third");)要求打印字符串为"second"时,x的取值范围是( )。

    A.x<=0并且x>-3

    B.x>O

    C.x>-3

    D.x<=-3


    正确答案:A

  • 第3题:

    下列代码中 if(x>O){System.out.println("first");} elseif(x>-3){System.out.println("second");) else{System.out.println("third");) 要求打印字符串为“second”时,X的取值范围是( )。

    A.x<=0且x>-3

    B.x>0

    C.x>-3

    D.x<=-3


    正确答案:A
    A【解析】本题考查Java中的条件结构。条件语句根据判定条件的真假来决定执行哪一种操作。题目所给程序,如果x>0,则直接执行其后的System.out.println("first")语句,而不执行elseif等语句,当x<-0且x>-3时执行System.out.println("second")语句,所以选项A正确。当x为其他值时执行else语句。应该对Java的流程控制涉及的语句有所掌握,这些都是考试重点内容。

  • 第4题:

    有如下程序段 if(x<0){System.out.println("first");} else if(x<-4){System.out.println("second");} else{System.out.println("third");} x的取值在( )范围内时,将打印出字符串"second"。

    A.x>0

    B.x>-4

    C.x<=-4

    D.x<=0 &&x>-4


    正确答案:D

  • 第5题:

    有如下程序段if (x>0) {System.out.println ("first") ;}else if (x>-4) { System.out.println ("second") ; }else{System.out.println ("third") ;}x的取值在( )范围内时,将打印出字符串"second"。

    A.x>0

    B.x>-4

    C.x<=-4

    D.x<=0&&x>-4


    正确答案:D

  • 第6题:

    给出下列代码片段: if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 当x处于( )范围时打印字符串"second"。

    A.x>0

    B.x>-3

    C.-3<x<=0

    D.x<=-3


    正确答案:C