单选题What will be written to the standard output when the following program is run?()   public class Q8499 {   public static void main(String args[]) {  double d = -2.9;   int i = (int) d;  i *= (int) Math.ceil(d);  i *= (int) Math.abs(d);   System.out.prin

题目
单选题
What will be written to the standard output when the following program is run?()   public class Q8499 {   public static void main(String args[]) {  double d = -2.9;   int i = (int) d;  i *= (int) Math.ceil(d);  i *= (int) Math.abs(d);   System.out.println(i);   }   }
A

12

B

18

C

8

D

9

E

27


相似考题
更多“What will be written to the standard output when the followi”相关问题
  • 第1题:

    标准额定输出功率(standard rated output)


    正确答案:燃气轮机在透平温度、 转速、 燃料、进气温度、 进气压力和相对湿度、 排气压力为标准参考条件下, 且处于新的和清洁的状态下运行时的标称或保证的输出功率。

  • 第2题:

    What will be written to the standard output when the following program is run?()   public class Q63e3 {   public static void main(String args[]) {   System.out.println(9 ^ 2);   }   }  

    • A、81
    • B、7
    • C、11
    • D、0
    • E、false

    正确答案:C

  • 第3题:

    What will be written to the standard output when the following program is run?()  public class Qd803 {   public static void main(String args[]) {   String word = "restructure";   System.out.println(word.substring(2, 3));   }   }  

    • A、est
    • B、es
    • C、str
    • D、st
    • E、s

    正确答案:E

  • 第4题:

    What is the output when the following shell script executes?()   cat<;<;foobar   Hello foobar   foobar

    • A、 The contents of the file foobar.
    • B、 Hello
    • C、 No output but a file named foobar is created.
    • D、 Hello foobar
    • E、 Hello foobar foobar

    正确答案:D

  • 第5题:

    What will be the result of attempting to compile and run the following program?()   public class Q28fd {   public static void main(String args[]) {   int counter = 0;   l1:   for (int i=10; i<0; i--) {   l2:  int j = 0;   while (j < 10) {   if (j > i) break l2;   if (i == j) {   counter++;   continue l1;   }   }   counter--;   }   System.out.println(counter);  }   }   

    • A、The program will fail to compile.
    • B、The program will not terminate normally.
    • C、The program will write 10 to the standard output.
    • D、The program will write 0 to the standard output.
    • E、The program will write 9 to the standard output.

    正确答案:A

  • 第6题:

    You are designing a plan for testing a Windows Azure service.   The service runs in the development fabric but fails on Windows Azure.   You need to recommend an approach for identifying errors that occur when the service runs on Windows Azure.  What should you recommend?()

    • A、 Attach a debugger to the Windows Azure role instance.
    • B、 Analyze debugging information captured by Windows Azure Diagnostics.
    • C、 Modify the service configuration for the Windows Azure role to access development storage.
    • D、 Analyze debugging information written to the output window of the Windows Azure role instance.

    正确答案:B

  • 第7题:

    单选题
    What will be the result of attempting to compile and run the following code?()   public class Q6b0c {   public static void main(String args[]) {  int i = 4;  float f = 4.3;   double d = 1.8;   int c = 0;   if (i == f) c++;   if (((int) (f + d)) == ((int) f + (int) d))  c += 2;   System.out.println(c);   }   }
    A

    The code will fail to compile.

    B

    0 will be written to the standard output.

    C

    1 will be written to the standard output.

    D

    2 will be written to the standard output.

    E

    3 will be written to the standard output.


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

  • 第8题:

    单选题
    What is the output when the following shell script executes?()   cat<;<;foobar   Hello foobar   foobar
    A

     The contents of the file foobar.

    B

     Hello

    C

     No output but a file named foobar is created.

    D

     Hello foobar

    E

     Hello foobar foobar


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

  • 第9题:

    单选题
    What will be written to the standard output when the following program is run?()   public class Q8499 {   public static void main(String args[]) {  double d = -2.9;   int i = (int) d;  i *= (int) Math.ceil(d);  i *= (int) Math.abs(d);   System.out.println(i);   }   }
    A

    12

    B

    18

    C

    8

    D

    9

    E

    27


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

  • 第10题:

    单选题
    What will be the result of attempting to run the following program?()   public class Qaa75 {   public static void main(String args[]) {   String[][][] arr = {   { {}, null },   { { "1", "2" }, { "1", null, "3" } },   {},   { { "1", null } }  };   System.out.println(arr.length + arr[1][2].length);   }   }
    A

    The program will terminate with an ArrayIndexOutOfBoundsException.

    B

    The program will terminate with a NullPointerException.

    C

    4 will be written to standard output.

    D

    6 will be written to standard output.

    E

    7 will be written to standard output.


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

  • 第11题:

    单选题
    What will be written to the standard output when the following program is run?()   public class Q63e3 {   public static void main(String args[]) {   System.out.println(9 ^ 2);   }   }
    A

    81

    B

    7

    C

    11

    D

    0

    E

    false


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

  • 第12题:

    问答题
    What is the value of the variable output at line 24?

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

  • 第13题:

    What will be the result of attempting to run the following program?()   public class Qaa75 {   public static void main(String args[]) {   String[][][] arr = {   { {}, null },   { { "1", "2" }, { "1", null, "3" } },   {},   { { "1", null } }  };   System.out.println(arr.length + arr[1][2].length);   }   }  

    • A、The program will terminate with an ArrayIndexOutOfBoundsException.
    • B、The program will terminate with a NullPointerException.
    • C、4 will be written to standard output.
    • D、6 will be written to standard output.
    • E、7 will be written to standard output.

    正确答案:A

  • 第14题:

    What will be the result of attempting to compile and run the following code?()   public class Q6b0c {   public static void main(String args[]) {  int i = 4;  float f = 4.3;   double d = 1.8;   int c = 0;   if (i == f) c++;   if (((int) (f + d)) == ((int) f + (int) d))  c += 2;   System.out.println(c);   }   }  

    • A、The code will fail to compile.
    • B、0 will be written to the standard output.
    • C、1 will be written to the standard output.
    • D、2 will be written to the standard output.
    • E、3 will be written to the standard output.

    正确答案:A

  • 第15题:

    健康计划的总体目标中的三个"W"指()

    • A、who,what,when
    • B、what,when,why
    • C、who,what,which
    • D、what,when,where
    • E、when,where,which

    正确答案:A

  • 第16题:

    What does the "allow performance information collection" button do in the Hardware Management Console (HMC) GUI? ()

    • A、 It allows you to get inter partition reports, or cross partition performance activity.
    • B、 It will allow IBM remote technical support to get performance information from the machine.
    • C、 It is effective only on POWER6 and when Live Partition Mobility operations are planned.
    • D、 It will start standard performance monitoring tools when an LPAR boots up, the output will be saved to the /etc/perf directory by default.

    正确答案:A

  • 第17题:

    What will be written to the standard output when the following program is run?()   public class Qcb90 {   int a;   int b;   public void f() {  a = 0;   b = 0;   int[] c = { 0 };   g(b, c);   System.out.println(a + " " + b + " " + c[0] + " ");   }   public void g(int b, int[] c) {   a = 1;  b = 1;  c[0] = 1;  }   public static void main(String args[]) {   Qcb90 obj = new Qcb90();   obj.f();   }   }  

    • A、0 0 0
    • B、0 0 1
    • C、0 1 0
    • D、1 0 0
    • E、1 0 1

    正确答案:E

  • 第18题:

    单选题
    What will be the result of attempting to compile and run the following program?()   public class Q28fd {   public static void main(String args[]) {   int counter = 0;   l1:   for (int i=10; i i) break l2;   if (i == j) {   counter++;   continue l1;   }   }   counter--;   }   System.out.println(counter);  }   }
    A

    The program will fail to compile.

    B

    The program will not terminate normally.

    C

    The program will write 10 to the standard output.

    D

    The program will write 0 to the standard output.

    E

    The program will write 9 to the standard output.


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

  • 第19题:

    单选题
    Older video cards used S-video to output to a TV. This standard has been replaced by:()
    A

    FireWire.

    B

    SCSI.

    C

    coaxial.

    D

    HDMI.


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

  • 第20题:

    单选题
    What will be written to the standard output when the following program is run?()   class Base {  int i;  Base() {   add(1);   }   void add(int v) {  i += v;  }   void print() {  System.out.println(i);  }   }   class Extension extends Base {  Extension() {  add(2);  }   void add(int v) {  i += v*2;  }  }   public class Qd073 {   public static void main(String args[]) {  bogo(new Extension());  }   static void bogo(Base b) {  b.add(8);  b.print();   }   }
    A

    9

    B

    18

    C

    20

    D

    21

    E

    22


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

  • 第21题:

    单选题
    What will be written to the standard output when the following program is run?()  public class Qd803 {   public static void main(String args[]) {   String word = "restructure";   System.out.println(word.substring(2, 3));   }   }
    A

    est

    B

    es

    C

    str

    D

    st

    E

    s


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

  • 第22题:

    单选题
    What does the "allow performance information collection" button do in the Hardware Management Console (HMC) GUI? ()
    A

     It allows you to get inter partition reports, or cross partition performance activity.

    B

     It will allow IBM remote technical support to get performance information from the machine.

    C

     It is effective only on POWER6 and when Live Partition Mobility operations are planned.

    D

     It will start standard performance monitoring tools when an LPAR boots up, the output will be saved to the /etc/perf directory by default.


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

  • 第23题:

    单选题
    In the instance of the PROD database, the checkpoint (CKPT) process runs after every minute. A database user updates the rows of the ORDERS table. Because of the configuration, the CKPT process gets initiated before the user commits the transaction. What would happen to the modified blocks when the CKPT process is started?()
    A

    The modified blocks would be written to the data files.

    B

    The modified blocks would be written to the temp files.

    C

    The modified blocks would be written to the control file.

    D

    The modified blocks would be written to the redo log files.

    E

    The modified blocks would be written to the archived redo log files.

    F

    The modified blocks would be retained in the database buffer cache.


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

  • 第24题:

    单选题
    If you do not know the subject, you will not understand what is said or written, even if English is your mother () what is said or written.
    A

    speaking

    B

    language

    C

    saying

    D

    tongue


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