多选题Given two collection objects referenced by col1 and col2,which of these statements are true?()AThe operation col1.retainAll(col2) will not modify the col1 object.BThe operation col1.removeAll(col2) will not modify the col2 object.CThe operation col1.ad

题目
多选题
Given two collection objects referenced by col1 and col2,which of these statements are true?()
A

The operation col1.retainAll(col2) will not modify the col1 object.

B

The operation col1.removeAll(col2) will not modify the col2 object.

C

The operation col1.addAll(col2) will return a new collection object, containing elements from both col1      and col2.

D

The operation col1.containsAll(Col2) will not modify the col1 object.


相似考题
参考答案和解析
正确答案: B,A
解析: 暂无解析
更多“多选题Given two collection objects referenced by col1 and col2,which of these statements are true?()AThe operation col1.retainAll(col2) will not modify the col1 object.BThe operation col1.removeAll(col2) will not modify the col2 object.CThe operation col1.ad”相关问题
  • 第1题:

    对于表A(col1 int,col2 char(1)),表B(col1 int,col2char(1)),为确保表A的数据全部被保留,下面正确的联接方式是()

    • A、A inner join B
    • B、A left join B
    • C、A right join B
    • D、Across join B

    正确答案:B

  • 第2题:

    存在两个结构相同的数据库表T1(col1,col2,col3)、T2(col1,col2,col3),写出一SQL语句将所有T1数据导入到T2表()

    • A、select col1,col2,col3 from T1 into T2(col1,col2,col3)
    • B、insert T1 (col1,col,col3) into T2(col1,col2,col3)
    • C、insert into T2 (col1,col2,col3) as select col1,col2,col3 from T1
    • D、insert into T2(col1,col2,col3) select col1,col2,col3 from T1;

    正确答案:D

  • 第3题:

    Given two collection objects referenced by col1 and col2,which of these statements are true?()

    • A、The operation col1.retainAll(col2) will not modify the col1 object.
    • B、The operation col1.removeAll(col2) will not modify the col2 object.
    • C、The operation col1.addAll(col2) will return a new collection object, containing elements from both col1      and col2.
    • D、The operation col1.containsAll(Col2) will not modify the col1 object.

    正确答案:B,D

  • 第4题:

    Which of the following statements are true regarding the Recycle Bin?()

    • A、 The Recycle Bin is a physical storage area for dropped objects.
    • B、 The Recycle Bin is a logical container for dropped objects.
    • C、 The Recycle Bin stores the results of a Flashback Drop operation.
    • D、 The objects in the Recycle Bin are stored in the tablespace in which they were created.

    正确答案:B,D

  • 第5题:

    你正在SQL SERVER 2005 服务器上一个名为DB1的数据库上进行着工作。你发现由于对DB1中Table1表的扫描导致了查询执行缓慢。已知,Table是一个使用频繁而且非常巨大的表,同时你又确定了查询中包含如下的语句:SELECT col1,col2 FROM table1 WHERE col3 = 。在表保持对所有用户有效的情况下,为了最大化的提高查询性能,你应该怎么做?()

    • A、更新DB1数据库中表Table1的所有统计信息
    • B、在DB1数据库中,使用CREATE STATISTICS 语句为表Table1的列col3创建缺少的统计信息
    • C、设置优先值提升选项的值为1
    • D、执行如下语句:USE DB1 GO CREATE INDEX index1 ON table1(col3) INCLUDE(col1, col2) WITH (ONLINE = ON) GO
    • E、执行如下语句 USE DB1GOCREATE INDEX index1 ON table1(col3, col2,col1)

    正确答案:D

  • 第6题:

    多选题
    Which of the following statements are true?()
    A

    The equals() method determines if reference values refer to the same object.

    B

    The == operator determines if the contents and type of two separate objects match.

    C

    The equals() method returns true only when the contents of two objects match.

    D

    The class File overrides equals() to return true if the contents and type of two separate objects        match.


    正确答案: A,D
    解析: 严格来说这个问题的答案是不确定的,因为equals()方法是可以被重载的,但是按照java语言的本意来说:如果没有重写(override)新类的equals(),则该方法和 == 操作符一样在两个变量指向同一对象时返回真,但是java推荐的是使用equals()方法来判断两个对象的内容是否一样,就像String类的equals()方法所做的那样:判定两个String对象的内容是否相同,而==操作符返回true的唯一条件是两个变量指向同一对象。从这个意义上来说选择给定的答案。从更严格的意义来说正确答案应该只有D。

  • 第7题:

    单选题
    对于表A(col1 int,col2 char(1)),表B(col1 int,col2char(1)),为确保表A的数据全部被保留,下面正确的联接方式是()
    A

    A inner join B

    B

    A left join B

    C

    A right join B

    D

    Across join B


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

  • 第8题:

    单选题
    你正在SQL SERVER 2005 服务器上一个名为DB1的数据库上进行着工作。你发现由于对DB1中Table1表的扫描导致了查询执行缓慢。已知,Table是一个使用频繁而且非常巨大的表,同时你又确定了查询中包含如下的语句:SELECT col1,col2 FROM table1 WHERE col3 = 。在表保持对所有用户有效的情况下,为了最大化的提高查询性能,你应该怎么做?()
    A

    更新DB1数据库中表Table1的所有统计信息

    B

    在DB1数据库中,使用CREATE STATISTICS 语句为表Table1的列col3创建缺少的统计信息

    C

    设置优先值提升选项的值为1

    D

    执行如下语句:USE DB1 GO CREATE INDEX index1 ON table1(col3) INCLUDE(col1, col2) WITH (ONLINE = ON) GO

    E

    执行如下语句 USE DB1GOCREATE INDEX index1 ON table1(col3, col2,col1)


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

  • 第9题:

    单选题
    对于表A(col1 int,col2 char(1))更新col1=1的数据col2值为N,下面语句正确的是()
    A

    update table A setcol2=’N’ where col1=1

    B

    modify table A setcol2=N where col1=1

    C

    update A set col2=’N’ where col1=1

    D

    modify A set col2=N where col1=1


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

  • 第10题:

    多选题
    Given a class whose instances, when found in a collection of objects, are sorted by using the compare To method, which two statements are true?()
    A

    The class implements java.lang.Comparable.

    B

    The class implements java.util.Comparator.

    C

    The interface used to implement sorting allows this class to define only one sort sequence.

    D

    The interface used to implement sorting allows this class to define many different sort sequences.


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

  • 第11题:

    多选题
    Which two statements about an IDS are true?()
    A

    The IDS is in the traffic path.

    B

    The IDS can send TCP resets to the source device.

    C

    The IDS can send TCP resets to the destination device.

    D

    The IDS listens promiscuously to all traffic on the network.

    E

    Default operation is for the IDS to discard malicious traffic.


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

  • 第12题:

    多选题
    Which two statements are true regarding the use of NTP clock synchronization?()
    A

    The Junos OS supports client, server, and symmetric modes of NTP operation.

    B

    Synchronized time on all network devices makes log messages more useful for troubleshooting.

    C

    Authentication methods are not supported.

    D

    The Junos OS must be used as the primary time reference.


    正确答案: C,D
    解析: 暂无解析

  • 第13题:

    对于表A(col1 int,col2 char(1))更新col1=1的数据col2值为N,下面语句正确的是()

    • A、update table A setcol2=’N’ where col1=1
    • B、modify table A setcol2=N where col1=1
    • C、update A set col2=’N’ where col1=1
    • D、modify A set col2=N where col1=1

    正确答案:D

  • 第14题:

    The following statements: CREATE TABLE t1 (col1 INT NOT NULL, PRIMARY KEY(col1)); CREATE TABLE t2 (col1 INT NOT NULL, col2 CHAR(1) NOT NULL, PRIMARY KEY (col1, col2), FOREIGN KEY (col1) REFERENCES t1 (col1) ON DELETE CASCADE ON UPDATE RESTRICT); CREATE TABLE t3 (col1 INT NOT NULL, col2 INT NOT NULL, PRIMARY KEY (col1, col2),FOREIGN KEY (col1) REFERENCES t1 (col1) ON DELETE NO ACTION ON UPDATE RESTRICT);INSERT INTO t1 VALUES (1), (2); INSERT INTO t2 VALUES (1, 'a'), (1, 'b'), (2,'c'); INSERT INTO t3 VALUES (1, 100), (2, 200), (2,300); How many rows will be deleted by the following DELETE statement? DELETE FROM t1 WHERE col1= 1;()

    • A、4
    • B、3
    • C、1
    • D、0

    正确答案:D

  • 第15题:

    You plan to execute the following command to perform a Flashback Database operation in your database:   SQL> FLASHBACK DATABASE TO TIMESTAMP (SYSDATE -5/24);   Which two statements are true about this?()

    • A、 The database must have multiplexed redo log files
    • B、 The database must be in the MOUNT state to execute the command
    • C、 The database must be in the NOMOUNT state to execute the command
    • D、 The database must be opened in RESTRICTED mode before this operation
    • E、 The database must be opened with the RESETLOGS option after the flashback operation

    正确答案:B,E

  • 第16题:

    Which two statements are true regarding the Oracle Data Pump export and import operations()

    • A、You cannot export data from a remote database.
    • B、You can rename tables during an import operation.
    • C、You can overwrite existing dump files during an export operation.
    • D、You can compress the data during export but not the metadata because it is not supported.

    正确答案:B,C

  • 第17题:

    You work with a database named DB1, which is located on a SQL Server 2005 computer. You discover that a table scan on Table1 in DB1 causes a slow query. Table1 is a very large table that is used frequently. You ascertain that the query contains the following statement. SELECT col1, col2 FROM table1 WHERE col3 =  You need to provide maximum query performance. Table1 must remain available to users. What should you do?()

    • A、Update all statistics on Table1 in DB1.
    • B、Use the CREATE STATISTICS statement in DB1 to create missing statistics on col3of Table1.
    • C、Set the priority boost server option to 1.
    • D、Execute the following statement.USE DB1GOCREATE INDEX index1 ON table1(col3)INCLUDE(col1, col2) WITH (ONLINE = ON)GO

    正确答案:D

  • 第18题:

    多选题
    You plan to execute the following command to perform a Flashback Database operation in your database:   SQL> FLASHBACK DATABASE TO TIMESTAMP (SYSDATE -5/24);   Which two statements are true about this?()
    A

    The database must have multiplexed redo log files

    B

    The database must be in the MOUNT state to execute the command

    C

    The database must be in the NOMOUNT state to execute the command

    D

    The database must be opened in RESTRICTED mode before this operation

    E

    The database must be opened with the RESETLOGS option after the flashback operation


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

  • 第19题:

    多选题
    Which two statements are true regarding the Oracle Data Pump export and import operations()
    A

    You cannot export data from a remote database.

    B

    You can rename tables during an import operation.

    C

    You can overwrite existing dump files during an export operation.

    D

    You can compress the data during export but not the metadata because it is not supported.


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

  • 第20题:

    多选题
    Which of the following statements are true regarding the Recycle Bin?()
    A

    The Recycle Bin is a physical storage area for dropped objects.

    B

    The Recycle Bin is a logical container for dropped objects.

    C

    The Recycle Bin stores the results of a Flashback Drop operation.

    D

    The objects in the Recycle Bin are stored in the tablespace in which they were created.


    正确答案: D,B
    解析: 暂无解析

  • 第21题:

    多选题
    Which two statements regarding the Flashback Table feature are correct?()
    A

    Flashback Table can be performed on system tables.

    B

    Flashback Table operation does not shrink the segments.

    C

    Flashback Table uses log mining to extract SQL_REDO and SQL_UNDO statements.

    D

    Flashback Table operation acquires exclusive data manipulation language (DML) locks.


    正确答案: C,B
    解析: 暂无解析

  • 第22题:

    单选题
    According to the passage, which of the following statements is TRUE?
    A

    The Costa Concordia is three times the weight of the Titanic.

    B

    Engineers in Italy have successfully righted the wrecked Concordia after an operation that lasted around 12 hours.

    C

    The salvage operation went ahead despite bad weather conditions.

    D

    As a common means of righting wrecked ships, parbuckling had never been carried out on a vessel of the Concordia’s size.


    正确答案: B
    解析:
    根据原文第四段第二句话“it has never before been used on such a large ship”,可知,套拉索这个过程还从来没有被用在如此巨型的船只上,与D项相符,故选D。根据原文第二段第一句话“The Costa Concordia is twice the weight of the Titanic”可知,歌诗达协和号是泰坦尼克号重量的两倍,选项A错误。根据原文第二段第三句话,让歌诗达协和号重新直立起来花了工程师19个小时的时间,选项B错误。根据原文第四段第三句话“He and other engineers worked for 19 hours before Concordia was declared completely upright”可知,工人们一直在等待有利的天气条件展开行动,选项C错误。因此选D。

  • 第23题:

    多选题
    Which  statements are true regarding the Oracle Data Pump export and import operations()
    A

    You cannot export data from a remote database.

    B

    You can rename tables during an import operation.

    C

    You can overwrite existing dump files during an export operation.

    D

    You can compress the data during export but not the metadata because it is not supported


    正确答案: B,D
    解析: 暂无解析