多选题Which statements are true concerning the effect of the  and  operators?()AFor non-negative values of the left operand, the  and  operators will have the same effect.BThe result of (-1  1) is 0.CThe result of (-1  1) is -1.DThe value returned by  will n

题目
多选题
Which statements are true concerning the effect of the >> and >>> operators?()
A

For non-negative values of the left operand, the >> and >>> operators will have the same effect.

B

The result of (-1 >> 1) is 0.

C

The result of (-1 >>> 1) is -1.

D

The value returned by >>> will never be negative as long as the value of the right operand is equal     to or greater than 1.

E

When using the >> operator, the leftmost bit of the bit representation of the resulting value will    always be the same bit value as the leftmost bit of the bit representation of the left operand.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which two statements are true regarding the default behavior of the ORDER BY clause? ()

A.Null values are left out of the sort.

B.Character values are displayed from Z to A

C.Date values are displayed with the earliest value first.

D.Null values are displayed last for descending sequences.

E.Numeric values are displayed with the lowest values first.


参考答案:C, E

第2题:

1. public class X implements Runnable(  2. private int x;  3. private int y;  4.    5. public static void main(String[]args)  6. X that = new X();  7. (new Thread(that)).start();  8. (new Thread(that)).start();  9. )  10.    11. public void run()  (  12. for (;;)  (  13. x++; 14. y++;  15. System.out.printIn(“x=” + x + “, y = ” + y);  16.     ) 17. ) What is the result?()

  • A、 Errors at lines 7 and 8 cause compilation to fail.
  • B、 The program prints pairs of values for x and y that might not always be the same on the same line (for example, “x=2, y=1”).
  • C、 The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by “x=1, y=1”).
  • D、 The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears only for once (for example, “x=1, y=1” followed by “x=2, y=2”).

正确答案:D

第3题:

以下程序booleana=false;booleanb=true;ooleanc=(a&&b)&&(!b);bintresult=c==false?1:2;执行完后,c与result的值是()。

A.c=false;result=1;

B.c=true;result=2;

C.c=true;result=1;

D.c=false;result=2;


参考答案:A

第4题:

Which statements are true concerning the effect of the >> and >>> operators?()  

  • A、For non-negative values of the left operand, the >> and >>> operators will have the same effect.
  • B、The result of (-1 >> 1) is 0.
  • C、The result of (-1 >>> 1) is -1.
  • D、The value returned by >>> will never be negative as long as the value of the right operand is equal     to or greater than 1.
  • E、When using the >> operator, the leftmost bit of the bit representation of the resulting value will    always be the same bit value as the leftmost bit of the bit representation of the left operand.

正确答案:A,E

第5题:

public class X implements Runnable (   private int x;   private int y;    public static void main(String args) (   X that = new X();   (new Thread(that)) . start( );   (new Thread(that)) . start( );   )    public synchronized void run( ) (    for (;;) (    x++;    y++;    System.out.printIn(“x = “ + x + “, y = “ + y);    )   )    )   What is the result?()

  • A、 An error at line 11 causes compilation to fail.
  • B、 Errors at lines 7 and 8 cause compilation to fail.
  • C、 The program prints pairs of values for x and y that might not always be the same on the same line  (for example, “x=2, y=1”)
  • D、 The program prints pairs of values for x and y that are always the same on the same line (forexample, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by  “x=1, y=1”)
  • E、 The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by  “x=2s, y=2”)

正确答案:E

第6题:

In C language, the result of the logical ______ operator is 1 if the value of its operand is 0, 0 if the value of its operand is non-zero.

A.AND

B.NOT

C.OR

D.EOR


正确答案:B
解析:译文的含义是:在C语言中,如果操作数的值为0,则逻辑运算()的结果为1,如果操作数的值非0,则逻辑运算NOT的结果为0。选项B为正确答案。

第7题:

Which statement is true regarding the INTERSECT operator?()

  • A、It ignores NULL values 
  • B、Reversing the order of the intersected tables alters the result 
  • C、The names of columns in all SELECT statements must be identical 
  • D、The number of columns and data types must be identical for all SELECT statements in the query 

正确答案:D

第8题:

Given:Which two statements are true about the result if the default locale is Locale.US?()

A.The value of b is 2.

B.The value of a is 3.14.

C.The value of b is 2.00.

D.The value of a is 3.141.

E.The value of a is 3.1415.

F.The value of a is 3.1416.

G.The value of b is 2.0000.


参考答案:C, F

第9题:

public class X implements Runnable(    private int x;   private int y;   public static void main(Stringargs)  X that = new X();   (new Thread(that)).start();  (new Thread(that)).start();  )  public void run() (  for (;;) (  x++;   y++;   System.out.printIn(“x=” + x + “, y = ” + y);   )   )   What is the result?()  

  • A、 Errors at lines 7 and 8 cause compilation to fail.
  • B、 The program prints pairs of values for x and y that might not always be the same on the same line  (for example, “x=2, y=1”).
  • C、 The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by  “x=1, y=1”).
  • D、 The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears only for once (for example, “x=1, y=1”  followed by “x=2, y=2”).

正确答案:D

第10题:

A sequence was created with the DDL statement shown below:CREATE SEQUENCE my_seq START WITH 5 INCREMENT BY 5 CACHE 5 User1 successfully executes the following statements in Connection1: VALUES NEXT VALUE FOR my_seq INTO :con1hvar VALUES NEXT VALUE FOR my_seq INTO :con1hvar User2 successfully executes the following statement in Connection2: VALUES NEXT VALUE FOR my_seq INTO :con2hvar After User1 & User2 are finished, User3 executes the following statement in Connection3: SELECT NEXT VALUE FOR my_seq FROM sysibm.sysdummy1Which value will be returned by the query?()

  • A、20
  • B、25
  • C、50
  • D、55

正确答案:D

更多相关问题