Collecting and sorting out multiple-choice questions for the programmer's written test of Jingdong 2021 campus recruitment test development engineer (10)

1. The design of data structure queue has very important application and practical scenarios in program development. Its application scenarios are: (multiple choice)
A. Simulate the sequence of events
B. Simplify program design
C. Work in the operating system Schedule
D. Call function or subroutine

2. There are four orders labeled a, b, c, and d, which enter the waiting message program of the stack structure in sequence. The following impossible order processing sequence is:
A.abcd
B.adbc
C.acbd
D.abdc

3. Regarding the performance test, the description is wrong ()
A. Response time is an important performance indicator of the system. In principle, it can be manually tested with a stopwatch
. B. Performance testing is the measurement of the system in terms of performance.
C. Thinking time refers to The time the system is paused
D. Throughput refers to the ability of the system to process transactions per unit of time

4. In all sorting algorithms, the number of keyword comparisons has nothing to do with the initial sequence of records:
A. Insertion sort
B. Bubble sort
C. Selection sort
D. Hill sort

5. Which of the following tools or platforms can be used for interface testing? (Multiple choice)
A. Text editor
B.postman
C. Browser
D.jmeter

6. The basis for designing test cases in unit testing is
A. Project plan specification
B. Outline design specification
C. User requirements specification
D. Detailed design specification

7. Product testing is divided into many testing methods, such as functional testing, usability testing, maintainability testing, etc., then "one user sends a message", "one user sends a message, one user receives a message", "two different Users send messages at the same time", subdivided, belong to
A. Functional test, functional test, functional test
B. Functional test, functional test, reliability test
C. Reliability test, reliability test, reliability test
D. Functional test , Reliability test, reliability test

8. Combine N ordered linked lists whose length is M, and the merged linked lists will also remain in order. The time complexity is ()
AO(N)
BO(M M logN)
CO(N*M)
DO(M )

9. The following description of TCP and UDP is wrong ()
A. Both are transport layer protocols.
B. UDP is an unreliable protocol, and there may be datagram loss.
C. TCp connection can only be two ends
Two endpoints, namely one-to-one, not one-to-many. D. TCP is a reliable protocol and is guaranteed by three handshake and three waves

10. Which of the following operations can be used to view Tomcat's log output in real time?
A.less catalina.out
B.more catalina.out
C.cat catalinaout
D.tail -f catalina.out

11. What is the output of the following C++ code?

#include<iostream>
using namespace std;
class A{
    
    
    public:
    A(){
    
    
    cout<<"Constructor called\n";
    }
    ~A(){
    
    
    cout<<"Destructor called\n";
    }
};
int main()
{
    
    
A *a = new A[5];
delete a;
return 0;
}  

A. Segmentation fault
B. "call the constructor" once, then "call the destructor" once
C. "call the constructor" five times, then "call the destructor" five times
D. "call the constructor" five times, Then "call the destructor" once

12. The following statements about the classification of software testing are wrong:
A. Black box testing does not care about the internal implementation of the software, while white box testing needs to understand the structure of the software.
B. White box testing has higher requirements for testers , Software code changes, and test cases generally need to be changed
. C. Black box testing uses the software from an external perspective, and the testing is more comprehensive
. D. Software testing has various methods of white box, black box, and gray box.

13. Perform functional tests on the web system, excluding:
A. Link test
B. Cookies test
C. Domain name test
D. Form test

14. Which of the following can get a unique dept_name? SELECT ____ dept_name FROM instructor;
A.ALL
B.From
C.Name
D.Distinct

15. The following description of the principles of software testing is wrong:
A. Reasonably control the depth and breadth of testing, it is impossible to test completely, and the input and output of testing must be balanced
. B. Carry out testing as early as possible, and find errors and modify them earlier. The lower the cost of
C. If the program segment with more errors is found, the development should be stopped
. D. All speed measurement standards are based on user needs

16. For the file requested by the browser network, which of the following Response Header indicates that the browser caches locally for 1 hour?
A.cache-control:max-age=3600
B.cache-file:max-age=60
C.cache-file:max-age=3600
D.cache-control:max-age=60

17. A department of a company must select several people from Xiao Zhang, Xiao Wang, Xiao Li, Xiao Liu, Xiao Zhao, and Xiao Gao to go to the head of the field inspection department. The following considerations: (1) If Xiao Zhang is selected, do not choose Xiao Wang, but Xiao Gao must be selected; (2) Only if Xiao Zhao is not selected, Xiao Liu or Xiao Li will be selected; (3) If Xiao Li is not selected, then Xiao Gao will not be selected; (4) Xiao Zhang is in the department The core technology must be selected. It can be inferred from this department ()
A. I chose Xiao Li and Xiao Liu
B. I chose Xiao Gao, but I did not choose Xiao Zhao
C. I chose Xiao Zhang and I chose Xiao Liu
D. Xiao Wang and Xiao Li did not choose

18. Assuming that the time to execute the statement s is t, the time to execute the following program segment is ()
for(i=1;i<=n;i++)
for(j=i;j<=n;j++)s;
A .2n t
Bn
t
Ct
Dn(n+1)*t/2

19. Which of the following operating systems is not based on Linux?
A.
Redhat
B.
Ubuntu C. CentOs D. Unix

20. How to force GC to reclaim an object immediately in a program in Java?
A. Assign the object to null
B. Cannot force the garbage collector to execute immediately in the program
C. Call the System.gc() method
D. Create the sun.misGC object instance and start additional threads to perform GC

21. Assuming that the three-dimensional array R[6][9][6] is stored in row-major order, the address of element R[0][0][0] is 2100, and each element occupies 4 storage units, then store The element at address 2836 is ()
AR[4][3][4]
BR[3][3][4]
CR[3][3][3]
DR[4][3][5]

22. What is the output of the following code segment?

>>>t=(1,2,4,3)
>>>t[1:3]

A.(2,4)
B.(2,4,3)
C.(1,2)
D.(1,2,4)

23. The correct sequence of the addressing process of C++ virtual function is:
1. Use the offset to get the access address of the
virtual function 2. Call the virtual function
3. Get the type name and function name
4. Get the offset of the current virtual function from the symbol table Quantity
A.1234
B.3124
C.2134
D.3412

24. The software test model does not include:
AV model
BM model
CW model
DH model

25. The integration test is based on the unit test, and all the modules are assembled into a complete system according to the design requirements. The integration test focuses on testing the () part of all modules
A. Performance
B. Program robustness
C. Module design
D. Interface

26. There are black box testing and white box testing in software testing. The disadvantages of white box testing are ()
A. Help software testers increase code coverage, improve code quality, and find hidden problems in code
B. Testing Based on the development code, it can only test whether the logic in the program is implemented correctly and the interaction between components, but it cannot detect the ease of software design and interface aesthetics.
C. It is impossible to cover all codes and the coverage rate is low
. D. Based on software Development documents, it is easier to know the functional logic of the software, and has nothing to do with the internal implementation of the software

27. The output of the following code after execution is ()
#!/bin/bash
array[0]=H
array[1]=E
array[2]=E
array[3]=L
arra[4]=O
echo “${ #array[*]}”
A.5
B.0 1 2 3 4
CH EELO
D.4

28. Driver: Used to simulate the upper unit of the tested unit, which is equivalent to the main function of the tested function, such as the main function. The main steps of the driving unit are as follows:
1. Transmit the test case input to the tested unit, drive the tested unit to test
2. Output the test results to the specified location
3. Accept the test data, including the test case input and expected output
4. Will be tested The actual output of the test unit is compared with the expected output, and the test results are obtained
A.4312
B.3421
C.2341
D.3142

29. The following elements of the test case are wrong:
A. Software version information
B. Expected results
C. Test content
D. Input conditions

Guess you like

Origin blog.csdn.net/qq_34124009/article/details/108315068