<strike id="6q0um"></strike>
  • <strike id="6q0um"><s id="6q0um"></s></strike>
  • <ul id="6q0um"></ul><strike id="6q0um"></strike>

    當前位置:高考升學網 > 招聘筆試題 > 正文

    思遷數碼科技Java軟件工程師筆試真題

    更新:2023-09-20 09:20:35 高考升學網
      選擇題

      1:Which statements about Java code security are not true?

      A.The bytecode verifier loads all classes needed for the execution of a program.

      B.Executing code is performed by the runtime interpreter.

      C.At runtime the bytecodes are loaded, checked and run in an interpreter.

      D.The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.

      2:What is the result when you compile and run the following code?

      public class Test

      {

      public void method()

      {

      for(int i = 0; i < 3; i++)

      {

      System.out.print(i);

      }

      System.out.print(i);

      }

      }

      Choices:

      What is the result when you compile and run the following code?

      public class Test

      {

      public void method()

      {

      for(int i = 0; i < 3; i++)

      {

      System.out.print(i);

      }

      System.out.print(i);

      }

      }

      Choices:

      A.0122

      B.0123

      C.Compilation error

      D.None of these

      3:

      Give the following code:

      public class Example{

      public static void main(String args[] ){

      int l=0;

      do{

      System.out.println(“Doing it for l is:”+l);

      }while(--l>0)

      System.out.println(“Finish”);

      }

      }

      Which well be output:

      Give the following code:

      public class Example{

      public static void main(String args[] ){

      int l=0;

      do{

      System.out.println(“Doing it for l is:”+l);

      }while(--l>0)

      System.out.println(“Finish”);

      }

      }

      Which well be output:

      A.Doing it for l is 3

      B.Doing it for l is 1

      C.Doing it for l is 2

      D.Doing it for l is 0

      4:Math.round(11.5)等於多少?

      A.11

      B.12

      C.11.5

      D.none

      5:

      What will happen when you attempt to compile and run the following code?

      int Output = 10;

      boolean b1 = false;

      if((b1 == true) && ((Output += 10) == 20))

      {

      System.out.println("We are equal " + Output);

      }

      else

      {

      System.out.println("Not equal! " + Output);

      }

      Choices:

      What will happen when you attempt to compile and run the following code?

      int Output = 10;

      boolean b1 = false;

      if((b1 == true) && ((Output += 10) == 20))

      {

      System.out.println("We are equal " + Output);

      }

      else

      {

      System.out.println("Not equal! " + Output);

      }

      Choices:

      A.Compilation error, attempting to perform binary comparison on logical data type

      B.Compilation and output of "We are equal 10".

      C.Compilation and output of "Not equal! 20".

      D.Compilation and output of "Not equal! 10".

      6:

      What will happen when you attempt to compile and run the following code?

      (Assume that the code is compiled and run with assertions enabled.)

      public class AssertTest{

      public void methodA(int i){

      assert i >= 0 : methodB();

      System.out.println(i);

      }

      public void methodB(){

      System.out.println("The value must not be negative");

      }

      public static void main(String args[]){

      AssertTest test = new AssertTest();

      test.methodA(-10);

      }

      }

      What will happen when you attempt to compile and run the following code?

      (Assume that the code is compiled and run with assertions enabled.)

      public class AssertTest{

      public void methodA(int i){

      assert i >= 0 : methodB();

      System.out.println(i);

      }

      public void methodB(){

      System.out.println("The value must not be negative");

      }

      public static void main(String args[]){

      AssertTest test = new AssertTest();

      test.methodA(-10);

      }

      }

      A.it will print -10

      B.it will result in AssertionError showing the message-“the value must not be negative”.

    相關文章

    最新圖文

    2020年河北新聞網兩學一做

    時間:2023-09-18 07:0:24

    2020年河北新聞網兩學一做

    時間:2023-09-15 11:0:59

    兩學一做學習教育知

    時間:2023-09-21 06:0:30

    2020年開展兩學一做學習教

    時間:2023-09-19 21:0:30
    国产亚洲精aa成人网站| 亚洲gay片在线gv网站| 亚洲第一黄片大全| 亚洲午夜理论片在线观看| 亚洲一区二区三区在线网站| 亚洲国产成+人+综合| 亚洲精品中文字幕无乱码| 亚洲精品视频在线免费| 亚洲精品午夜在线观看| 亚洲精品不卡视频| 亚洲一级高清在线中文字幕| 国产.亚洲.欧洲在线| 国产亚洲福利在线视频| 亚洲欧美日韩综合久久久| 亚洲成a∧人片在线观看无码| 亚洲爆乳成av人在线视菜奈实| 亚洲AV无码资源在线观看| 青青青国产色视频在线观看国产亚洲欧洲国产综合 | 中文字幕亚洲综合久久男男| 中文字幕一精品亚洲无线一区 | 亚洲av无码国产综合专区| 亚洲国产精品综合久久20| 亚洲一本到无码av中文字幕| 男人的天堂av亚洲一区2区| 亚洲?V乱码久久精品蜜桃| 国产精品亚洲αv天堂无码| 亚洲精品无码成人AAA片| 亚洲AV一宅男色影视| 无码专区—VA亚洲V天堂| 18gay台湾男同亚洲男同| 亚洲av乱码一区二区三区 | 久久亚洲综合色一区二区三区| 久久夜色精品国产嚕嚕亚洲av| 亚洲视频一区在线观看| 亚洲已满18点击进入在线观看| 亚洲第一街区偷拍街拍| 亚洲国产午夜中文字幕精品黄网站 | 亚洲最大的黄色网| 国产亚洲精品AAAA片APP| 国产av无码专区亚洲国产精品| 亚洲春色在线视频|