100 Interview Questions for Software Developers

简介:

Hiring smart software developers is not easy. If you're not careful you might end up hiring a bunch of moronic mandrills, like I did last year. And you don't want that. Trust me. Stand-up meetings are very hard to do in a tree.

 
The key is to ask challenging questions that enable you to distinguish the smart software developers from the moronic mandrills. And to help you with that, I decided to publish my private list of 100 interview questions for software developers.
 
This list covers most of the knowledge areas as defined by the Software Engineering Body of Knowledge. Of course, if you're just looking for brilliant programmers, you may want to limit the topics to Construction, Algorithms, Data Structures and Testing. And if you're looking for architects, you can just consider the questions under the headings Requirements, Functional Design and Technical Design.
 
But whatever you do, keep this in mind:
For most of the questions in this list there are no right and wrong answers!
 
My questions are simply starting points for interesting discussions. For example: there is a question about reasons to use static methods vs. singletons. If this triggers your candidate to start a tirade againt both static methods and singletons, there's a good chance you're dealing with a smart software developer! But if the candidate can produce nothing more than a blank stare and this sound, then he might very well be a moronic mandrill. Likewise, there are many correct ways to find out whether a number is a power of 2. But if the candidate suggests using the mod operator, well... you know what I mean. (And if you don't, no problem. Fancy a banana?)
 
Requirements
 
Can you name a number of non-functional (or quality) requirements?
What is your advice when a customer wants high performance, high usability and high security?
Can you name a number of different techniques for specifying requirements? What works best in which case?
What is requirements tracing? What is backward tracing vs. forward tracing?
Which tools do you like to use for keeping track of requirements?
How do you treat changing requirements? Are they good or bad? Why?
How do you search and find requirements? What are possible sources?
How do you prioritize requirements? Do you know different techniques?
Can you name the responsibilities of the user, the customer and the developer in the requirements process?
What do you do with requirements that are incomplete or incomprehensible?
Functional Design
 
What are metaphors used for in functional design? Can you name some successful examples?
How can you reduce the user's perception of waiting when some functions take a lot of time?
Which controls would you use when a user must select multiple items from a big list, in a minimal amount of space?
Can you name different measures to guarantee correctness of data entry?
Can you name different techniques for prototyping an application?
Can you name examples of how an application can anticipate user behavior?
Can you name different ways of designing access to a large and complex list of features?
How would you design editing twenty fields for a list of 10 items? And editing 3 fields for a list of 1000 items?
What is the problem of using different colors when highlighting pieces of a text?
Can you name some limitations of a web environment vs. a Windows environment?
Technical Design
 
What do low coupling and high cohesion mean? What does the principle of encapsulation mean?
How do you manage conflicts in a web application when different people are editing the same data?
Do you know about design patterns? Which design patterns have you used, and in what situations?
Do you know what a stateless business layer is? Where do long-running transactions fit into that picture?
What kinds of diagrams have you used in designing parts of an architecture, or a technical design?
Can you name the different tiers and responsibilities in an N-tier architecture?
Can you name different measures to guarantee correctness and robustness of data in an architecture?
Can you name any differences between object-oriented design and component-based design?
How would you model user authorization, user profiles and permissions in a database?
How would you model the animal kingdom (with species and their behavior) as a class system?
Construction
 
How do you make sure that your code can handle different kinds of error situations?
Can you explain what Test-Driven Development is? Can you name some principles of Extreme Programming?
What do you care about most when reviewing somebody else's code?
When do you use an abstract class and when do you use an interface?
Apart from the IDE, which other favorite tools do you use that you think are essential to you?
How do you make sure that your code is both safe and fast?
When do you use polymorphism and when do you use delegates?
When would you use a class with static members and when would you use a Singleton class?
Can you name examples of anticipating changing requirements in your code?
Can you describe the process you use for writing a piece of code, from requirements to delivery?
Algorithms
 
How do you find out if a number is a power of 2? And how do you know if it is an odd number?
How do you find the middle item in a linked list?
How would you change the format of all the phone numbers in 10,000 static html web pages?
Can you name an example of a recursive solution that you created?
Which is faster: finding an item in a hashtable or in a sorted list?
What is the last thing you learned about algorithms from a book, magazine or web site?
How would you write a function to reverse a string? And can you do that without a temporary string?
What type of language do you prefer for writing complex algorithms?
In an array with integers between 1 and 1,000,000 one value is in the array twice. How do you determine which one?
Do you know about the Traveling Salesman Problem?
Data Structures
 
How would you implement the structure of the London underground in a computer's memory?
How would you store the value of a color in a database, as efficiently as possible?
What is the difference between a queue and a stack?
What is the difference between storing data on the heap vs. on the stack?
How would you store a vector in N dimensions in a datatable?
What type of language do you prefer for writing complex data structures?
What is the number 21 in binary format? And in hex?
What is the last thing you learned about data structures from a book, magazine or web site?
How would you store the results of a soccer/football competition (with teams and scores) in an XML document?
Can you name some different text file formats for storing unicode characters?
Testing
 
Do you know what a regression test is? How do you verify that new changes have not broken existing features?
How can you implement unit testing when there are dependencies between a business layer and a data layer?
Which tools are essential to you for testing the quality of your code?
What types of problems have you encountered most often in your products after deployment?
Do you know what code coverage is? What types of code coverage are there?
Do you know the difference between functional testing and exploratory testing? How would you test a web site?
What is the difference between a test suite, a test case and a test plan? How would you organize testing?
What kind of tests would you include for a smoke test of an ecommerce web site?
What can you do reduce the chance that a customer finds things that he doesn't like during acceptance testing?
Can you tell me something that you have learned about testing and quality assurance in the last year?
Maintenance
 
What kind of tools are important to you for monitoring a product during maintenance?
What is important when updating a product that is in production and is being used?
How do you find an error in a large file with code that you cannot step through?
How can you make sure that changes in code will not affect any other parts of the product?
How do you create technical documentation for your products?
What measures have you taken to make your software products more easily maintainable?
How can you debug a system in a production environment, while it is being used?
Do you know what load balancing is? Can you name different types of load balancing?
Can you name reasons why maintenance of software is the biggest/most expensive part of an application's life cycle?
What is the difference between re-engineering and reverse engineering?
Configuration Management
 
Do you know what a baseline is in configuration management? How do you freeze an important moment in a project?
Which items do you normally place under version control?
How can you make sure that team members know who changed what in a software project?
Do you know the differences between tags and branches? When do you use which?
How would you manage changes to technical documentation, like the architecture of a product?
Which tools do you need to manage the state of all digital information in a project? Which tools do you like best?
How do you deal with changes that a customer wants in a released product?
Are there differences in managing versions and releases?
What is the difference between managing changes in text files vs. managing changes in binary files?
How would you treat simultaneous development of multiple RfC's or increments and maintenance issues?
Project Management
 
How many of the three variables scope, time and cost can be fixed by the customer?
Who should make estimates for the effort of a project? Who is allowed to set the deadline?
Do you prefer minimization of the number of releases or minimization of the amount of work-in-progress?
Which kind of diagrams do you use to track progress in a project?
What is the difference between an iteration and an increment?
Can you explain the practice of risk management? How should risks be managed?
Do you prefer a work breakdown structure or a rolling wave planning?
What do you need to be able to determine if a project is on time and within budget?
Can you name some differences between DSDM, Prince2 and Scrum?
How do you agree on scope and time with the customer, when the customer wants too much?


















本文转自周金桥51CTO博客,原文链接: http://blog.51cto.com/zhoufoxcn/711167 ,如需转载请自行联系原作者
相关文章
|
Java
1.5 流程控制语句
1.5 流程控制语句
128 0
|
JavaScript Java 数据安全/隐私保护
基于SpringBoot+Vue毕业生信息招聘平台系统【源码+论文+演示视频+包运行成功】_基于spring vue的校园招聘系统源码(2)
基于SpringBoot+Vue毕业生信息招聘平台系统【源码+论文+演示视频+包运行成功】_基于spring vue的校园招聘系统源码
465 0
基于SpringBoot+Vue毕业生信息招聘平台系统【源码+论文+演示视频+包运行成功】_基于spring vue的校园招聘系统源码(2)
|
算法 计算机视觉
使用同步图像跟踪白板上的标记
使用Simulink基于图像跟踪白板上的标记。
214 0
|
机器学习/深度学习 知识图谱
YOLOv5改进 | 融合改进篇 | 轻量化CCFM + SENetv2进行融合改进涨点 (全网独家首发)
YOLOv5改进 | 融合改进篇 | 轻量化CCFM + SENetv2进行融合改进涨点 (全网独家首发)
526 0
|
存储 弹性计算 分布式计算
云计算演进问题之洛神云网络支持海量用户同时使用如何解决
云计算演进问题之洛神云网络支持海量用户同时使用如何解决
156 0
.vitepress执行了,npm init,npm,修改了scipt,出错了如何解决,vitepress的配置,结合up主成功版,能够实现侧边栏跳转,解决方法,一个一个尝试
.vitepress执行了,npm init,npm,修改了scipt,出错了如何解决,vitepress的配置,结合up主成功版,能够实现侧边栏跳转,解决方法,一个一个尝试
|
存储 缓存 OLAP
阿里云 X Apache Doris X Zilliz沙龙回顾|大模型时代的数据存储与分析
9月16日,阿里云存储和云原生联合两个热门的数据分析项目 Apache Doris 和 Zilliz 共同探讨非结构化数据处理和分析的最佳实践
1246 0
|
存储 数据采集 缓存
开源工业物联网网关
开源工业物联网网关,近期计划支持阿里云物联网平台
2320 1
开源工业物联网网关
|
存储 Kubernetes Cloud Native
带你读《云原生机密计算最佳实践白皮书》——AMD SEV机密容器(3)
带你读《云原生机密计算最佳实践白皮书》——AMD SEV机密容器(3)
424 0