日本无码中文字幕片|日本精品在线观看无码视频|国产精品免费啪啪|Av无码一区二区|亚洲在线黄片免费观看|亚洲日韩中文字幕在线观看|熟女激情乱伦在线观看a黄片|成年人观看毛片网址|AV色色色色日韩性草|国产高清无码免费

再見了母校作文

時間:2025-11-02 16:06:17 母校 我要投稿

再見了母校作文

  一、英語

再見了母校作文

  1、請將以下短文翻譯成英文

  電子商務(wù)是基于計(jì)算機(jī)技術(shù)、網(wǎng)絡(luò)技術(shù)和遠(yuǎn)程通信技術(shù),實(shí)現(xiàn)買賣雙方不謀面地進(jìn)行各種商貿(mào)活動,比如產(chǎn)品和服務(wù)的買賣。電子商務(wù)的蓬勃發(fā)展離不開當(dāng)今人們的網(wǎng)購熱情,根據(jù)一項(xiàng)網(wǎng)購習(xí)慣的調(diào)查顯示,84%的中國內(nèi)陸調(diào)查對象表示他們上網(wǎng)的主要目的就是網(wǎng)購。網(wǎng)上購物有很多優(yōu)點(diǎn),購物者足不出戶就可以貨比三家,買到心儀的商品。

  二、基礎(chǔ)知識(選擇題)

  1、下面程序的輸出是:()

  char s[] = "Welcometohengtian"; printf("%s%d",s+7,sizeof(s));

  A、Welcometohengtian17

  B、tohengtian18

  C、tohengtian17

  D、Welcometohengtian18

  2、在操作系統(tǒng)中最常用來被作為存儲文件關(guān)系的數(shù)據(jù)結(jié)構(gòu)是()

  A、鏈表 B、數(shù)組 C、堆棧 D、樹

  3、下列哪一項(xiàng)不屬于應(yīng)用程序在操作系統(tǒng)中的內(nèi)存分配方式()

  A、隊(duì)列上分配 B、靜態(tài)存儲區(qū)分配 C、棧上分配 D、堆上分配

  4、下列的排序算法中,初始數(shù)據(jù)集的排列順序?qū)λ惴ǖ男阅軣o影響的是()

  A、插入排序 B、堆排序 C、冒泡排序 D、快速排序

  5、下列關(guān)于一個類的靜態(tài)成員的描述中,不正確的是()

  A、該類的對象共享其靜態(tài)成員變量的值

  B、靜態(tài)成員變量可被該類的所有方法訪問

  C、該類的靜態(tài)方法只能訪問該類的靜態(tài)成員變量

  D、該類的靜態(tài)數(shù)據(jù)成員變量的值不可修改

  6、操作系統(tǒng)中,以下哪種方式無法實(shí)現(xiàn)進(jìn)程同步?

  A、Ctitical Section B、Mutex C、Semaphore D、Event

  7、在一個具有n個頂點(diǎn)的無向圖中,要連通全部頂點(diǎn)至少需要()條邊。

  A、N B、N-1 C、N+1 D、N/2

  8、下面哪一種操作不是 stack 的基本操作?()

  A、入棧 B、出棧 C、檢查是否為空 D、排序棧中元素

  9、在帶有頭結(jié)點(diǎn)的單鏈表HL中,要向表頭插入一個由指針p指向的結(jié)點(diǎn),則執(zhí)行()

  A、p->next = HL->next ; HL->next = p ;

  B、p->next = HL ; HL = p ;

  C、p->next = HL ; p = HL ;

  D、HL = p ; p->next = HL ;

  10、對于線性表(7,34,55,25,64,46,20,10)進(jìn)行散列存儲時,若選用H(K) = K%9 作為散列函數(shù),則散列地址為1的元素有()個。

  A、4 B、5 C、2 D、3

  11、下列代碼運(yùn)行后,result的值是多少()

  List ints = new List(){1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};

  var query = from i in ints

  where i%2 == 0 || i%3 == 0

  select i;

  ints.RemoveAt(1);

  int result = query.Count();

  A、7 B、8 C、9 D、10

  12、下面這段代碼,當(dāng)T分別是引用類型和值類型的時候,分別產(chǎn)生了多少個T對象()

  T t = new T();

  Func(t);

  Func定義如下:

  public void Func(T t)

  {

  }

  A、1 1 B、2 1 C、2 2 D、1 2

  13、在.NET中,char類型占幾個字節(jié)()

  A、1 B、2 C、4 D、運(yùn)行時根據(jù)平臺確定

  14、下列哪個是C#中運(yùn)行時常量的定義方法()

  A、public static readonly int Port = 47896

  B、public const int Port = 47896

  C、public static const int Port = 47896

  D、public static sealed int Port = 47896

  15、在C#中類的默認(rèn)訪問級別是什么(該類不是內(nèi)部類)()

  A、internal B、public C、protected internal D、private

  16、下面的代碼發(fā)生了多少次裝箱操作()

  String.Format("{0}:{1} , {2} , {3}}" , 2012 , 1.ToString() , "2" , DateTime.Now);

  A、1 B、2 C、3 D、4

  17、下面代碼的輸出結(jié)果是()

  try

  {

  try

  {

  int i = 0;

  object value = 1/i;

  }

  catch(NullReferenceException Exception)

  {

  Console.Write("Null Re Ex");

  }

  finally

  {

  Console.Write("Cleanup ");

  }

  }

  catch

  {

  Console.Write("Generic catch ");

  }

  A、Null Re Ex Cleanup Generic catch

  B、Null Re Ex Cleanup

  C、Cleanup Generic catch

  D、Generic catch Cleanup

  18、下面這段代碼的輸出結(jié)果是()

  B b = new B();

  類定義如下:

  class B : A

  {

  static B()

  {

  Console.Write("B static ");

  }

  public B()

  {

  Console.Write("B base ");

  }

  };

  class A

  {

  static A()

  {

  Console.Write("A static ");

  }

  public A()

  {

  Console.Write("A base ");

  }

  };

  A、A static A base B static B base

  B、B static B base A static A base

  C、B static A static A base B base

  D、A static B static B base A base

  19、下面代碼的輸出結(jié)果是()

  object obj = "2.0";

  Console.Write(string.Format("{0:0.00}",obj));

  A、2 B、2.00 C、2.0 D、空(無輸出)

  20、下面代碼運(yùn)行后,對象c的items列表有幾個值()

  class C

  {

  static void Main()

  {

  C c = new C();

  c.Func(c.items);

  }

  private List items = new List();

  private void Func(List items)

  {

  items.Add(1);

  this.items.Add(2);

  items = new List();

  items.Add(1);

  this.items.Add(2);

  }

  };

  A、1 B、2 C、3 D、4

  21、以下哪個表達(dá)式是不合法的()

  A、 String x="Hello" ; int y = 9; x+=y;

  B、String x="Hello" ; int y = 9; if(x==y) { }

  C、String x="Hello" ; int y = 9; x=x+y;

  D、String x3=null ; boolean y3=(x3!=null) && (x3.length()>0);

  22、下面程序的運(yùn)行結(jié)果是()

  public class MathTest

  {

  int add(int a , int b)

  {

  int result;

  result = a + b;

  return result;

  }

  public static void main(String[] args)

  {

  MathTest mathTest = new MathTest();

  int i = 2;

  int j = 3;

  System.out.println(mathTest.add(i++,++j));

  }

  }

  A、5 B、6 C、7 D、局部變量沒有初始化,程序有錯

  23、下面關(guān)于new關(guān)鍵字的表述錯誤的是()

  A、new關(guān)鍵字在生成一個對象時會為對象開辟內(nèi)存空間

  B、new關(guān)鍵字在生成一個對象時會調(diào)用類的構(gòu)造方法

  C、new關(guān)鍵字在生成一個對象時會將生成的對象的地址返回

  D、Java中只能通過new關(guān)鍵字來生成一個對象

  24、下面程序的運(yùn)行結(jié)果是()

  public class Person

  {

  boolean flag;

  int age = 25;

  static String name = "zhangsan";

  public static void main(String[] args)

  {

  Person person1 = new Person();

  Person person2 = new Person();

  person1.age = 26;

  person1.name = "lisi";

  if(person1.flag)

  {

  person2 = person1;

  System.out.println(person1.name + " : " + person1.age);

  System.out.println(person2.name + " : " + person2.age);

  }

  else

  {

  System.out.println(person1.name + " : " + person1.age);

  System.out.println(person2.name + " : " + person2.age);

  }

  }

  }

  A、lisi : 26

  lisi : 25

  B、lisi : 26

  zhangsan : 25

  C、zhangsan : 26

  lisi : 25

  D、程序有錯誤

  25、下面程序編譯時生成幾個class文件?程序的運(yùn)行結(jié)果是()

  public class Persons

  {

  public void changePersonInformation(Person person)

  {

  person = new Person();

  person.name = "ZhangSan";

  person.age = 25;

  }

  public static void main(String[] args)

  {

  Persons persons = new Persons();

  Person person = new Person();

  persons.changePersonInformation(person);

  System.out.println(person.name);

  System.out.println(person.age);

  ; }

  }

  class Person

  {

  String name = "LiSi";

  int age = 26;

  };

  A、2個 LiSi 26 B、1個 LiSi 26 C、2個 ZhangSan 25 D、1個 ZhangSan 25

  26、下面程序的運(yùn)行結(jié)果是()

  public class ConstructorTest

  {

  public ConstructorTest()

  {

  this(6);

  System.out.println("this is a constructor.");

  }

  public ConstructorTest(int i)

  {

  this(i-1 , --i);

  System.out.println(i);

  }

  public ConstructorTest(int i , int j)

  {

  System.out.println(i+j);

  }

  public static void main(String[] args)

  {

  ConstructorTest col = new ConstructorTest();

  }

  };

  A、6 this is a constructor. 9

  B、10 5 this is a constructor.

  C、5 9 this is a constructor.

  D、5 10 this is a constructor.

  27、下面程序的運(yùn)行結(jié)果是()

  public class Father

  {

  public Father()

  {

  System.out.println("i am father.");

  }

  public void read()

  {

  System.out.println("Father is reading.");

  }

  public static void main(String[] args)

  {

  Father father = new Son();

  father.read();

  }

  };

  class Son extends Father

  {

  public Son()

  {

  System.out.println("i am Son.");

  }

  public void read()

  {

  System.out.println("Son is reading.");

  }

  };

  A、 i am father.

  Father is reading.

  B、 i am Son.

  Son is reading.

  C、 i am father.

  i am Son.

  Son is reading.

  D、 i am Son.

  i am father.

  Son is reading.

  28、下面程序的運(yùn)行結(jié)果是()

  public class Father

  {

  public Father()

  {

  System.out.println("i am father.");

  }

  public void read()

  {

  System.out.println("Father is reading.");

  }

  public static void main(String[] args)

  {

  Father father = new Son();

  father.write();

  }

  };

  class Son extends Father

  {

  public Son()

  {

  System.out.println("i am Son.");

  }

  public void write()

  {

  System.out.println("Son is writting.");

  }

  public void read()

  {

  System.out.println("Son is reading.");

  }

  };

  A、 i am father.

  i am Son.

  Son is writting.

  B、 i am Son.

  Son is writting.

  C、 i am father.

  Son is writting.

  D、 程序有錯誤,無法運(yùn)行

  29、下面程序的運(yùn)行結(jié)果是()

  public class OuterClass

  {

  private class InterClass()

  {

  public InterClass()

  {

  System.out.println("InterClass Create");

  }

  }

  public OuterClass()

  {

  InterClass ic = new InterClass();

  System.out.println("OuterClass Create");

  }

  public static void main(String[] args)

  {

  OuterClass oc = new OuterClass();

  }

  };

  A、 OuterClass Create

  B、 InterClass Create

  C、 InterClass Create

  OuterClass Create

  D、OuterClass Create

  InterClass Create

  30、下面程序的運(yùn)行結(jié)果是()

  public class StringTest

  {

  public static void main(String[] args)

  {

  String hello = "hello";

  String hel = "hel";

  String lo = "lo";

  System.out.println(hello == "hel" + "lo");

  System.out.println(hello == "hel" + lo);

  }

  };

  A、true

  true

  B、false

  false

  C、true

  false

  D、false

  true

  三、編程題

  1、已知memcpy的函數(shù)為: void* memcpy(void *dest , const void* src , size_t count)其中dest是目的指針,src是源指針。不調(diào)用c++/c的memcpy庫函數(shù),請編寫memcpy。

  void* memcpy(void *dest , const void* src , size_t count)

  {

  assert( (dest != NULL) && (src != NULL)); /pic/p>

  assert(count > 0);

  char* psrc = (char *)src;

  char* pdest = (char *)dest;

  while(count--)

  {

  *pdest++ = *psrc++;

  }

  return dest;

  }

  四、附加題

  1、用適當(dāng)?shù)姆椒ńy(tǒng)計(jì)出下面字符串中出現(xiàn)次數(shù)最多的字符,已知字符串為:

  Welcome to our company Software Engineer Recruitment Examination.

  char MostTimes(char* str)

  {

  int i , max , hash[256];

  char ch;

  for(i = 0 ; i < 256 ; ++i)

  hash[i] = 0;

  for(i = 0 ; str[i] != '\0' ; ++i)

  {

  if((str[i] >= 'a' && str[i] <= 'z') || (str[i] >= 'A' && str[i] <= 'Z'))

  ++hash[str[i]];

  }

  for(i = 0 , max = 0; i < 256 ; ++i)

  {

  if(hash[i] > max)

  {

  max = hash[i];

  ch = i;

  }

  }

  return ch;

  }

  2、已知有一個object類型的輸入obj,我們不清楚他到底是什么內(nèi)容,請使用C#寫一個函數(shù)將其轉(zhuǎn)化為int類型。基本的函數(shù)簽名可以是 int ParseInt(object obj),但不僅限于此。

【再見了母校作文】相關(guān)文章:

再見了母校作文07-01

再見了,母校作文12-01

再見了母校作文09-16

母校再見了_作文04-28

再見了,母校-作文03-01

再見了,母校作文04-16

(精選)再見了,母校作文04-17

再見了,母校作文【經(jīng)典】04-16

再見了,母校!03-21

【精選】再見了,母校04-17

  • 相關(guān)推薦