对于以下2个列表的操作,那些说法说法不正确vart=List(1,2,3)vart2=List(4,5)()A、vart3=t++t2得到List(1,2,3,4,5)B、vart3=List.concat(t,t2)得到List(1,2,3,4,5)C、vart3=t:::t2得到List(1,2,3,4,5)D、vart3=t.:::(t2)得到List(1,2,3,4,5)

题目

对于以下2个列表的操作,那些说法说法不正确vart=List(1,2,3)vart2=List(4,5)()

  • A、vart3=t++t2得到List(1,2,3,4,5)
  • B、vart3=List.concat(t,t2)得到List(1,2,3,4,5)
  • C、vart3=t:::t2得到List(1,2,3,4,5)
  • D、vart3=t.:::(t2)得到List(1,2,3,4,5)

相似考题
更多“对于以下2个列表的操作,那些说法说法不正确vart=List(1,2,3)vart2=List(4,5)()A、vart3=t++t2得到List(1,2,3,4,5)B、vart3=List.concat(t,t2)得到List(1,2,3,4,5)C、vart3=t:::t2得到List(1,2,3,4,5)D、vart3=t.:::(t2)得到List(1,2,3,4,5)”相关问题
  • 第1题:

    在scala中对于列表的操作,那些说法说法正确vart=List(1,2,3)vart2=List(4,5)()

    • A、vart3=t++t2得到List(1,2,3,4,5)
    • B、vart3=List.concat(t,t2)得到List(1,2,3,4,5)
    • C、vart3=t:::t2得到List(1,2,3,4,5)
    • D、vart3=t2.:::(t)得到List(1,2,3,4,5)

    正确答案:A,B,C,D

  • 第2题:

    切片操作list(range(6))[::-1]()

    • A、[0,1,2,3,4,5]
    • B、[5,4,3,2,1,0]
    • C、[1,2,3,4,5]
    • D、[5,4,3,2,1]

    正确答案:B

  • 第3题:

    以下对list的操作take说法正确的是vart=List(1,8,3,5,5);println(t.take(2))()

    • A、打印列表的前2个元素,结果为List(1,8)
    • B、打印列表的后2个元素,结果为List(5,5)
    • C、打印列表的从下表2开始的所有元素,结果为List(3,5,5)
    • D、以上答案都不对

    正确答案:A

  • 第4题:

    varlist=List(1,2,3,4,5)varjs=list.foldRight(100)(_-_)println(js)()

    • A、15
    • B、115
    • C、-97
    • D、85

    正确答案:C

  • 第5题:

    scala语言中,关于List的定义。不正确的是?()

    • A、vallist=List(1,2,3)
    • B、vallist=List[Int](1,2,3)
    • C、vallist=List[String](‘a’,’b’,’c’)
    • D、vallist=List[String]()

    正确答案:C

  • 第6题:

    以下关于List的定义。正确的是?()

    • A、vallist=List(4,7,3)
    • B、vallist=List[Int](1,2,3)
    • C、vallist=List[String](‘a’,’b’,’c’)
    • D、vallist=List[Int]("a","b")

    正确答案:A,B

  • 第7题:

    int[] myArray = new int[] {1,2,3,4,5};  以下哪个选项可以用一个数组创建一个列表?()

    • A、 List myList = myArray.asList();
    • B、 List myList = Arrays.asList(myArray);
    • C、 List myList = new ArrayList(myArray);
    • D、 List myList = Collections.fromArray(myArray);

    正确答案:B

  • 第8题:

    引用列表框的最后一项应使用()。

    • A、List1.List(List1.ListCount-1)
    • B、List1.List(List1.ListCount)
    • C、List1.List(ListCount)
    • D、List1.List(ListCount-1)

    正确答案:A

  • 第9题:

    表达式list(map(lambdax:x+5,[1,2,3,4,5]))的值为()。


    正确答案:[6, 7, 8, 9, 10]

  • 第10题:

    When defining a referential constraint between the parent table T2 and the dependent table T1, which of the following is true?()

    • A、The list of column names in the FOREIGN KEY clause can be a subset of the list of column names in the primary key of T2 or a UNIQUE constraint that exists on T2.
    • B、The list of column names in the FOREIGN KEY clause can be a subset of the list of column names in the primary key of T1 or a UNIQUE constraint that exists on T1.
    • C、The list of column names in the FOREIGN KEY clause must be identical to the list of column names in the primary key of T2 or a UNIQUE constraint that exists on T2.
    • D、The list of column names in the FOREIGN KEY clause must be identical to the list of column names in the primary key of T1 or a UNIQUE constraint that exists on T1.

    正确答案:C

  • 第11题:

    填空题
    表达式list(map(lambdax:x+5,[1,2,3,4,5]))的值为()。

    正确答案: [6, 7, 8, 9, 10]
    解析: 暂无解析

  • 第12题:

    单选题
    When defining a referential constraint between the parent table T2 and the dependent table T1, which of the following is true?()
    A

    The list of column names in the FOREIGN KEY clause can be a subset of the list of column names in the primary key of T2 or a UNIQUE constraint that exists on T2.

    B

    The list of column names in the FOREIGN KEY clause can be a subset of the list of column names in the primary key of T1 or a UNIQUE constraint that exists on T1.

    C

    The list of column names in the FOREIGN KEY clause must be identical to the list of column names in the primary key of T2 or a UNIQUE constraint that exists on T2.

    D

    The list of column names in the FOREIGN KEY clause must be identical to the list of column names in the primary key of T1 or a UNIQUE constraint that exists on T1.


    正确答案: A
    解析: 暂无解析

  • 第13题:

    在scala中对于列表操作以下对于这些列表操作正确的是vart=List(1,2,3)vart2=t.+:("test")()

    • A、返回结果为List("test",1,2,3)
    • B、返回结果为List(1,2,3,"test")
    • C、不同类型的元素不能进行列表相加
    • D、以上说法都不对

    正确答案:A

  • 第14题:

    以下对于操作说法正确的是vart=List(1,8,3,5,5);println(t.filter{x=>x>3})()

    • A、对不可变列表进行元素大于3的操作,返回新的列表List(8,5,5)并打印出来
    • B、对不可变列表进行元素大于3的操作,返回过滤后的列表List(8,5,5)并打印出来,不产生新列表
    • C、对可变列表进行元素大于3的操作,返回新的可变列表List(8,5,5)并打印出来
    • D、对可变列表没有这个filter方法,编译错误

    正确答案:A

  • 第15题:

    在scala中对于以下2个列表的操作,那些说法说法正确vart=List(1,2,3)vart2=List(4,5)()

    • A、vart3=t++t2得到List(1,2,3,4,5)
    • B、vart3=List.concat(t,t2)得到List(1,2,3,4,5)
    • C、vart3=t:::t2得到List(1,2,3,4,5)
    • D、vart3=t.:::(t2)得到List(1,2,3,4,5)

    正确答案:A,B,C

  • 第16题:

    以下对于这些列表操作正确的是vart=List(1,2,3)vart2=t.:+("test")()

    • A、返回结果为List("test",1,2,3)
    • B、返回结果为List(1,2,3,"test")
    • C、不同类型的元素不能进行列表相加
    • D、以上说法都不对

    正确答案:B

  • 第17题:

    以下对list的操作distinct说法正确的vart=List(1,8,3,5,5)println(t.distinct)()

    • A、distinct为去重操作,返回一个新的结果为List(1,8,3,5)
    • B、distinct为去重操作,返回的是在原基础的列表List(1,8,3,5)
    • C、List为可变列表,没有这个distinct方法返回,编译出现错误的是一个新的去重的新的可变列表List
    • D、List为可变列表,返回的是一个新的去重的新的可变列表List(1,8,3,5)

    正确答案:A

  • 第18题:

    对于以下2个列表的操作,下面那些说法说法正确vart=List(1,2,3)vart2=List(4,5)()

    • A、vart3=t++t2得到List(1,2,3,4,5)
    • B、vart3=List.concat(t,t2)得到List(1,2,3,4,5)
    • C、vart3=t:::t2得到List(1,2,3,4,5)
    • D、vart3=t.:::(t2)得到List(4,5,1,2,3,)

    正确答案:A,B,C,D

  • 第19题:

    引用列表框List1最后一个数据项应使用()。

    • A、List1.List(List1.ListCount)
    • B、List1.List(List1.ListCount-1)
    • C、List1.List(ListCount)
    • D、List1.List(ListCount-1)

    正确答案:B

  • 第20题:

    已知"是否通过"字段为逻辑型,要显示所有未通过的记录应使用命令()

    • A、LIST FOR″是否通过″
    • B、LIST FOR NOT 是否通过
    • C、LIST FOR NOT 是否通过<>.T.
    • D、LIST FOR 是否通过=.T.

    正确答案:B

  • 第21题:

    已知员工表文件中包含婚否字段,已婚为.T.,未婚为.F.,若要显示已婚女职工,应使用命令()

    • A、LIST FOR 婚否 OR 性别=“女”
    • B、LIST FOR 已婚 AND 性别=“女”
    • C、LIST FOR 婚否 AND 性别=“女”
    • D、LIST FOR 已婚 OR 性别=“女”

    正确答案:C

  • 第22题:

    以下()语句将删除列表框List1中的最后一项。

    • A、List1.RemoveItem List1.ListCount
    • B、List1.Clear
    • C、List1.List(List1.ListCount-1)= ""
    • D、List1.RemoveItem List1.ListCount-1

    正确答案:D

  • 第23题:

    单选题
    int[] myArray = new int[] {1,2,3,4,5};  以下哪个选项可以用一个数组创建一个列表?()
    A

     List myList = myArray.asList();

    B

     List myList = Arrays.asList(myArray);

    C

     List myList = new ArrayList(myArray);

    D

     List myList = Collections.fromArray(myArray);


    正确答案: A
    解析: 暂无解析