星美联合股份有限公司7月招聘面试题157道2020724

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 


星美联合股份有限公司7月招聘面试题面试题面试官常问到的一些题目整理如下:问题 Q1:在Python中切片是什么?可用的回答 :从序列类型(如列表,元组,字符串等)中选择一系列项目的机制称为切片。问题 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:说说什么是爬虫协议?可用的回答 : Robots协议(也称为爬虫协议、爬虫规则、机器人协议等)也就是robots.txt, 网站通过robots协议告诉搜索引擎哪些页面可以抓取,哪些页面不能抓取。 Robots协议是网站国际互联网界通行的道德规范,其目的是保护网站数据和敏感信息、确保用户个人信息和隐私不被侵犯。因其不是命令,故需要搜索引擎自觉遵守。 问题 Q4:Python中的反向索引是什么?可用的回答 :Python序列可以是正数和负数的索引。对于正索引,0是第一个索引,1是第二个索引,依此类推。对于负索引,( - 1)是最后一个索引,( - 2)是倒数第二个索引,依此类推。问题 Q5:如何在Python中复制对象?可用的回答 :要在Python中复制对象,可以尝试copy.copy() 或 copy.deepcopy() 来处理一般情况。copy.copy()浅拷贝,复制引用;copy.deepcopy()深拷贝,完全独立的对象问题 Q6:django对数据查询结果排序怎么做,降序怎么做,查询大于某个字段怎么做?可用的回答 : 排序使用order_by() 降序需要在排序字段名前加- 查询字段大于某个值:使用filter(字段名_gt=值) 问题 Q7:如何在Python中实现多线程?可用的回答 :Python有一个多线程库,但是用多线程来加速代码的效果并不是那么的好,Python有一个名为Global Interpreter Lock(GIL)的结构。GIL确保每次只能执行一个“线程”。一个线程获取GIL执行相关操作,然后将GIL传递到下一个线程。虽然看起来程序被多线程并行执行,但它们实际上只是轮流使用相同的CPU核心。有这些GIL传递都增加了执行的开销。这意味着多线程并不能让程序运行的更快问题 Q8:list和tuple有什么区别?可用的回答 :列表和元组之间的区别在于列表是可变的而元组不是。元组可以被散列,例如作为词典的关键。问题 Q9: Django重定向你是如何实现的?用的什么状态码?可用的回答 : 使用HttpResponseRedirect redirect和reverse 状态码:302,301 问题 Q10:常见的HTTP方法有哪些?可用的回答 : GET:请求指定的页面信息,返回实体主体; HEAD:类似于get请求,只不过返回的响应中没有具体的内容,用于捕获报头; POST:向指定资源提交数据进行处理请求(比如表单提交或者上传文件),。数据被包含在请求体中。 PUT:从客户端向服务端传送数据取代指定的文档的内容; DELETE:请求删除指定的页面; CONNNECT:HTTP1.1协议中预留给能够将连接方式改为管道方式的代理服务器; OPTIONS:允许客户端查看服务器的性能; TRACE:回显服务器的请求,主要用于测试或者诊断。 算法题面试官常问到的一些算法题目整理如下(大概率会机考):算题题 A1:最小路径和题目描述如下:Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or right at any point in time.Example:Input: 1,3,1, 1,5,1, 4,2,1Output: 7Explanation: Because the path 13111 minimizes the sum给一个二维数组,里面全是非负整数,找到一条左上到右下花费最小的路线。思路:当前点只要加 up 和 left 中较小的一个即可。效率 O(n)为了判断边界直接顺着思路写了。优化的话可以先把最上面的一排按其左的数相加,最左边的一列按其上面的数相加。然后从 1,1 开始,这样不需要判断边界,写法上可以少点判断效率能提高10+ms。测试地址:https:/ Solution(object): def get_up_left(self, x, y): if y-1 0: up = False else: up = (x, y-1) if x-1 0: left = False else: left = (x-1,y) # up and left return (up, left) def minPathSum(self, grid): :type grid: ListListint :rtype: int for i in range(len(grid): for j in range(len(grid0): xy = self.get_up_left(j, i

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


哪个选项是下面代码的执行结果()name="Python语言程序设计课程"print(name[0],name[2:-2],name[-1])

A、Pthon语言程序设计课课

B、Pthon语言程序设计课

C、Pthon语言程序设计程

D、Pthon语言程序设计课程


答案: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

更多 “星美联合股份有限公司7月招聘面试题157道2020724” 相关考题
考题 根据以下材料,回答题 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).Which of the following statements isTRUE at, cording to the passage 查看材料A.Less than half of the genuine Britishsurnames come from place names. B.The name "Simpson" could be ssurname deriving from a place name if the family have had its home in theancient village of that name. C."Thatcher" is an occupationalsurname which testifies to the specialization in medieval arts. D.The meanings of all descriptive names areslightly different from the modem ones.答案:B解析:细节题。根据第三段第一句中的“over fifty per cent of genuineBritish surnames derive from place names of different kinds”可知A项表述错误。根据第三段的第二句话“Even such a name asSimpson may belong to this last group, and not to the first, had the familyonce had its home in the ancient village of that name.”可知B项说法正确。根据第四段的前两句话可知,C项后半句表述有误。根据第五段第二、三句可知,有一些简单的描述性名字可以按字面意思理解,和现代的意思是一样的,D项说法过于绝对。故本题选B。

考题 多选题你使用VisualStudio.NET为在线游戏创建一个基于Windows的应用程序。每个用户都将可以在他们各自的电脑上运行这个客户端应用程序,在这个游戏当中,每位用户都可以控制两组军队,Group1andGroup2。你要创建一个标题为团队的高级菜单,在这个菜单下面创建两个子菜单:一个是叫作group1的子菜单,它的标题是group1;另一个是叫作group2的子菜单,它的标题是group2。当用户查找这个组菜单的时候,那两个子菜单就会被显示。用户一次只能查找一个军队,你必须确保一个团队能够被找到通过点击适当的子菜单或者是按ALT键加1或者2。同时你也要确保当前团队的查找能通过相应的子菜单项目的一个点被简要地说明。你不想改变任何你菜单项目的标题文本(内容),你需要选择下列的哪四种的做法?()A设置group1Submenu.Text属性为:Group&1设置group2Submenu.Text属性为:Group&2B设置Group1.ShortCut属性为:ALT1设置Group2.ShortCut属性为:ALT2C在group1Submenu.Click even事件中,在代码设置器中设置group1Submenu.Default Item属性为true在group2Submenu.Click even事件中,在代码设置器中设置group2Submenu.Default Item属性为trueD在group1Submenu.Click even事件中,在代码设置器中设置group2Submenu.Default Item属性为false在group2Submenu.Click even事件中,在代码设置器中设置group1Submenu.Default Item属性为falseE在group1Submenu.Click even事件中,在代码设置器中设置group1Submenu.Checked属性为true在group2Submenu.Click even事件中,在代码设置器中设置group2Submenu.Checked属性为trueF在group1Submenu.Click even事件中,在代码设置器中设置group2Submenu.Checked属性为false在group2Submenu.Click even事件中,在代码设置器中设置group1Submenu.Checked属性为falseG设置group1Submenu.RadioCheck属性为true设置group2Submenu.RadioCheck属性为trueH设置group1Submenu.RadioCheck属性为false设置group2Submenu.RadioCheck属性为false正确答案:B,E,F,G解析:暂无解析

考题 阅读以下说明和Java代码,将应填入(n)处的字句写在对应栏内。[说明]在一些大型系统中,大多数的功能在初始化时要花费很多时间,如果在启动的时候,所有功能(连不用的功能)都要全面初始化的话,会连带影响到应用软件要花很多时间才能启动。因此常将程序设计成到了实际要使用某种功能的阶段才初始化该功能。以下示例展示了Proxy(代理)模式,PrinterProxy类执行一些比较“轻”的方法——设置名称和取得名称,需要真正执行“重”的方法——真正打印——时才初始Print类。图6-1显示了各个类间的关系。[图6-1][Java代码]//Printable.JavapubliC (1) Printable{public abstract void setPrinterName(String name);public abstract String getprinterName();public abstract void print(String string);}//Printer.Javapublic class Printer implements Printable{private String name;public Printer(){System.out.println("正在产生Printer的对象实例");}public Printer(String name){this.name=name;heavyJob("正在产生Printer的对象实例("+name+")");public void setPrinterName(String name){this.name=name;public String getPrinterName(){return name;public void print(String string){System.out.println("===" +name+" ====");System.out.println(string);}}//PrinterProxy.Javapublic class PrinterProxy (2) Printable{private String name;private Printer real;public PrinterProxy(){}public PrinterProxy(String name){this.name=name;}public gynchronized void setPrinterName(String name){if( (3) ){real.setPrinterName(name);}this.name=name;}public String getprinterName(){return name;}public void print(String string){(4);real.print(string);}private synchronized void realize(){//产生真正的Printer对象if(real==null){real=(5);}}}(1)正确答案:interfaceinterface

考题 单选题关于查询中列的别名, 以下()语句是不正确的A Select name as’姓名’from tableB Select name as姓名from table where id=1C Sleect name=姓名from table姓名=names(正确答案)D Select names姓名from table正确答案: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。

考题 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

考题 以下哪种初始化数组的方式是错误的?()  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、以上皆正确正确答案:B

考题 有如下程序:#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.0B.1C.2D.3正确答案:D解析:定义了3个Name的对象,前2个定义带参数,执行第二个构造函数输出“?”,第三个定义没带参数,执行第一个构造函数也输出“?”;一共输出3个“?”,故选D)。

考题 下面哪一个是错误的?A.使用len(列表名)测量元素的个数names_list=["zhangsan","lisi","wangwu"]print(len(names_list))B.使用列表名[下标]获取列表的某个元素,例如:names_list=["zhangsan","lisi","wangwu"]print(names_list[2])C.向列表中添加新元素有三个方法:append、extend、insert,例如:names_list=["zhangsan","lisi","wangwu"]names_list.append("zhaoliu")names_list.extend(["zhaoliu","liqi"])names_list.insert(1,"zhaoliu")print(names_list)D.已有列表nums=[11,22,33,44,55],使用while循环遍历列表nums=[11,22,33,44,55]i=0 whileiprint(nums[i])i+=1正确答案: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。