多选题Which statements can be inserted at the indicated position in the following code to make the program write 1 on the standard output when run?()  public class Q4a39 {  int a = 1;   int b = 1;   int c = 1;   class Inner {   int a = 2;  int get() {   int 

题目
多选题
Which statements can be inserted at the indicated position in the following code to make the program write 1 on the standard output when run?()  public class Q4a39 {  int a = 1;   int b = 1;   int c = 1;   class Inner {   int a = 2;  int get() {   int c = 3;   // insert statement here  return c;   }   }  Q4a39() {   Inner i = new Inner();   System.out.println(i.get());  }   public static void main(String args[]) {   new Q4a39();   }   }
A

c = b;

B

c = this.a;

C

c = this.b;

D

c = Q4a39.this.a;

E

c = c;


相似考题
参考答案和解析
正确答案: A,D
解析: 暂无解析
更多“Which statements can be inserted at the indicated position i”相关问题
  • 第1题:

    Which statements can be inserted at the indicated position in the following code to make the program write 1 on the standard output when run?()  public class Q4a39 {  int a = 1;   int b = 1;   int c = 1;   class Inner {   int a = 2;  int get() {   int c = 3;   // insert statement here  return c;   }   }  Q4a39() {   Inner i = new Inner();   System.out.println(i.get());  }   public static void main(String args[]) {   new Q4a39();   }   }  

    • A、c = b;
    • B、c = this.a;
    • C、c = this.b;
    • D、c = Q4a39.this.a;
    • E、c = c;

    正确答案:A,D

  • 第2题:

    Several @functions can execute multiple statements. Which one of the following initializes a variable and can increment in during the operation?()

    • A、 @do 
    • B、 @for 
    • C、 @while 
    • D、 @dowhile 

    正确答案:B

  • 第3题:

    Which statements, when inserted at the indicated position in the following code, will cause a runtime exception when attempting to run the program?()   class A {}   class B extends A {}   class C extends A {}   public class Q3ae4 {   public static void main(String args[]) {   A x = new A();   B y = new B();   C z = new C();   // insert statement here   }   } 

    • A、x = y;
    • B、z = x;
    • C、y = (B) x;
    • D、z = (C) y;
    • E、y = (A) y;

    正确答案:C

  • 第4题:

    Which two statements are true regarding subqueries? ()

    • A、A subquery can retrieve zero or more rows 
    • B、Only two subqueries can be placed atone level 
    • C、A subquery can be used only in SQL query statements 
    • D、A subquery can appear on either side of a comparison operator 
    • E、There is no limit on the number of subquery levels in the WHERE clause of a SELECT statement 

    正确答案:A,D

  • 第5题:

    You developing a form module, and you would like to make an indicated window visible in a new display position. Which built-in can you use to accomplish this task?()

    • A、SHOW_WINDOW 
    • B、RESIZE_WINDOW 
    • C、DISPLAY_WINDOW 
    • D、MOVE_WINDOW_X_Y 
    • E、WINDOW_VISIBLE_X_Y

    正确答案:A

  • 第6题:

    单选题
    You developing a form module, and you would like to make an indicated window visible in a new display position. Which built-in can you use to accomplish this task?()
    A

    SHOW_WINDOW 

    B

    RESIZE_WINDOW 

    C

    DISPLAY_WINDOW 

    D

    MOVE_WINDOW_X_Y 

    E

    WINDOW_VISIBLE_X_Y


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

  • 第7题:

    多选题
    Given the following class, which statements can be inserted at position 1 without causing the code to fail compilation?()   public class Q6db8 {   int a;   int b = 0;   static int c;   public void m() {   int d;   int e = 0;   // Position 1   }   }
    A

    a++;

    B

    b++;

    C

    c++;

    D

    d++;

    E

    e++;


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

  • 第8题:

    多选题
    Which three statements correctly describe the features of the I/O calibration process?()
    A

    Only one I/O calibration process can run at a time

    B

    It automates the resource allocation for the Automated Maintenance Tasks

    C

    It improves the performance of the performance-critical sessions while running

    D

    It can be used to estimate the maximum number of I/Os and maximum latency time for the system

    E

    The latency time is computed only when the TIMED_STATISTICS initialization parameter is set to TRUE


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

  • 第9题:

    多选题
    Which three statements are correct about temporary tables?()
    A

    Indexes and views can be created on temporary tables.

    B

    Both the data and the structure of temporary tables can be exported.

    C

    Temporary tables are always created in a user’s temporary tablespace.

    D

    The data inserted into a temporary table in a session is available to other sessions.

    E

    Data manipulation language (DML) locks are never acquired on the data of temporary tables.


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

  • 第10题:

    多选题
    TestKing.com uses a SQL Server 2005 database. This database contains a trigger named trg InsertOrders, which fires when order data is inserted into the Orders table. The trigger is responsible for ensuring that a customer exists in the Customers table before data is inserted into the Orders table. You need to configure the trigger to prevent it from firing during the data import process. You must accomplish this goal while using the least amount of administrative effort. Which two Transact-SQL statements can you use to achieve this goal?()
    A

    ALTER TABLE OrdersDISABLE TRIGGER trg InsertOrders

    B

    DROP TRIGGER trg InsertOrders

    C

    DISABLE TRIGGER trg InsertOrders ON Orders

    D

    ALTER TRIGGER trg InsertOrders ON Orders NOT FOR REPLICATION


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

  • 第11题:

    单选题
    The real poet is a master of words. He can _____ his meaning in words which sing like music, and which by their position and association can move men tears.
    A

    transform

    B

    transmit

    C

    manifest

    D

    convey


    正确答案: B
    解析:
    句意:真正的诗人是文字的巧匠。他能用音乐般的文字表达自己的思想,而这些文字的组合能催人泪下。convey传达,传送,与meaning形成语义关系,为正确答案。transform改变,转换,常指“改变或转换事物的性质、职能或状况”,一般不能和meaning搭配使用。transmit传输,传送,通常与光、热、信号、素质等搭配使用。manifest表明,显示出,后面通常与表示兴趣或某种状态的词连用。

  • 第12题:

    单选题
    The maximum draft to which a vessel can legally be submerged is indicated by the ().
    A

    Loadline mark

    B

    Certificate of Inspection

    C

    Station Bill

    D

    Tonnage mark


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

  • 第13题:

    Which three statements correctly describe the features of the I/O calibration process?()

    • A、Only one I/O calibration process can run at a time.
    • B、It automates the resource allocation for the Automated Maintenance Tasks.
    • C、It improves the performance of the performance-critical sessions while running.
    • D、It can be used to estimate the maximum number of I/Os and maximum latency time for the system.
    • E、The latency time is computed only when the TIMED_STATISTICS initialization parameter is set to TRUE.

    正确答案:A,D,E

  • 第14题:

    Given the following code, which method declarations, when inserted at the indicated position, will not cause the program to fail compilation?()   public class Qdd1f {   public long sum(long a, long b) {  return a + b;  }   // insert new method declaration here  }  

    • A、public int sum(int a, int b) { return a + b; }
    • B、public int sum(long a, long b) { return 0; }
    • C、abstract int sum();
    • D、private long sum(long a, long b) { return a + b; }
    • E、public long sum(long a, int b) { return a + b; }

    正确答案:A,E

  • 第15题:

    In an iostat report, which of the following options best describes the value of % tm_act?()

    • A、 The total CPU usage for this drive
    • B、 The bandwidth utilization of the indicated drive
    • C、 It can best be represented by the equation (%iowait - %ioidle)
    • D、 It can best be represented by the equation (kilobytes read/kilobytes written) *100

    正确答案:B

  • 第16题:

    Which statements are true regarding the Query Result Cache? ()

    • A、It can be set at the system, session, or table level.
    • B、It is used only across statements in the same session.
    • C、It can store the results from normal as well as flashback queries.
    • D、It can store the results of queries based on normal, temporary, and dictionary tables.

    正确答案:A,C

  • 第17题:

    多选题
    Given the following code, which method declarations, when inserted at the indicated position, will not cause the program to fail compilation?()   public class Qdd1f {   public long sum(long a, long b) {  return a + b;  }   // insert new method declaration here  }
    A

    public int sum(int a, int b) { return a + b; }

    B

    public int sum(long a, long b) { return 0; }

    C

    abstract int sum();

    D

    private long sum(long a, long b) { return a + b; }

    E

    public long sum(long a, int b) { return a + b; }


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

  • 第18题:

    单选题
    Several @functions can execute multiple statements. Which one of the following initializes a variable and can increment in during the operation?()
    A

     @do 

    B

     @for 

    C

     @while 

    D

     @dowhile 


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

  • 第19题:

    单选题
    Which statement is true?()
    A

     A flow layout can be used to position a component that should resize horizontally when the  container is resized.

    B

     A grid layout can be used to position a component tat should maintain a constant size even when  the container is resized.

    C

     A border layout can be used to position component that should maintain a constant size even when  the container is resized.

    D

     The grid bag layout can be used to give a grid-like layout which differs from the normal grid in that individual rows and columns can have unique sizes.

    E

     If two components are placed in the same column of a grid bag layout, and one component resizes horizontally, then the other component must resize horizontally.


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

  • 第20题:

    单选题
    Which statements, when inserted at the indicated position in the following code, will cause a runtime exception when attempting to run the program?()   class A {}   class B extends A {}   class C extends A {}   public class Q3ae4 {   public static void main(String args[]) {   A x = new A();   B y = new B();   C z = new C();   // insert statement here   }   }
    A

    x = y;

    B

    z = x;

    C

    y = (B) x;

    D

    z = (C) y;

    E

    y = (A) y;


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

  • 第21题:

    多选题
    Which  statements are correct about temporary tables()
    A

    Indexes and views can be created on temporary tables.

    B

    Both the data and the structure of temporary tables can be exported.

    C

    Temporary tables are always created in a user’s temporary tablespace.

    D

    The data inserted into a temporary table in a session is available to other sessions.

    E

    Data manipulation language (DML) locks are never acquired on the data of temporary tables


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

  • 第22题:

    单选题
    Where does the look-out man stand?().
    A

    In positions in which the noises in the ship are least likely to interfere with the hearing of a fog signal and the man can see clearly

    B

    In positions in which the noises in the ship are much likely to interfere with the hearing of a fog signal

    C

    In positions in which the hearing of a signal is reduced to a minimum

    D

    In a position in which the man can see clearly


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

  • 第23题:

    单选题
    ()is the process by which the position of the vessel at any moment is found by applying the last well-determined position to the run that has been made since,using for this purpose the ship’s course and the distance being those indicated by log.
    A

    dead reckoning

    B

    dead weight

    C

    dead slow ahead

    D

    dead slow astern


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