sokaoti.com
北京中长石基信息技术股份有限公司10月招聘面试题171道2020108

D

Anne and Joseph are talking about an interesting question. Why do some people change their names? There can be many reasons. Hanna changed her name to Anne because she thought it would be easier for people to remember. On the other hand, Joseph is thinking about changing his name to an unusual name because he wants to be different.

People have a lot of reasons for changing their names. Film stars, singers, sportsmen and some other famous people often change their names because they want names that are not ordinary, or that have special sound. They chose the “new name” for themselves instead of the name their parents gave them when they were born.

Some people have another reason for changing their names. They have moved to a new country and want to use a name that is usual there. For example, Li Kaiming changed his name to Ken Lee when he moved to the United States. He uses the name Ken at his job and at school. But with his family and Chinese friends, he uses Li Kaiming. For some people, using different names makes life easier in their new country.

In many countries, a woman changes her family name to her husband’s after she gets married. But today, many women are keeping their own family name and not using their husband’s. Sometimes , women use their own name in some situations (情况)and their husband’s in other situations . And some use both their own name and their husband’s.

根据短文内容,完成下面表格。

different people

reason to change the name

Hanna

It is ____61____ for people to remember.

Joseph

He wants to have a name that’s ____62_____.

famous people

Their name may sound _____63_____.

Li Kaiming

Using different names can make ____64_____ easier.

a woman

After she gets _____65_____, she may change her name.

61._________________________________________________________________________


正确答案:
easier


Both Chinese names and English names give clues about place identity, family relationship, ethnic group, parents' expectation and values or even personal().

A、mistakes

B、characteristics

C、replacement

D、analysis


参考答案:B


( 29 )有如下程序:

#include<iostream>

using namespace std;

class Name{

char name[20];

public:

Name(){

strcpy(name,""); cout<<'?';

}

Name(char *fname)){

strcpy(name,fname); cout<'?';

}

};

int main(){

Name names[3]={Name(" 张三 "),Name(" 李四 ")};

Return 0;

}

运行此程序输出符号?的个数是

A ) 0

B ) 1

C ) 2

D ) 3


正确答案:D


When you meet a group of people, it is better to remember __

A. all their names B. a couple of names first

C. just their last names D. as many names as possible


正确答案:B


关于group by 以下语句正确的是( )

A.SELECT store_name FROM Store_Information GROUP BY store_name

B. SELECT SUM(sales) FROM Store_Information GROUP BY sales

C.SELECT store_name, price SUM(sales) FROM Store_Information GROUP BY store_name,price

D.SELECT store_name, SUM(sales) FROM Store_Information GROUP BY store_name


正确答案:D,C,B 


北京中长石基信息技术股份有限公司10月招聘面试题面试题面试官常问到的一些题目整理如下:问题 Q1:如何删除python数组的值?可用的回答 :可以使用pop()或remove()方法删除数组元素。这两个函数之间的区别在于前者返回已删除的值,而后者则不返回。问题 Q2:列表的扁平化和降维?比如有一个二维列表,降成普通的一维的。如:groups = huahua, xiaojian, musen, yuze, keyou得到结果 huahua, xiaojian, musen, yuze, keyou可用的回答 : 方法一:最简单的方式可以通过 for 循环的方式一一提取: names = for group in groups: for name in group: names.append(name) print(names) 方法二:但是在面试的时候可能会加一些限制,比如让你用一行代码实现 这个时候就需要对 python 基础有进一步的理解了,比如说使用 sum 函数: names = sum(groups, ) 方法三:通过列表推导式也可以方便的解决: a = e for group in groups for e in group 问题 Q3:如果对方网站反爬取,封IP了怎么办?可用的回答 : 放慢抓取熟速度,减小对目标网站造成的压力,但是这样会减少单位时间内的数据抓取量 使用代理IP(免费的可能不稳定,收费的可能不划算) 问题 Q4:请用代码简答实现stack?可用的回答 : stack的实现代码(使用python内置的list),实现起来是非常的简单,就是list的一些常用操作 class Stack(object): def _init_(self): self.stack = def push(self, value): # 进栈 self.stack.append(value) def pop(self): #出栈 if self.stack: self.stack.pop() else: raise LookupError(stack is empty!) def is_empty(self): # 如果栈为空 return bool(self.stack) def top(self): #取出目前stack中最新的元素 return self.stack-1 问题 Q5:list和tuple有什么区别?可用的回答 :列表和元组之间的区别在于列表是可变的而元组不是。元组可以被散列,例如作为词典的关键。问题 Q6:为什么使用* args,* kwargs?可用的回答 :当我们不确定将多少个参数传递给函数,或者我们想要将存储的列表或参数元组传递给函数时,我们使用* args。*当我们不知道将多少关键字参数传递给函数时使用kwargs,或者它可以用于将字典的值作为关键字参数传递。标识符args和kwargs是一个约定,你也可以使用其他名称问题 Q7:Python中的命名空间是什么?可用的回答 : 在Python中,引入的每个名称都有一个存在的地方,可以被连接起来。这称为命名空间。 它就像一个框,其中变量名称映射到放置的对象。每当搜索到变量时,将搜索此框以获取相应的对象。 问题 Q8:ngnix的正向代理与反向代理?可用的回答 : 正向代理 是一个位于客户端和原始服务器(origin server)之间的服务器,为了从原始服务器取得内容, 客户端向代理发送一个请求并指定目标(原始服务器),然后代理向原始服务器转交请求并将获得的内容返回给客户端。 客户端必须要进行一些特别的设置才能使用正向代理。 反向代理正好相反,对于客户端而言它就像是原始服务器,并且客户端不需要进行任何特别的设置。 客户端向反向代理的命名空间中的内容发送普通请求,接着反向代理将判断向何处(原始服务器)转交请求, 并将获得的内容返回给客户端,就像这些内容原本就是它自己的一样。 问题 Q9:在Python中切片是什么?可用的回答 :从序列类型(如列表,元组,字符串等)中选择一系列项目的机制称为切片。问题 Q10:数据库的优化?可用的回答 : 1. 优化索引、SQL 语句、分析慢查询; 2. 设计表的时候严格根据数据库的设计范式来设计数据库; 3. 使用缓存,把经常访问到的数据而且不需要经常变化的数据放在缓存中,能节约磁盘IO; 4. 优化硬件;采用SSD,使用磁盘队列技术(RAID0,RAID1,RDID5)等; 5. 采用MySQL 内部自带的表分区技术,把数据分层不同的文件,能够提高磁盘的读取效率; 6. 垂直分表;把一些不经常读的数据放在一张表里,节约磁盘I/O; 7. 主从分离读写;采用主从复制把数据库的读操作和写入操作分离开来; 8. 分库分表分机器(数据量特别大),主要的的原理就是数据路由; 9. 选择合适的表引擎,参数上的优化; 10. 进行架构级别的缓存,静态化和分布式; 11. 不采用全文索引; 12. 采用更快的存储方式,例如 NoSQL存储经常访问的数据 算法题面试官常问到的一些算法题目整理如下(大概率会机考):算题题 A1:岛屿的最大区域题目描述如下:与今日头条秋招第一题最相似的一道题,只是方向少了四个。Given a non-empty 2D array grid of 0s and 1s, an island is a group of 1s (representing land) connected 4-directionally (horizontal or vertical.) You may assum

What are the components of Chinese names?

A、Given name and middle names

B、Family name

C、Family name and given name

D、Last name and surname


参考答案:C


It's very interesting to study names of different countries.Chinese names are different (1) foreign names.Once an English lady came to visit me.When I was introduced to her she said, “ Glad to meet you, Miss Ping.” Then she gave me her name card with three words on it:"Betty J.Black.So I said, “Thank you, Miss Betty.” We looked at each other and laughed heartily.Later I found that the English people (2)their family names last and the given names first, while their middle names are not used very much.I explained to her that the Chinese family name comes first, the given name last, so she(3) never call me Miss Ping.She asked if we Chinese had a middle name.I told her we didn't.but people may often find three words

on a Chinese name card.In this case the family name still come first, and the other words after it(4)a two-word given name.it is quite usual in China.My sister is Li Xiaofang.She has two words in her given name instead (5) just one like mine.(完型填空)

A.Put

B.From

C.Should

D.of

E.are


答案:B A C E D 

解析:本段意思:研究不同国家的名称是非常有趣的。中国人的名字不同于外国人的名字。有一次,一位英国女士来看我。当我被介绍给她时,她说:“很高兴认识你,萍小姐。然后她给了我她的名片,上面有三个字:“贝蒂·j·布莱克。”所以我说:“谢谢你,贝蒂小姐。我们面面相觑,开怀大笑。后来我发现英国人把姓放在最后,名放在前面,中间的名字用得不多。我向她解释中国姓在前,名在后,所以她永远不要叫我萍小姐。她问我们中国人有没有中间名。我告诉她我们没有。但是人们经常会在一张中文名片上发现三个字。在这种情况下,姓仍然在前面,在它后面的其他单词是两个单词组成的名字。这在中国很常见。我妹妹是李小芳。她有两个字在她的名字,而不像我一样只有一个。



Your network consists of a single Active Directory domain.The domain contains more than 300 group objects. The group objects are divided between several regional organizational units (OUs).You need to create a list of all groups that have names that begin with the word Sales.Which command should you use? ()

A. Dsget group

B. Dsquery group

C. Netdom query

D. Net group


参考答案:B


阅读下列函数说明和C++代码,将应填入(n)处的字句写在对应栏内。

[说明]

在一些大型系统中,大多数的功能在初始化时要花费很多时间,如果在启动的时候,所有功能(包括不用的功能)都要全面初始化的话,会导致应用软件要花很多时间才能启动。因此常将程序设计成到了实际要使用某种功能的阶段才初始化该功能。

以下示例展示了Proxy(代理)模式,PrinterProxy类执行一些比较“轻”的方法,需要真正执行“重”的方法时才初始化Print类。图5-1显示了各个类间的关系。

[图5-1]

[C++代码]

class Printable{

public:

virtual void setPrinterName(string name)=0;

virtual string getprinterName()=0;

virtual void print(string name)=0;

};

class Printer:public Printable{

private:

string name;

public:

Printer(string name){

cout<<"正在产生Printer的对象实例"<<endl;

this->name=name;

}

void setPrinterName(string name){

this->name=name;

}

string getPrinterName(){

return name;

}

void print(string msg){

cout<<"======="<<name<<"==========="<<endl;

cout<<msg<<endl;

}

};

class printerproxy :public (1) {

private:

String name;

Printer *real;

public:

PrinterProxy(string name){

(2)=NULL;

this->name=name;

}

void setPrinterName(string name){

if((3))real->setPrinterName(name);

this->name=name;

}

string getPrinterName(){

return name;

}

void print(string msg){

(4);

real->print(msg);

}

void realize(){

if(real==NULL)real=(5);

}

};

(1)


正确答案:Printable
Printable


有如下程序:

#include<iostream>

using flamespace std;

class Name{

char name[20];

public:

Name(){

strcpy(name,“”); cout<<‘?’;

}

Name(char*fname){

strcpy(name,fname); cout<<‘?’;

}

};

int main(){

Name names[3]={Name(”张三”),Name(”李四”)};

return 0;

}

运行此程序输出符号?的个数是

A.0

B.1

C.2

D.3


正确答案:D
解析:定义了3个Name的对象,前2个定义带参数,执行第二个构造函数输出“?”,第三个定义没带参数,执行第一个构造函数也输出“?”;一共输出3个“?”,故选D)。

更多 “北京中长石基信息技术股份有限公司10月招聘面试题171道2020108” 相关考题
考题 单选题以下哪种初始化数组的方式是错误的?()A String[] name =,“zhang”,”wang”,”li”-B String*3+ names=,“zhang”,”wang”,”li”-C String names[] =new String[3]  names*0+=”wang”D names*1+=”wang”E names*2+=”li”F 以上皆正确正确答案:A解析:暂无解析

考题 小明想从字符串s=’name:(xiaoming)age:(32)’中提取里面的年龄32。以下哪一个做法可以拿到结果:()A、re.search(r’(.*)’,s).group(1)B、re.search(r’/((.*?)/)’,s).group(1)C、re.search(r’/((.*?)/)’,s).group(2)D、re.findall(r’/((.*?)/)’,s)[1]正确答案:D

考题 Your network consists of a single Active Directory domain. The domain contains more than 300 group objects. The group objects are divided between several regional organizational units (OUs). You need to create a list of all groups that have names that begin with the word Sales. Which command should you use? ()A、Dsget groupB、Dsquery groupC、Netdom queryD、Net group正确答案:B

考题 You need to display the last names of those employees who have the letter "A" as the second character in their names. Which SQL statement displays the required results? ()A、SELECT last_name FROM EMP WHERE last_ name LIKE '_A%';B、SELECT last_name FROM EMP WHERE last name ='*A%'C、SELECT last_name FROM EMP WHERE last name ='_A%';D、SELECT last_name FROM EMP WHERE last name LIKE '*A%'正确答案:A

考题 Your network consists of a single Active Directory domain. The domain contains more than 300 group objects. The group objects are divided between several regional organizational units (OUs). You need to create a list of all groups that have names that begin with the word Sales. Which command should you use? ()A、Dsget groupB、Dsquery groupC、Netdom queryD、Net group正确答案:B

考题 根据以下材料,回答题 The men and women of Anglo-Saxon Englandnormally bore one name only. Distinguishing epithets were rarely added.These might be patronymic, descriptive or occupational. They were, however,hardly surnames. Heritable names gradually became general in the threecenturies following the Norman Conquest in 1066. It was not until the 13th and14th centuries that surnames became fixed, although for many years after that,the degree of stability in family names varied considerably in different partsof the country. British surnames fall mainly into four broadcategories: patronymic, occupational, descriptive and local. A few names, it istrue, will remain puzzling: foreign names, perhaps, crudely translated, adaptedor abbreviated; or artificial names. In fact, over fifty per cent of genuineBritish surnames derive from place names of different kinds, and so they belongto the last of our four main categories. Even such a name as Simpson may belongto this last group, and not to the first, had the family once had its home inthe ancient village of that name. Otherwise, Simpson means "the son ofSimon", as might be expected. Hundreds of occupational surnames are atonce familiar to us, or at least recognisable after a little thought: Archer,Carter, Fisher, Mason, Thatcher, Taylor, to name but a few. Hundreds of othersare more obscure in their meanings and testify to the amazing specialization inmedieval arts, crafts and functions. Such are "Day" (old English forbreadmaker) and "Walker" (a fuller whose job was to clean and thickennewly made cloth). All these vocational names carry with them acertain gravity and dignity, which descriptive names often lack. Some, it istrue, like "Long", "Short" or "Little", aresimple. They may be taken quite literally. Others require more thinking; theirmeanings are slightly different from the modem ones. "Black" and"White" implied dark and fair respectively. "Sharp" meantgenuinely discerning, alert, acute rather than quick-witted or clever. Place-names have a lasting interest sincethere is hardly a town or village in all England that has not at some timegiven its name to a family. They may be picturesque, even poetical; or they maybe pedestrian, even trivial. Among the commoner names which survive withrelatively little change from old-English times are "Milton" (middleenclosure) and "Hilton" (enclosure on a hill).The underlined word"epithets" in Paragraph 1 most probably means ________.查看材料A.a name shared by all the members of afamily B.a word in front of a person's name toshow their rank or profession C.an offensive word or phrase that is usedabout a person or group of people D.an adjective or phrase that is used to describesomebody/something's character or most important quality答案:D解析:词义题。根据第一段的前四句话“The men and women ofAnglo-Saxon England normally bore one name only. Distinguishing _epithets wererarely added. These might be patronymic, descriptive or occupational. Theywere, however, hardly surnames.",盎格鲁一撒克逊时期的英国人.无论男女通常都只有一个名字,他们的名字后很少加有区别的epithets。这些epithets可能是源于父名的、描述性的或与职业有关的词语,但在那时还不是姓。A项“家族所有成员共用的一个名字”与distinguishing矛盾,排除;B项错在in front of;C项错在all offensiveword or phrase,原文没提;D项“用来描述某人/某事的特征或重要品质的形容词或短语”符合文意。故选D。

考题 Which of the following statements are true when creating NETBIOS names? ()A、 NETBIOS names can only use alphanumeric characters.B、 You can use a ’.’ in a NETBIOS name.C、 You can use an ’_’ (underscore) in a NETBIOS name.D、 NETBIOS names must be UPPERCASEE、 NETBIOS names can be a maximum of 32 characters正确答案:B,C

考题 The men and women of Anglo-Saxon England normally bore one name only. Distinguishing epithets were rarely added. These might be patronymic, descriptive or occupational. They were, however, hardly surnames. Heritable names gradually became general in the three centuries following the Norman Conquest in 1066. It was not until the 13th and 14th centuries that surnames became fixed, although for many years after that, the degree of stability in family names varied considerably in different parts of the country. British surnames fall mainly into four broad categories: patronymic, occupational, descriptive and local. A few names, it is true, will remain puzzling: foreign names, perhaps, crudely translated, adapted or abbreviated; or artificial names. In fact, over fifty per cent of genuine British surnames derive from place names of different kinds, and so they belong to the last of our four main categories. Even such a name as Simpson may belong to this last group, and not to the first, had the family once had its home in the ancient village of that name. Otherwise, Simpson means "the son of Simon", as might be expected. Hundreds of occupational surnames are at once familiar to us, or at least recognisable after a little thought: Archer, Carter, Fisher, Mason, Thatcher, Taylor, to name but a few. Hundreds of others are more obscure in their meanings and testify to the amazing specialization in medieval arts, crafts and functions. Such are "Day" (old English for breadmaker) and "Walker" (a fuller whose job was to clean and thicken newly made cloth). All these vocational names carry with them a certain gravity and dignity, which descriptive names often lack. Some, it is true, like "Long", "Short" or "Little", are simple. They may be taken quite literally. Others require more thinking; their meanings are slightly different from the modern ones. "Black" and "White" implied dark and fair respectively. "Sharp" meant genuinely discerning, alert, acute rather than quick-witted or clever. Place-names have a lasting interest since there is hardly a town or village in all England that has not at some time given its name to a family. They may be picturesque, even poetical; or they may be pedestrian, even trivial. Among the commoner names which survive with relatively little change from old-English times are "Milton" (middle enclosure) and "Hilton" (enclosure on a hill). The underlined word "epithets" in Paragraph 1 most probably means ____________.A.a name shared by all the members of a family B.a word in front of a person' s name to show their rank or profession C.an offensive word or phrase that is used about a person or group of people D.an adjective or phrase that is used to describe somebody/something's character or most important quality 答案:D解析:词义题。根据第一段的前四句话“The men and women of Anglo-Saxon England normally bore one name only.Distinguishing epithets were rarely added.These might be patronymic,descriptive or occupational.They were,however,hardly surnames.”,盎格鲁一撒克逊时期的英国人,无论男女通常都只有一个名字,他们的名字后很少加有区别的epithets。这些epithets可能是源于父名的、描述性的或与职业有关的词语,但在那时还不是姓。A项“家族所有成员共用的一个名字”与distinguishing矛盾,排除;B项错在in front of;C项错在an offensive word or phrase,原文没提:D项“用来描述某人/某事的特征或重要品质的形容词或短语”符合文意。故选D。

考题 根据以下材料,回答题 The men and women of Anglo-Saxon Englandnormally bore one name only. Distinguishing epithets were rarely added.These might be patronymic, descriptive or occupational. They were, however,hardly surnames. Heritable names gradually became general in the threecenturies following the Norman Conquest in 1066. It was not until the 13th and14th centuries that surnames became fixed, although for many years after that,the degree of stability in family names varied considerably in different partsof the country. British surnames fall mainly into four broadcategories: patronymic, occupational, descriptive and local. A few names, it istrue, will remain puzzling: foreign names, perhaps, crudely translated, adaptedor abbreviated; or artificial names. In fact, over fifty per cent of genuineBritish surnames derive from place names of different kinds, and so they belongto the last of our four main categories. Even such a name as Simpson may belongto this last group, and not to the first, had the family once had its home inthe ancient village of that name. Otherwise, Simpson means "the son ofSimon", as might be expected. Hundreds of occupational surnames are atonce familiar to us, or at least recognisable after a little thought: Archer,Carter, Fisher, Mason, Thatcher, Taylor, to name but a few. Hundreds of othersare more obscure in their meanings and testify to the amazing specialization inmedieval arts, crafts and functions. Such are "Day" (old English forbreadmaker) and "Walker" (a fuller whose job was to clean and thickennewly made cloth). All these vocational names carry with them acertain gravity and dignity, which descriptive names often lack. Some, it istrue, like "Long", "Short" or "Little", aresimple. They may be taken quite literally. Others require more thinking; theirmeanings are slightly different from the modem ones. "Black" and"White" implied dark and fair respectively. "Sharp" meantgenuinely discerning, alert, acute rather than quick-witted or clever. Place-names have a lasting interest sincethere is hardly a town or village in all England that has not at some timegiven its name to a family. They may be picturesque, even poetical; or they maybe pedestrian, even trivial. Among the commoner names which survive withrelatively little change from old-English times are "Milton" (middleenclosure) and "Hilton" (enclosure on a hill).This passage is mainly about ________.查看材料A.the importance of surnames B.the origin and culture of Britishsurnames C.the dignity of having a proper surname D.the meanings of British surnames答案:B解析:主旨题。本文第一段讲英国姓氏的发展,第二、三、四段讲英国姓氏的分类及起源,第五、六段讲英国姓氏的含义。A、C项没提英国,首先排除。D项“英国姓氏的含义”,只是文章的一个方面,也排除。B项概括较为全面.故选B。

考题 多选题Which of the following statements are true when creating NETBIOS names? ()ANETBIOS names can only use alphanumeric characters.BYou can use a ’.’ in a NETBIOS name.CYou can use an ’_’ (underscore) in a NETBIOS name.DNETBIOS names must be UPPERCASEENETBIOS names can be a maximum of 32 characters正确答案:D,A解析:暂无解析