国产成人做受免费视频-国产成在线观看免费视频-国产传媒在线播放-国产传媒在线观看-欧美一区二区三区不卡免费观看-欧美一区二区三区不卡片

所在位置:大風車考試網 > 招聘筆試題 > 正文

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

2024-05-28 01:56:15 大風車考試網
  選擇題

  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 interPter.

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

  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”.

  • 相關文章
主站蜘蛛池模板: 色综合伊人色综合网站下载 | 欧美 日韩 亚洲另类专区 | 欧美国产小视频 | 成人动漫h在线 | 国产亚洲精品自在线观看 | 日韩亚洲人成网站 | 性俄罗斯xxxxxhd | 日韩性网站 | 欧美精品91| 国产精品国产三级农村妇女 | 免费在线h| 国产精品久久久久毛片 | 欧美精品一区二区三区久久 | 国产大片中文字幕 | 国产国产人免费视频成69大陆 | 中国一级特黄高清免费的大片 | 四虎综合网| 美女国产在线观看 | 国产麻豆精品免费密入口 | 国产色网站| 伊人艹 | 91华人在线视频 | 黑人香蕉又粗又大视频免费 | 国产毛片一区二区三区 | 高清中文字幕视频在线播 | 精品福利一区二区三区 | 日韩久久一区二区三区 | 清纯唯美亚洲综合五月天 | 亚洲欧美手机在线观看 | 麻豆精品久久久一区二区 | 欧美a级v片在线观看一区 | 日本a∨在线播放高清 | 免费看黄色网页 | 日韩毛片在线看 | 久热国产在线 | 欧美视频一区二区三区四区 | 国产成人精品高清在线观看99 | 日本欧美中文字幕人在线 | 自拍一区在线观看 | 在线免费观看日本 | 久久精品美女视频 |