高考升学网_国产刚发育娇小性色xxxxx_一个为高考升学提供有价值信息的网站

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

微軟暑期實習筆試題和面試題答案及答案(二)

更新:2023-09-20 13:19:08 高考升學網

  (A) y ^ ((x ^ y) & ~(x < y))

  (B) y ^(x ^ y)

  (C) x ^ (x ^ y)

  (D) (x ^ y) ^ (y ^ x)

  (E) None of the above

  11. The Orchid Pavilion (蘭亭集序) is well known as the top of "行書" in history of Chinese literature. The most fascinating sentence "Well I know it is a lie to say that life and death is the same thing, and that longevity and early death make no difference! Alas!" ("周知一死生為虛誕, 齊彭殤為妄作。") By counting the characters of the whole content (in Chinese version), the result should be 391 (including punctuation). For these characters written to a text file, please select the possible file size without any data corrupt.

  (A) 782 bytes in UTF-16 encoding

  (B) 784 bytes in UTF-16 encoding

  (C) 1173 bytes in UTF-8 encoding

  (D) 1176 bytes in UTF-8 encoding

  (E) None of the above

  12. Fill the blanks inside class definition

  class Test

  {

  public:

  ____ int a;

  ____ int b;

  public:

  Test::Test(int _a, int _b) : a(_a) {b = _b;}

  };

  int Test::b;

  int _tmain(int argc, __TCHAR argv[])

  {

  Test t1(0, 0), t2(1, 1);

  t1.b = 10;

  t2.b = 20;

  printf("%u %u %u %u", t1.a, t1.b, t2.a, t2.b);

  }

  Running result: 0 20 1 20

  (A) static/const

  (B) const/static

  (C) --/static

  (D) const static/static

  (E) None of the above

  13. A 3-order B-tree has 2047 key words, what is the maximum height of the tree?

  (A) 11 (B) 12 (C) 13 (D) 14

  14. In C++, which of the following keyword(s) can be used on both a variable and a function?

  (A) static (B) virtual (C) extern (D) inline (E) const

  15. What is the result of the following program?

  char f(char str, char ch)

  {

  char it1 = str;

  char it2 = str;

  while (it2 != '\0') {

  while (it2 == ch) {

  it2++;

  }

  it1++ = it2++;

  }

  return str;

  }

  void main(int argc, char argv[])

  {

  char a = new char[10];

  strcpy(a, "abcdcccd");

  cout << f(a, 'c');

  }

  (A) abdcccd (B) abdd (C) abcc (D) abddcccd (E) Access Violation

  16. Consider the following definition of a recursive function, power, that will perform exponentiation.

  int power(int b, int e)

  {

  if (e == 0) return 1;

  if (e %2 == 0) return power (b b, e / 2);

  return b power(b b, e / 2);

  }

  Asymptotically (漸進地) in terms of the exponent e, the number of calls to power that occur as a result of the call power(b, e) is

  (A) logarithmic (B) linear (C) quadratic (D) exponential

  17. Assume a full deck of cards has 52 cards, 2 black suits (spade and club) and 2 red suits (diamond and heart).

  If you are given a full deck, and a half deck (with 1 red suit and 1 black suit), what's the possibility for each one getting 2 red cards if taking 2 cards?

  (A) 1/2, 1/2 (B) 25/102, 12/50 (C) 50/51, 24/25 (D) 25/51, 12/25 (E) 25/51, 1/2

  18. There is a stack and a sequence of n numbers (i.e., 1, 2, 3, ..., n). Push the n numbers into the stack following the sequence and pop out randomly. How many different sequences of the number we may get? Suppose n is 2, the output sequence may be 1, 2 or 2, 1, so we get 2 different sequences.

  (A) C_2n^n

  (B) C_2n^n - C_2n^(n + 1)

  (C) ((2n)!) / (n + 1)n!n!

  (D) n!

  (E) None of the above

  19. Longest Increasing Subsequence (LIS) means a sequence containing some elements in another sequence by the same order, and the values of elements keeps increasing.

  For example, LIS of {2, 1, 4, 2, 3, 7, 4, 6} is {1, 2, 3, 4, 6}, and its LIS length is 5.

  Considering an array with N elements, what is the lowest time and space complexity to get the length of LIS?

  (A) Time: N^2, Space: N^2

  (B) Time: N^2, Space: N

  (C) Time: NlogN, Space: N

  (D) Time: N, Space: N

  (E) Time: N, Space: C

  20. What is the output of the following piece of C++ code?

  #include

  using namespace std;

  struct Item

  {

  char c;

  Item next;

  };

  Item Routine1(Item x)

  {

  Item prev = NULL, curr = x;

  while (curr) {

  Item next = curr->next;

  curr->next = prev;

  prev = curr;

  curr = next;

  }

  return prev;

  }

  void Routine2(Item x)

  {

  Item curr = x;

  while (curr) {

  cout << curr->c << " ";

  curr = curr->next;

  }

  }

  void _tmain(void)

  {

  Item x,

  d = {'d', NULL},

  c = {'c', &d},

  b = {'b', &c},

  a = {'a', &b};

  x = Routine1(&a);

  Routine2(x);

  }

  (A) cbad (B) badc (C) dbca (D) abcd (E) dcba

最新圖文

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
主站蜘蛛池模板: 济宁市天众机械有限公司_机械加工,电力产品,冶金产品,造纸机械 | 真石漆设备-干粉砂浆生产线-保温砂浆机械-郑州屹成机械设备 | 蒸汽发生器-电加热蒸汽发生器、燃油蒸汽发生器、燃气蒸汽发生器设备厂家-诺贝思蒸汽发生器 | 名片印刷,名片制作,名片设计,印刷彩色名片,数码快印名片-北京瑞思凯信息咨询公司 | 世界地图,卫星地图,99地图网,微笑如歌 - www.99ditu.com | 陶瓷透水砖-透水砖厂家-淄博天之润生态科技有限公司 | 网带式等温正火生产线_燃气式铝合金加热炉_燃气式烘干窑炉-湖州中科炉业科技有限公司 | 亚洲一区日韩一区欧美一区a,中文字幕乱妇无码AV在线,欧美日韩免费在线观看,国产精品一区二区三区免费,日韩精品免费一线在线观看,日韩一本在线,国产呦精品一区二区三区下载,国产日韩精品一区二区在线观看,欧美日韩高清一区二区三区,日韩在线免费观看视频,欧美日韩一区在线观看 | 湖南众一离心机股份有限公司_活塞推料离心机_沉降离心机_卧式刮刀离心机 | 绍兴凯渥人力资源有限公司-劳务派遣,劳务分包,代办公司注册 | 延吉新闻网 - 未来之选·就是延吉 [YanJinews.com] | 珍珠岩_膨胀珍珠岩_玻化微珠-信阳市高新区中凯非金属材料厂 | 兔展-H5页面制作、微信营销活动一站式企业营销数字化增长平台 | 两面针(江苏)实业有限公司-原两面针(扬州)酒店用品有限公司 | 山西洗煤设备_山西洗煤机_山西离心机-山西东鑫昶机械科技股份有限公司 | 欧路哲门窗|佛山欧路哲门窗有限公司|专业门窗定制品牌 | 兰州沙盘模型公司_兰州模型公司_兰州沙盘模型厂家_地形沙盘制作_兰州沙盘模型制作公司 | 模型公司|沙盘公司|优选杭州景文模型设计有限公司 | 徐州电动垃圾车|三轮快速保洁车|电动高压冲洗车|江苏大卫王环保科技有限公司 | 气动量仪厂家-郑州华峰仪器有限公司| 昆明子弟食品有限公司| 西安logo设计公司/西安包装设计公司/西安画册设计公司/西安广告公司/西安品牌设计公司/泰勒广告 雾度计-雾度仪-透光率测试仪-3nh品牌雾度仪生产厂家 | 欧艺宝盾科技(北京)有限责任公司_北京旋转门厂家_转门维修_高端商务门控定制 - | 助乐邦轮椅,北京轮椅置换,电动轮椅置换,轮椅回收北京,轮椅送货上门服务 | 济南手板_山东快速成型-山东嘉瑞杰机械科技有限公司 | 山东临沂春鑫新能源科技有限公司|官网|生物质颗粒锅炉|燃气锅炉|水源热泵 | 售后服务认证-五星级物业售后服务体系认证证书-ISO27001信息安全管理体系认证证书查询认E云-湖北省贯标企业管理咨询有限公司 | 直膨式空调机组_风冷恒温恒湿_转轮式热回收_屋顶式空调机组_德州瑞尼森环保科技有限公司 | 宁波搬家_宁波搬家公司_宁波搬厂_专业搬家搬厂-「宁波喜洋洋搬家公司」 | 恒温干燥箱厂家-烘箱厂家-马弗炉厂家-生化培养箱-上海有丰科学仪器有限公司 | 太原重卡叔叔运输有限公司-山西太原大件运输、太原物流公司、太原货运物流、太原大件运输、太原货运信息、长治物流公司、长治大件运输、晋城物流公司、晋城大件运输、忻州大件运输、朔州大件运输、阳泉大件运输、大同大件运输、吕梁大件运输、临汾大件运输、运城大件运城 | 上海鑫迪机械有限公司 上海科蜀智能机械有限公司 | 苏州不锈钢_江苏不锈钢_江苏不锈钢板_苏州模具钢_苏州合金钢_苏州特种合金_苏州不锈钢板_304不锈钢棒_苏州塞硒五金制品有限公司 苏州ERP定制|苏州CRM|苏州OA|苏州BPM|进销存管理系统-苏州中尚信息科技有限公司 | 木雕红木家具网_红木家具厂_专业的红木家具批发网 | 欧路哲门窗|佛山欧路哲门窗有限公司|专业门窗定制品牌 | 同步分流马达_液压泵维修_派克多路阀-济南富诚液压设备有限公司 通用变频器|国产变频器|深圳变频器厂家-深圳市英捷思技术有限公司 | 自动_链条式_电动推杆_电动开窗器厂家_山东鑫宏玺智能科技有限公司 | 山东汇河环保科技集团有限公司,水囊水袋,水罐,油囊,预压水袋,吊重水袋_山东汇河环保科技集团有限公司,水囊水袋,水罐,油囊,预压水袋,吊重水袋 | 英格索兰空压机_英格索兰空压机配件_英格索兰空压机维修—商天机械 | 淄博润裕机械设备有限公司-搅拌器,搅拌桨叶,反应釜,机械密封,化工搅拌 | 转轮除湿机,转轮除湿机,恒温恒湿机厂家_合肥铂克环境设备有限公司 |