整理了部分概念题,感觉在看的时候,对自己的python基础重新反思了一下。。

下面开始啦,在重温python基础时,还能顺便复习一下英语,冲~

Q1. What is an abstract class?
An abstract class exists only so that other “concrete” classes can inherit from the abstract class.

Q2. What happens when you use the build-in function “any()” on a list?
The “any()” function returns True if any item in the list evaluates to True. Otherwise, it returns False.

Q3. What data structure does a binary tree degenerate to if it isn’t balanced properly?
linked list 链表

Q4. What is a static method?
They serve mostly as utility methods or helper methods since they can’t access or modify a class’s state.

Q5. What are attributes?属性
Function arguments are called “attributes” in the context of class methods and instance methods.

Q6. What is the term to describe this code?
count, fruit, price = (2, ‘apple’, 3.5)
tuple unpacking 元组解包

Q8. What is one of the most common use of Python’s sys library系统库?
to capture command-line arguments given at a file’s runtime

Q9. What is the runtime of accessing a value in a dictionary by using its key?
Q35. What is runtime complexity of the list’s built-in .append() method?
"O(1)", also called constant time恒定时间

Q10. What is the correct syntax for defining a class called Game?
class Game: pass
Q15. What is the correct syntax for defining a class called “Game”, if it inherits from a parent class called “LogicGame”?
class Game(LogicGame): pass

Q12. What buit-in Python data type is commonly used to represent a stack? 堆栈
Q22. What buit-in Python data type is commonly used to represent a queue?队列
list

Q13. What would this expression return?
college_years = [‘Freshman’, ‘Sophomore’, ‘Junior’, ‘Senior’]
return list(enumerate(college_years, 2019)

Q14. How does “defaultdict” work? 默认字典
If you try to access a key in a dictionary that doesn’t exist, “defaultdict” will create a new key for you instead of throwing a “KeyError”.

Q16. What is the purpose of the “self” keyword when defining or calling instance methods?
self refers to the instance whose method was called

Q17. Which of these is NOT a characteristic of namedtuples?
You can assign a name to each of the namedtuple members and refer to them that way, similarly to how you would access keys in dictionary
Each member of a namedtuple object can be indexed to directly, just like in a regular tuple
namedtuples are just as memory efficient as regular tuples
No import is needed to use namedtuples because they are available in the standard library

Q18. What is an instance method?
Instance methods can modify the state of an instance or the state of its parent class

Q20. Which statement does NOT describe the object-oriented programming concept of encapsulation?封装
It protects the data from outside interference
A parent class is encapsulated and no data from the parent class passes on to the child class
It keeps data and the methods that can manipulate that data in one place
It only allows the data to be changed by methods

Q24. What does the built-in map() function do?
It applies a function to each item in an iterable and returns the value of that function.

Q26. What is the purpose of the pass statement in Python? pass的作用
It is a null operation used mainly as a placeholder占位符 in functions, classes, etc.

Q27. What is the term used to describe items that may be passed into a function?
arguments
注:Argument (更像实参)和 Parameter (更像行参)两个词均翻译为参数

Q30. Assuming the node is in a singly linked list, what is the runtime complexity of searching for a specific node within a singly linked list?
The runtime is O(n) because in the worst case, the node you are searching for is the last node, and every node in the linked list must be visited.

Q31. Given the following three list, how would you create a new list that matches the desired output printed below?

fruits = [‘apples’, ‘oranges’, ‘bananas’]
quantities = [5, 3, 4]
prices = [1.50, 2.25, 0.89]
#Desired output
[(‘Apples’, 5, 1.50), (‘Oranges’, 3, 2.25), (‘Bananas’, 4, 0.89)]

Q33. What is the correct syntax for calling an instance method on a class named Game?

dice = Game()
dice.roll()

Q34. What is the algorithmic paradigm of quick sort? 快排的算法范式
divide and conquer

Q37. What is the definition of abstraction as applied to object-oriented Python? 抽象的定义
Abstraction means the implementation is hidden from the user, and only the relevant data or information is shown.

Q42. What does calling namedtuple on a collection type return? 集合类型
a tuple subclass with iterable named fields

Q46. What does a class’s init() method do?Q46. What does a class’s init() method do?
The init() method is a constructor method that is called automatically whenever a new object is created from a class. It sets the initial state of a new object.
Q58. What is the correct syntax for defining an init() method that takes no parameters?

def __init__(self):pass

linkedin python 领英技能 测评相关推荐

  1. LinkedIn技巧-领英怎么只给选择的好友群发消息?

    LinkedIn当加为好友后,很多人会有发送信息给对方的需求.由于Linkedin平台提供的群发消息功能非常简单,而且有很多限制.当群发消息的时候会自动创建群,这样发送的好友都会在一个群里,导致大家都 ...

  2. python 领英爬虫

    请勿将爬虫应用于非法活动,保护网络信息安全,人人有责. **1.**一般我们爬取领英都是想爬领英上关于那个公司的所有员工,所以我们有两种方法(我已知的),一个是百度(领英+公司名称),从中抽取个人领英 ...

  3. 领英linkedin工具-领英精灵都有什么功能

    领英精灵是我国技术人员花巨资针对领英平台研发的辅助工具.具有好友分组.备注,一键批量加好友,批量撤回邀请,批量群发消息,批量导出好友资料,批量点赞六大功能.通过领英精灵可大大提高领英开发客户的效率.适 ...

  4. 垃圾的LinkedIn(领英)网站

    突然收到LinkedIn的一封邮件, 说某某猎头看过我的简历 问题是链接点击去之后 还不能查看这个人的资料 需要发送InMail 什么是InMail呢?不知道 反正是需要升级账号 每个月20美元?! ...

  5. LinkedIn领英发布《2016中国人才趋势报告》

    2016年7月12日,职场社交平台LinkedIn(领英)在北京举行了"引领创时代"2016领英ConnectIn峰会,并在会上发布了<2016中国人才趋势报告>.大会 ...

  6. 谷露Gllue联合领英LinkedIn,发布猎头行业中高端招聘大数据观察

    本文为谷露原创,未经谷露授权严禁转载 近日,行业领先的中高端招聘解决方案与招聘管理系统供应商谷露软件(www.gllue.com)联合领英(LinkedIn)共同举办了一场线上分享.领英人才服务机构事 ...

  7. 外贸人如何利用领英LinkedIn开拓海外市场?这七大妙招你要知道

    在社交媒体大行其道的时代下,作为职场人士专用的LinkedIn(领英)在全球则拥有5亿高端会员,覆盖全球200多个国家,也是唯一一个在中国不受限制的国外社交平台,与Facebook.谷歌.苹果并称为& ...

  8. 职场社交平台领英(LinkedIn),暂停中国境内的新用户注册

    宋九九消息,知名职场社交平台--领英(LinkedIn),暂时禁用中国国内用户注册,宋九九编辑体验注册时提示内容如下: 我们目前暂停中国境内的新用户注册,以确保平台提供的所有内容和服务均符合当地的法律 ...

  9. 领英中国总裁陆坚:入华五年,带给我们的三点教训

    即便两年前"赤兔"逐渐湮没在中国社交产品市场激烈的竞争中,但外界依然关注领英中国正在展开哪些新的动作?领英中国五周年暨 2.0 战略升级之后,又将面临怎样的现实挑战? 2019 年 ...

  10. 领英:经济图谱在中国,为人才就业勾画新版图

    11月22日,全球最大的职场社交平台LinkedIn(领英)与清华经管学院互联网发展与治理研究中心联合举办并发布了<中国经济的数字化转型:人才与就业>报告. 报告以领英"经济图谱 ...

最新文章

  1. Xamarin iOS编写第一个应用程序创建工程
  2. li 前面的缩进怎么去除?
  3. 第k短路 (A*算法)
  4. Centos 6.7 配置时间同步解决时间自动变化的问题
  5. 蓝桥杯 试题 基础练习 十六进制转十进制——5行代码AC
  6. 硬件:RS485基础知识笔记
  7. Python小白的数学建模课-07.选址问题
  8. Java数学工具类MathUtil
  9. JavaScript在HTML中的基础用法总结
  10. ios中mvc的FormsAuthentication.SetAuthCookie(cookieUserName, false)失败
  11. 三次样条插值-轨迹规划
  12. linux 内核 sd卡驱动,Linux3.4内核SD卡驱动移植
  13. J2EE进阶之自定义标签,JSTL标签,国际化 十四
  14. PyCharm取消波浪线、下划线和中划线
  15. 成功解决无法写入输出文件,此实现不是Windows平台FIPS验证加密算法的一部分
  16. 转:医院网络营销存在的弊端
  17. SK海力士将继续投资建设英特尔大连芯片厂
  18. 使用 Arya 在线 Markdown 编辑器
  19. 想不想知道,使用360安全卫士,网上购物有没有保障?
  20. APP,实现多国语言动态切换

热门文章

  1. 使用python暴力破解ZIP、7Z 、RAR格式压缩包密码教程
  2. Linux下Sed命令的用法 - Linux - 红黑联盟
  3. 使用JS快速读取TXT文件
  4. java 数字转换字母大写_大写字母或小写字母转换为数字
  5. Error: Device or resource busy
  6. 入行手游必知的8项基础知识
  7. java什么是继承_JAVA中什么是继承?
  8. python怎么爬取电影海报_Python3 爬取时光网电影海报和电影数据
  9. 20210726:FLAC刻录音乐CD教程05-总结
  10. 桶装水同城预订下单送水小程序开发制作(水站桶装水配送系统)