[Interview dry goods] 2021 software test interview questions (the distance between you and the big factory is only this article)! ! ! !

The distance between you and the interviewer may only be the thickness of this article.

Tip: The interview questions I compiled are written in accordance with this brain map, updated from time to time, and there is a table of contents below. Later, I will continue to add reference answers. Click on the title to read. This article is effective for a long time. Find students who are working on the test. Be sure to collect it well.

table of Contents

1. Opening remarks

Q: Briefly introduce yourself

Q: Project and internship experience? (Note the use of STAR rule expression)

Second, the basis of software testing

2.1 Work content

Q: According to the test content, what types of tests are there?

Q: What is the process of software development (testing)?

Q: What is your most impressive bug?

Q: Talk about your understanding of CI/CD

Q: Talk about your understanding of DevOps

Q: What is BDD? What is TDD?

Q: A page of the APP, how do you distinguish whether it is a native page or H5?

2.2 Test method

Q: What are the methods of black box testing?

Q: What are the methods of white box testing?

Q: What is a unit test?

Q: What is integration testing?

Q: How to write and design test cases?

Q: What is gray box testing?

2.3 Test document

Q: What are the elements of the test case?

Q: What elements need to be displayed in the test report?

Q: How should the test schedule be estimated?

Q: Tell me about your experience in data construction?

2.4 Automated testing

Q: For example, what functions can be automated?

Q: How to judge whether a function can be automatically tested?

Q: What are the methods for locating the xpath path?

Q: How to locate a dynamic element?

Q: How to locate elements similar to those floating on a web page (similar to advertisements flying around on the web)

Q: List the automated testing tools you know

2.5 Test tools

Q: Talk about the principle of fiddler's packet capture

Q: How does fiddler grab https requests?

Q: What is in the header of the wireshark capture?

2.6 Performance test

Q: How is the performance test done?

Q: What aspects should be paid attention to in performance testing?

2.7 Game test

Q: Which game is the most impressive? Which aspects attract you most?

Q: What are the bugs in the most memorable game, and analyze the reasons?

Q: How to test a big map game? What are the test points?

Q: The test program design is unreasonable and the test program is perfect, but the tester makes mistakes, which one is more serious?

Q: What do you think are the positioning and responsibilities of game testing?

Q: What is the necessity for the game to adopt the client and server architecture?

Q: What is the principle of LOL script?

Q: Why are RPG game scripts not developed as much as competitive scripts like LOL?

Q: There is a very fatal bug with a very low trigger probability. The project must be launched tomorrow. How do you deal with it? You don’t have to solve it. Just ask me how to deal with this kind of thing.

Q: Why do you want to do a game test?

Q: Let you make a game, which type do you want to do more (MMORPG? MOBA? FPS? RTS?)

Q: Talk about the history of games, what other hobbies besides games?

Q: List the test tools you know about game testing

Third, the actual software testing

3.1 Ideas for troubleshooting

Q: What is the cause of the page crash?

Q: A user reported that uploading of the avatar failed. What is the reason?

Q: Why does the app crash?

Q: How to troubleshoot accidental crashes?

Q: What is the cause of the webpage stuck?

Q: 10% of users reported that the function is not available. How do you troubleshoot?

Q: The login button cannot be clicked. How to troubleshoot the problem?

Q: During the stress test, QPS has been unable to go up, how would you troubleshoot it?

Q: The APP prompts that it cannot connect to the Internet. How would you troubleshoot?

Q: How to judge whether a BUG is a front-end BUG or a back-end BUG?

3.2 Practical case

Q: Post updates on Weibo, design test points

Q: Design a test case for a vending machine

Q: Design WeChat red envelope test case

Q: Design a test case for the live broadcast function of Douyin

Q: Design a test case for WeChat scan code payment

Q: Design test cases for Baidu homepage

Q: How to test the like function of WeChat?

Q: Does the WeChat red envelope first calculate the money each person can get or when the person clicks it?

Q: How to test the comment function of WeChat Moments?

Q: How to test a new friend recommendation function on WeChat?

Q: Test the WeChat head-changing function and design test cases

Q: What are the test points for the security test of Douyin video?

Q: If the mobile browser cannot open the page by entering baidu.com, how would you troubleshoot?

Q: Design test cases for input boxes?

Q: Write a test case for the login interface?

Q: Write test cases for an interface

Q: How to test the search function?

Four, language foundation

4.2 Python

Q: Can the names of global variables and local variables be the same?

Q: What is the difference between is and == in Python?

Q: The process of creation and death of Python variables

Q: Python's garbage collection mechanism

Q: The underlying structure of dict, the difference between the underlying structure of tuple and list

Q: What is the difference between deep copy and shallow copy?

Q: What is a coroutine?

Q: What is a decorator? Give an example where you have used decorators

Q: What is the difference between @classmethod and @staticmethod, and in which usage scenarios are they used?

Q: What is the duck type?

Q: What are the variable types of python?

Q: What are the common data types in python?

Q: List the differences between python2 and python3

Q: What is a lambda function? how to use?

Q: Other programming languages ​​have ternary operators. How is the ternary operator expressed in python?

Q: What is the difference between try...except...else and try...except...finally?

Q: What is an iterable object? What is the principle of iterable objects?

Q: What is the principle of with...as?

Q: Explain the GIL lock of python

Q: Is python single inheritance or multiple inheritance?

Q: What is the order of python inheritance?

Q: What is a metaclass?

Q: Why do people say that python is slow?

Five, data structure and algorithm

5.1 Linked List

Q: How to find the Kth largest node in an ordered linked list?

Q: How to find out whether there is an intersection point between these two linked lists

Q: The difference between array and linked list

Q: Reverse order of linked list

5.2 Array

Q: How to merge two ordered arrays?

Q: What is the time complexity for finding two numbers whose sum is n in the array?

Q: How to sort the int type array?

Q: How to remove the duplication of int type array?

5.3 Complexity

Q: What is the time complexity?

Q: How to calculate the time complexity?

5.4 Sort

Q: What are the eight rankings?

Q: The principle of fast queue

Q: The principle of merge sort

Q: The principle of bubble sort

Q: The principle of insertion sort

Q: The principle of selection sort

5.5 Tree

Q: Definition of number, code implementation

Q: What is the height of the tree? How can I ask for it?

Q: Calculate the number of binary tree nodes

Q: What is the root node? What is a leaf node?

Q: Print binary tree

5.6 Recursion

Q: What is recursion?

Q: What is the time complexity of recursion?

5.7 String

Q: Can the string length be changed?

5.8 Heap and stack

Q: What is the difference between heap and stack

Q: Code implementation stack

5.9 Dynamic programming

Q: What is dynamic programming?

5.10 Advanced Algorithm

Q: What is deep traversal? What is breadth traversal?

5.11 Find

Q: What are the necessary conditions to achieve binary search?

5.12 Hash

5.13 Figure

Six, frame

6.1 Development Framework

6.1.1 Django

Q: Briefly introduce the directory structure of Django

Q: Do you know what MVC is? Why is Django an MTV model?

Q: The implementation process of a network request in Django

Q: What is uwsgi? What is the difference between using uwsgi and using Django's native startup method?

Q: Do you know ORM? A brief introduction to Django's ORM mapping

Q: What is the difference between Django's CBV and FBV? Which method would you use in actual projects? why?

Q: How to synchronize Django's modules to the database? Will there be any pitfalls during the synchronization process?

6.1.2 Spring

Q: Introduction to the Spring Framework

Q: What is IOC?

Q: What is DI?

Q: What is AOP?

6.2 Test Framework

6.2.1 selenium

Q: The operating principle of the selenium framework

Q: What are the methods for selenium to locate elements

6.2.2 epochs

Q: Have you used Appium? What is the principle?

6.2.3 Unittest

6.2.4 Pytest

6.2.5 TestNG

6.2.6 Junit

Seven, computer basics

7.1 Computer Network

7.1.1 TCP/UDP

Q: A brief introduction to the TCP three-way handshake (why not twice or four times)

Q: What is the four breakup?

Q: What is TCP congestion?

Q: How does TCP ensure security? Can UDP be as secure as TCP? How to do it?

Q: Do you know the reliability control strategy and retransmission mechanism of tcp?

Q: Which layer does the TCP protocol belong to?

7.1.2 HTTP/HTTPS

Q: Mechanism and difference between cookie and session

Q: The process of inputting url to the web page display

Q: List the webpage status codes you know

Q: What is the meaning of the network status code at the beginning of 3? What is the difference between 302 and 304?

Q: What is the meaning of the network status code at the beginning of 4?

Q: What is the meaning of the network status code at the beginning of 5?

Q: What is HTTPS? What is the principle?

Q: What is the difference between GET and POST?

Q: What are the network request methods?

Q: Briefly introduce what is RESTful API

Q: The difference between PUT and POST

Q: List common request Header headers

Q: What does an HTTP request message look like? (GET example)

Q: Do you understand the length limit of GET?

7.1.3 Other

Q: The difference between the maximum number of connections and QPS

Q: How many layers are there in the network?

Q: The difference between the client requesting pictures and dynamic resources from the server

Q: The front end of the image rendering process

Q: What are the seven layers of the network? Where are tcp, udp, and arp?

Q: What is the difference between QPS and TPS?

Q: Explain DNS

Q: What is a reverse proxy?

Q: What is a socket?

Q: [Hand tearing] Use socket to realize a chat room function?

7.2 Operating System

7.2.1 Process/Thread

Q: What is the difference between a process and a thread?

Q: When is the slowest CPU processing process?

Q: Why is there a deadlock?

Q: How to communicate between processes?

Q: How to communicate between threads?

Q: How to achieve thread synchronization?

7.2.2 Linux

Q: Linux switch directory

Q: linux command, count the number of occurrences of keywords in a text

Q: linux finds all files with the suffix of .py in the current directory

Q: Know the common linux commands: view the process of the specified port

Q: cd --Japanese cd ~

Q: How to write a command to view a certain process in linux

Q: How to view the log? How to check the last 500 logs?

Q: What is the use of awk? How to use (for example)?

Q: How to check system performance?

Q: How to check the remaining disk space size?

Q: How to check the space occupied by the directory?

Q: Do you know the usage of xarg?

Q: How to transfer files from the local computer to the server?

Q: How to copy files between test servers?

Q: What is the use of sed? How to use (for example)?

Q: How to kill a process?

Q: How to delete all files in a directory recursively?

Q: How to check the memory size?

Q: How to check the CPU usage?

Q: How to restart the Linux server?

Q: How to print out the 500th-1000th line of a file?

7.2.3 File storage

Q: The difference between static storage and dynamic storage

Q: There are several ways to store videos on the server

Q: What is the use of CDN?

Q: Why are the front-end static resources uploaded to the CDN?

7.2.4 Other

Q: What are the system resources?

Q: What is IO operation?

Q: What is memory?

Q: What is a hard disk?

Q: What is a CPU?

Q: What operation consumes more CPU?

Q: What is UTF-8? What is Unicode?

Q: What is IO multiplexing? And how to achieve it?

Q: Talk about what is distributed? Why use distributed?

7.3 Database

7.3.1 Non-relational database

Q: What are the non-relational databases?

Q: What are the data structures of Redis?

Q: What is the difference between Redis and Memcached?

Q: What is the purpose of Redis?

Q: How much data can Redis write in one second?

Q: Why is Redis fast?

Q: How to set the expiration time of Redis? Which scenarios are suitable for caching for a longer period of time?

Q: What is a cache avalanche?

Q: What is cache breakdown? What is the difference between cache penetration and cache penetration?

Q: When is it appropriate to use MongoDB?

Q: Is Redis suitable for message queues? why?

Q: Redis data is stored in the memory. If the data is lost after power failure, how to solidify Redis data?

7.3.2 Relational Database

Basic Theory of Database

Q: What are the ways to optimize the database?

Q: What is the difference between a relational database and a non-relational database?

Q: What is the use of database transactions? When should you use transactions and when should you not use transactions?

Q: What is the use of database indexes? What is a joint index?

Q: Is it suitable for the primary key to use a custom ID or an automatic ID?

Q: What is a foreign key? Why do large companies sometimes not recommend using foreign keys?

Q: Is the index set as many as possible? What are the advantages and disadvantages of indexing?

Q: What is InnoDB based on?

Q: Why does it cause database deadlock? How to deal with it?

Q: What are the characteristics of business?

Q: What are the three paradigms of database design?

Q: How many rows is not recommended for a data table?

Q: Why do we need to sub-table and database?

Q: What are the methods for sub-table sub-database? for example

SQL

Q: [Hand tear] database, search for a student's name with more than 80 points in both courses

Q: [Hand tearing] Joint table query for all information of the person whose job number is "123" in the two tables

Q: [Hand tearing] A personnel table, a department table, the department id is stored in the personnel table, check all the data of each department table in the personnel table

Q: [Hand tear] Query duplicate city names in a city list, and count the number of repetitions

Q: [Hand tear] Find a list of students whose average score is greater than 90 in the student transcript

Q: [Hand tear] Find the student with the highest average grade in the student transcript

Q: How does the database copy data?

Q: What are the ways to delete data? Talk about the difference between drop table and truncate table?

8. Intelligence questions

Q: The problem of jumping steps

Q: How can the 4-minute hourglass and the 7-minute hourglass leak 9 minutes?

Q: Two incense sticks of different thickness have a burn-out time of 1 hour. How to use these 2 incense sticks to calculate the time of 15 minutes

Q: Horse racing

Q: 10 piles of apples, each pile of 10, 9 piles of 50g each, 1 pile of 40g each, there is a scale, please weigh it only once to find the light pile

Q: Aircraft refueling problem

Q: Logic: Four switches and four light bulbs

Q: The arc of the earth

Nine, programming questions

Q: Find the maximum number of palindromes

Q: There are positive and negative numbers in an array (without 0), please arrange it into a positive and negative array (put all the extra behind), the time complexity does not exceed O(n);

Q: For a programming question, input a string consisting of ABCD four characters randomly and an integer k, and the sequence of the first k words of the returned string is repeated several times.

Q: Programming: Determine whether a character string conforms to the ipv4 format

Q: Code question, give a sentence, just flip the word and enter it

Q: [Hand Tear Code] Characters that appear only once in the string, find the four smallest numbers in the array

Q: Code: the smallest integer in a string of strings

Q: Write code, similar to college entrance examination scores. There are a lot of data in a table (unordered). Give you a score and find out the ranking in the table.

Q: Programming problem, chickens and rabbits in the same cage, half of the rabbits stretch out half of their feet, enter the number of feet on the ground, and list all the possibilities (the rabbit is the base number and divide 2)

Q: Determine whether a string is in dotted decimal ipv4 format

Q: 1 million students enter their scores according to their grades and corresponding rankings to find the ranking (hashmap)

Q: Python programming questions, enter a string and then cut the space to count the number of times each letter appears

10. HR Frequently Asked Questions

Q: Why do you want to test

Q: Understanding of test development

Q: Are there any problems during the test and how are they resolved?

Q: What books have you read recently? What did you learn? Why learn? Do you have any technical books?

Q: Personal strengths and weaknesses, examples

Q: What abilities are important in the test?

Q: Digging into project issues

Q: Why choose xx company?

Q: Do you know anything about our company?

Q: What did you gain from the previous internship?

Q: Introduce your own advantages and disadvantages

Q: How can I resist stress? Describe an experience of how I resisted stress

Q: Rhetorical section: Do you have any questions you want to ask me?

Q: What did you gain from the project?

Q: How do you usually learn

Q: Why do you want to leave?

Q: What is your expected salary?



Above are some videos and interview questions I collected .

For software testing friends, it should be the most comprehensive and complete interview preparation warehouse. In order to better organize each module, I also refer to many high-quality blog posts and projects on the Internet, and strive not to miss every knowledge point. Friends relied on these contents to review, and got offers from big factories such as BATJ. This warehouse has also helped many software test learners, and I hope it can also help you.

Follow my WeChat public account [ Programmer Erhei ] Get it for free


More good articles recommended

High-paid programmers can't hide from the 35-year-old... When ability and age are out of touch, how can we save ourselves?

Recommend 52 learning websites that can be called artifacts, stick to one hour every day, so that you will benefit for a lifetime [top]

After graduating from university, it began to sell... Not to be reconciled to the status quo, the road to self-help by switching to testing

Working overtime in a state-owned enterprise 996... What should I do when I get an offer from an outsourcing company in the interview?

Are Meituan’s test interview questions really difficult?

In the current epidemic situation, how should programmers break through in the face of layoffs?

Write a good job resume and let the interviewer look at you with admiration

Guess you like

Origin blog.csdn.net/m0_52650621/article/details/114978833