大风车考试网-在线学习网络资源平台!

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

思遷數碼科技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”.

  • 相關文章
主站蜘蛛池模板: 山东优科机械设备有限公司,养鸡设备,湿帘设备,通风降温加湿设备,山东养鸡设备,山东湿帘设备 | 深圳汽车贴膜_深圳全车车身改色贴膜|UPPF隐形车衣官网 | 三叶罗茨鼓风机_三叶罗茨风机厂家_山东九洲四海机械有限公司 | 石家庄团建公司|石家庄拓展训练|石家庄拓展培训|石家庄公司团建|石家庄拓展公司-石家庄启聚团建公司 | 生活污水处理设备-地埋式污水处理设备厂家-山东梦之洁水处理设备有限公司 | 深圳汽车贴膜_深圳全车车身改色贴膜|UPPF隐形车衣官网 | 饮料制造机械设备-罐体设备报价-CIP清洗设备-饮料生产线交钥匙工程-上海哲苏轻工机械有限公司 | 陕西筱润智能科技有限公司 干部人事智能档案柜 智能密集架 智能档案柜 部队选层文件智能柜 智能枪弹柜 财务智能档案柜 边防武警智能密集架 医院智能档案柜 部队选层文件智能柜智能枪弹柜 学校医院文件柜 企事业单位公检法智能文件柜 生产厂家-筱润智能科技有限公司 RFID射频智能密集架 全自动智能选层档案柜 智能密保柜 枪柜部队营房营具床桌椅办公家具 办公用品档案盒设备货架 全自动智能选层柜生产厂家-筱润智能科技有限公司 | 聚四氟乙烯板,聚乙烯四氟板,防火布,廊坊王氏防火材料有限公司官网 | 液体灌装机_全自动灌装机_大桶灌装机_200L灌装机_涂料油漆灌装机-昆山灌装自动化设备有限公司 | 家用座椅电梯 斜挂升降平台 无障碍升降机 残疾人升降机的生产厂家超易达机械 | 河北安润防腐管业股份有限公司-远程供液管路_远程供液_远程供液系统 | 温湿度记录仪_温度监控_冷链监控云平台_USB/PDF温度记录仪-深圳市鸿睿物联科技发展有限公司 | 交通标志牌-交通标牌-铝圆牌-铝三角片-铝滑槽-公路警示指示牌-方牌-高速道路反光牌毛坯-交通设施安全警示标识牌-路名指示限速限高牌-厂家加工交通标牌铝板半成品毛坯-上海吕盟铝业有限公司 | 搜药网-中药材中成药大全网普及中医中药功效归经知识,中药学知识天地 | 智能一体化蒸馏仪_氨氮蒸馏仪_全自动智能蒸馏仪器厂家-那艾 | 长春互联网运营值选星广传媒,长春短视频运营,长春新媒体运营,长春互联网运营,长春抖音运营,吉林视频号代运营,吉林快手代运营,短视频推广公司,公众号运营,微博运营,新媒体运营 | 热门网页游戏平台_页游排行榜_新开网页游戏开服表_599游戏 | 远红外桑拿房-江苏侨达健康科技有限公司 | 九江市京邦玻纤有限公司| 箱式电炉,箱式烧结炉,箱式马弗炉,箱式实验炉,高温箱式电阻炉,箱式加热炉,箱式退火炉,箱式真空气氛炉洛阳研博炉业有限公司 | 内蒙古国际门窗幕墙展览会 | 轴流风机_混流风机_排烟防火阀-德州辰特空调设备有限公司 | 景县泉兴永塔业有限公司-广播电视塔、通信塔、电力塔、交通设施、监控杆塔、气象塔、森林防火瞭望塔、避雷塔、烟筒塔、训练塔 | 全通径焊接球阀_全焊接球阀「生产厂家」批发-浙江信合阀门有限公司 | 液晶拼接屏_液晶监视器_液晶广告机_触摸一体机_户外广告机_中亿睿企业官网 | 铸造工具|芯撑|铸造毛刷|枣强县永盛五金工具厂 | 延吉新闻网 - 未来之选·就是延吉 [YanJinews.com] | 兰州钢结构,甘肃铝镁锰板工程,青海岩棉复合板厂家,宁夏岩棉彩钢板公司,西宁彩钢夹芯板-兰州腾达彩钢 | 呼吸家官网|肺功能检测仪生产厂家|国产肺功能仪知名品牌|肺功能检测仪|肺功能测试仪|婴幼儿肺功能仪|弥散残气肺功能仪|肺功能测试系统|广州红象医疗科技有限公司|便携式肺功能仪|大肺功能仪|呼吸康复一体机|儿童肺功能仪|肺活量计|医用简易肺功能仪|呼吸康复系统|肺功能仪|弥散肺功能仪(大肺)|便携式肺功能检测仪|肺康复|呼吸肌力测定肺功能仪|肺功能测定仪|呼吸神经肌肉刺激仪|便携式肺功能 | 沼气池-沼气设备-沼气工程-山东达禹环境工程有限公司 | 呼吸家官网|肺功能检测仪生产厂家|国产肺功能仪知名品牌|肺功能检测仪|肺功能测试仪|婴幼儿肺功能仪|弥散残气肺功能仪|肺功能测试系统|广州红象医疗科技有限公司|便携式肺功能仪|大肺功能仪|呼吸康复一体机|儿童肺功能仪|肺活量计|医用简易肺功能仪|呼吸康复系统|肺功能仪|弥散肺功能仪(大肺)|便携式肺功能检测仪|肺康复|呼吸肌力测定肺功能仪|肺功能测定仪|呼吸神经肌肉刺激仪|便携式肺功能 | 室内儿童乐园定制_淘气堡订做_蹦床公园订制厂家-乐奇多 | 全网营销_网络推广外包_全网营销代运营公司-湖南微望互动 | 云南破碎机-制砂机-洗砂机-振动筛-昆明昆重机械厂家 | 深圳市泰美乐纸制品有限公司-纸杯厂,一次性纸杯,广告纸杯,奶茶纸杯,试饮纸杯定做 | 长春试验机-长春凯新试验仪器_试验机研发生产 专注试验机_首页 | 商标注册_商标转让交易_专利申请_版权登记_ISO认证服务咨询-世标知识产权 | 中证金服投资控股(深圳)有限公司| 呼吸家官网|肺功能检测仪生产厂家|国产肺功能仪知名品牌|肺功能检测仪|肺功能测试仪|婴幼儿肺功能仪|弥散残气肺功能仪|肺功能测试系统|广州红象医疗科技有限公司|便携式肺功能仪|大肺功能仪|呼吸康复一体机|儿童肺功能仪|肺活量计|医用简易肺功能仪|呼吸康复系统|肺功能仪|弥散肺功能仪(大肺)|便携式肺功能检测仪|肺康复|呼吸肌力测定肺功能仪|肺功能测定仪|呼吸神经肌肉刺激仪|便携式肺功能 | 江西省力速数控机械有限公司丨火花机丨龙门加工中心丨镜面火花机丨卧式加工中心 |