久久久久无码精品,四川省少妇一级毛片,老老熟妇xxxxhd,人妻无码少妇一区二区

思遷數(shù)碼科技招聘java軟件工程師筆試真題

時(shí)間:2024-09-26 11:27:28 秀雯 面試筆試 我要投稿
  • 相關(guān)推薦

思遷數(shù)碼科技招聘java軟件工程師筆試真題

  無論是身處學(xué)校還是步入社會(huì),許多人都需要跟試題打交道,試題可以幫助主辦方了解考生某方面的知識(shí)或技能狀況。什么樣的試題才能有效幫助到我們呢?以下是小編整理的思遷數(shù)碼科技招聘java軟件工程師筆試真題,僅供參考,希望能夠幫助到大家。

思遷數(shù)碼科技招聘java軟件工程師筆試真題

  思遷數(shù)碼科技招聘java軟件工程師筆試真題 1

  選擇題

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

  c.the code will not compile.

  d.none of these.

  7:

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

  public class throwsdemo

  {

  static void throwmethod()

  {

  system.out.println("inside throwmethod.");

  throw new illegalaccessexception("demo");

  }

  public static void main(string args[])

  {

  try

  {

  throwmethod();

  }

  catch (illegalaccessexception e)

  {

  system.out.println("caught " + e);

  }

  }

  }

  choices:

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

  public class throwsdemo

  {

  static void throwmethod()

  {

  system.out.println("inside throwmethod.");

  throw new illegalaccessexception("demo");

  }

  public static void main(string args[])

  {

  try

  {

  throwmethod();

  }

  catch (illegalaccessexception e)

  {

  system.out.println("caught " + e);

  }

  }

  }

  choices:

  a.compilation error

  b.runtime error

  c.compile successfully, nothing is printed.

  d.inside throwmethod. followed by caught:java.lang.illegalaccessexcption: demo

  8:假定a和b為int型變量,則執(zhí)行下述語句組后,b的值為

  a=1;

  b=10;

  do

  {

  b-=a;

  a++;

  } while (b—<;0);

  a.9

  b.-2

  c.-1

  d.8

  9:

  public class x{

  public object m(){

  object o = new float(3.14f);//line 3

  object [] oa = new object[1];//line 4

  oa[0] = o;//line 5

  o=null;//line 6

  return oa[0];//line 7

  }

  }

  when is the float object, created in line 3,eligible for garbage collection?

  public class x{

  public object m(){

  object o = new float(3.14f);//line 3

  object [] oa = new object[1];//line 4

  oa[0] = o;//line 5

  o=null;//line 6

  return oa[0];//line 7

  }

  }

  when is the float object, created in line 3,eligible for garbage collection?

  a.just after line 5.

  b.just after line 6

  c.just after line 7(that is,as the method returns)

  d.never in this method

  10:math.round(-11.5)等於多少?

  a.-11

  b.-12

  c.-11.5

  d.none

  11:in the following pieces of code, which one will compile without any error?

  a.stringbuffer sb1 = "abcd";

  b.boolean b = new boolean("abcd");

  c.c: byte b = 255;

  d.float fl = 1.2;

  12:

  give the following method:

  public void method( ){

  string a,b;

  a=new string(“hello world”);

  b=new string(“game over”);

  system.out.println(a+b+”ok”);

  a=null;

  a=b;

  system.out.println(a);

  }

  in the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

  give the following method:

  public void method( ){

  string a,b;

  a=new string(“hello world”);

  b=new string(“game over”);

  system.out.println(a+b+”ok”);

  a=null;

  a=b;

  system.out.println(a);

  }

  in the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.

  a.before line 5

  b.before line 6

  c.before line 7

  d.before line 9

  13:

  give the following java class:

  public class example{

  static int x[]=new int[15];

  public static void main(string args[]){

  system.out.println(x[5]);

  }

  }

  which statement is corrected?

  give the following java class:

  public class example{

  static int x[]=new int[15];

  public static void main(string args[]){

  system.out.println(x[5]);

  }

  }

  which statement is corrected?

  a.when compile, some error will occur.

  b.when run, some error will occur.

  c.output is zero.

  d.output is null.

  14:以下的c程序代碼片段運(yùn)行后c和d的值分別是多少

  int a =1,b =2;

  int c,d;

  c =(a&;b)&;&;a;

  d =(a&;&;b)&;a;

  a.0,0

  b.0,1

  c.1,0

  d.1,1

  簡答題

  15:15個(gè)教徒和15 個(gè)非教徒在深海上遇險(xiǎn),必須將一半的人投入海中,其余的`人才能幸免于難,于是想了一個(gè)辦法:30個(gè)人圍成一圓圈,從第一個(gè)人開始依次報(bào)數(shù),每數(shù)到第九個(gè)人就將他扔入大海,如此循環(huán)進(jìn)行直到僅余15個(gè)人為止。問怎樣排法,才能使每次投入大海的都是非教徒。

  16:構(gòu)造器constructor是否可被override?

  17:簡單介紹一下ioc的實(shí)現(xiàn)原理。(寫出代碼最好)

  18:說出數(shù)據(jù)連接池的工作機(jī)制是什么?

  19:列出一些控制流程的方法;

  20:找出兩個(gè)字符串中最大子字符串,如"abractyeyt","dgdsaeactyey"的最大子串為"actyet"

  21:請(qǐng)寫一個(gè)java程序?qū)崿F(xiàn)數(shù)據(jù)庫緩沖池的功能?

  22:tomcat里實(shí)現(xiàn)會(huì)話session復(fù)制,有那些方法?

  23:簡單介紹jsp的標(biāo)記庫?

  24:hibernate的2級(jí)緩存有那些緩存策略?每種緩存策略的使用范圍?

  25:不用乘法或加法給一個(gè)數(shù)增加7倍。

  思遷數(shù)碼科技招聘java軟件工程師筆試真題 2

  1). applet的運(yùn)行過程要經(jīng)歷4個(gè)步驟,其中哪個(gè)不是運(yùn)行步驟?

  A.瀏覽器加載指定URL中的HTML文件

  B.瀏覽器顯示HTML文件

  C.瀏覽器加載HTML文件中指定的applet類

  D.瀏覽器中的Java運(yùn)行環(huán)境運(yùn)行該applet

  正確答案:B

  2). 二維數(shù)組A[O,…,8][0,…,9],其每個(gè)元素占2字節(jié)。從首地址400開始,按行優(yōu)先順序存儲(chǔ),則元素A[8][5]的存儲(chǔ)地址為( )。

  A.570

  B.506

  C.410

  D.482

  正確答案:A

  答案解析:A[8][5]元素存儲(chǔ)的位置在第9行第6列,所以A[8][5]之前存儲(chǔ)的個(gè)數(shù)應(yīng)為8×10+5 = 85,這些元素占用的空間為85×2字節(jié)=170字節(jié),所以A[8][5]的存儲(chǔ)位置為400+170= 570。

  3). 用于生產(chǎn)過程控制的系統(tǒng),一般都是( ),它要求有對(duì)輸入數(shù)據(jù)及時(shí)做出響應(yīng)的能力。

  A.批處理系統(tǒng)

  B.分時(shí)系統(tǒng)

  C.實(shí)時(shí)系統(tǒng)

  D.及時(shí)系統(tǒng)

  正確答案:C

  答案解析:用于生產(chǎn)過程控制的系統(tǒng),一般都是實(shí)時(shí)系統(tǒng),它要求有對(duì)輸入數(shù)據(jù)及時(shí)做出反應(yīng)(響應(yīng))的能力。由于環(huán)境和控制對(duì)象以及工作任務(wù)的不同,控制系統(tǒng)對(duì)計(jì)算機(jī)系統(tǒng)的要求也會(huì)不同,一般會(huì)對(duì)計(jì)算機(jī)系統(tǒng)的'可靠性、封閉性、抗干擾性等指標(biāo)提出要求。

  4). Java語言的許多特點(diǎn)中,下列哪個(gè)特點(diǎn)是C++語言所不具備的?

  A.高性能

  B.跨平臺(tái)

  C.面向?qū)ο?/p>

  D.有類庫

  正確答案:B

  5). 在匹配器(Matcher)類中,用于尋找下一個(gè)模式匹配串的方法是( )。

  A.static boolean matches()

  B.boolean matcher .fi nd()

  C.i nt matcher .start()

  D.i nt matcher .end()

  正確答案:A

  答案解析:本題考查考生對(duì)Java 中的匹配器(Matcher)類的理解。Matcher 類用于將一個(gè)輸入字符串i nput 和模式串pattern 相比較。Boolean matcher .fi nd()方法用于尋找下一個(gè)模式匹配串;i nt matcher .start()方法用于返回匹配串的一個(gè)起始索引整數(shù)值;i nt matcher .end()方法用于返回匹配串的一個(gè)終止索引整數(shù)值。而用于輸入字符串與模式串比較的方法是static boolean matches(),選項(xiàng)A 正確。

  6). J2EE和( )語言綁定。

  A.C

  B.C++

  C.Java

  D.匯編語言

  正確答案:C

  答案解析:J2EE的基礎(chǔ)是J2SE,以Java為平臺(tái);而C語言用于ODBCAPI。由于兩者不兼容,SUN公司才提出了JDBC作為Java幾個(gè)平臺(tái)與麴據(jù)庫的標(biāo)準(zhǔn)連接。

  7). 下列關(guān)于結(jié)構(gòu)化設(shè)計(jì)原則的描述,錯(cuò)誤的是

  A.在塊和進(jìn)程的非正常出口處往往需要調(diào)用GOTO語句,使用GOTO語句使程序執(zhí)行效率提高,但是濫用GOTO語句確實(shí)有害,應(yīng)該避免使用GOTO語句。

  B.程序設(shè)計(jì)時(shí)應(yīng)該自頂向下,逐步求精。

  C.程序設(shè)計(jì)時(shí),應(yīng)該將復(fù)雜問題進(jìn)行模塊化,就是將程序設(shè)計(jì)的總目標(biāo)分解為若干個(gè)分目標(biāo),再進(jìn)一步分解為具體的小目標(biāo)。

  D.在進(jìn)行程序設(shè)計(jì)時(shí),應(yīng)該盡量在一行書寫一條語句,盡量做到效率第一,清晰第二。

  正確答案:D

  8). 如果線程調(diào)用下列方法,不能保證使該線程停止運(yùn)行的是( )。

  A.sleep()

  B.stop()

  C.yield()

  D.wait()

  正確答案:C

  答案解析:線程的方法中sleep()方法的作用是使比當(dāng)前線程優(yōu)先級(jí)低的線程運(yùn)行。該方法使一個(gè)線程暫停運(yùn)行一段固定時(shí)間。在休眠時(shí)間內(nèi),線程將不運(yùn)行,低優(yōu)先級(jí)的線程將有機(jī)會(huì)運(yùn)行。yield()方法為只讓給同等優(yōu)先級(jí)的線程運(yùn)行。如果沒有同等優(yōu)先級(jí)的線程是可運(yùn)行狀態(tài),yield()方法將什么也不做,即線程將繼續(xù)運(yùn)行。stop()方法是強(qiáng)行終止線程。wait()方法是線程間交互的方法,是使一個(gè)線程停止運(yùn)行,進(jìn)入等待狀態(tài)。

  9). 開發(fā)軟件時(shí)對(duì)提高開發(fā)人員工作效率至關(guān)重要的是( )。

  A.操作系統(tǒng)的資源管理功能

  B.先進(jìn)的軟件開發(fā)工具和環(huán)境

  C.程序員的數(shù)量

  D.計(jì)算機(jī)的并行處理能力

  正確答案:B

  答案解析:先進(jìn)的軟件開發(fā)工具和環(huán)境對(duì)提高開發(fā)人員工作效率是至關(guān)重要的。

  10). 信息隱蔽的概念與下述哪一種概念直接相關(guān)( )。

  A.軟件結(jié)構(gòu)定義

  B.模塊獨(dú)立性

  C.模塊類型劃分

  D.模擬耦合度

  正確答案:B

  答案解析:信息隱蔽的概念與模塊獨(dú)立性這一概念直接相關(guān)。

【思遷數(shù)碼科技招聘java軟件工程師筆試真題】相關(guān)文章:

青島校園招聘 筆試真題11-21

吉林電信校園招聘筆試真題11-21

大唐軟件java軟件工程師筆試題分享11-21

360軟件工程筆試真題分享11-21

聯(lián)想筆試真題11-06

IT軟件筆試樣題及分析11-06

中國農(nóng)業(yè)銀行校園招聘筆試真題11-12

2010淘寶筆試真題11-06

格力筆試真題分享11-21