Programmer Written Test (Partial Test) Multiple Choice Questions Collection (1)

1. After compiling and running the following program, the description of the output result is correct ()
public class Conditional{ public static void main(String args[ ]){ int x=4; system.out.println("value is "+ ( (x>4)?99.9:9)); A. The output result is: value is 9.0 B. The output result is: value is 9 C. Compilation error D. The output result is: value is 99.9








2. Which description of the IPv6 protocol is correct? ()
A. The address prefix length obtained through DHCPv6 is 64
B. There is no way to obtain the default gateway through RA messages
C. The address prefix length generated without state must be 64
D. The default gateway can be obtained through DHCPv6

3. When a windows host is started for the first time, it fails to obtain an IP address from the DHCP server. The host may use the IP address ()
A.169.254.2.33
B.127.0.0.1
C.255.255.255.255
D.0.0.0.0

4. Which of the following sorting algorithms is not a stable sorting algorithm? ()
A. Merge sort
B. Insert sort
C. Quick sort
D. Bubble sort

5. Which of the following is not included in the routing table ()
A. Next hop
B. Target network
C. Cost
D. Source address

6. The following is not the function of the data link layer ()
A. Error control
B. Auto-negotiation
C. Routing
D. Flow control

7. One reason to add an index is ()
A. Improve the performance of INSERT statements
B. Improve database security
C. Improve the performance of SELECT statements
D. Reduce storage space

8. Which of the following is not the advantage of software automated testing ()
A. Can improve the quality of testing
B. Accuracy
C. Can fully test the software
D. High efficiency

9. Which of the following is correct about the C language? ()
A. Variable names are not case sensitive
. B. Two functions with the same name can be defined, but the number of parameters is different
. C. The parameter type and function definition can be completely inconsistent when calling the function.
D. Variable names are allowed to start with a number

10. The output of the following code is ()
s=["seashell","gold","pink","brown","purple","tomato"]
print(s[1:4:2])
A. ["Gold","pink","brown","purple","tomato"]
B.["gold","pink"]
C.["gold","brown"]
D.["gold", "Pink","brown"]

11. White box test test data selection is based on ()
A. User manual
B. Program notes
C. Program requirements manual
D. Program internal logic

12. In logical test coverage, the strongest test coverage is ()
A. Condition combination coverage
B. Statement coverage
C. Decision coverage
D. Condition coverage

13. The following statement about ARP is wrong ()
A. When an IP address is about to be used by a computer, the computer will send an ARP request.
B. ARP is used for MAC address learning between different IP network segments.
C. It can pass ARP detection. IP address conflict
D. Computers have ARP cache tables

14. Set three integer variables x = 10, y = 11, z = 12, then the value of the expression y+=z–/++x is ()
A.12
B.13
C.11
D.10

15. In the boundary value analysis, the following data are usually not used for data testing is ()
A. The value just greater than the boundary
B. The value just equal to the boundary
C. The value just less than the boundary
D. The equivalent value in the equivalence class

16. The following statement about the binary sort tree is wrong ()
A. The average search length of the binary sort tree is o(log2(n))
B. In order to traverse the binary sort tree, the node key must be obtained an ordered sequence of
C. binary tree search efficiency and related binary sort tree
D. in binary sort tree, the lowest complete binary tree search efficiency

17. What does a stable sorting algorithm mean? ()
A. The relative position of elements with the same value before sorting remains unchanged after sorting
B. The space complexity of sorting does not change with the input data
C. The remaining answers are not correct
D. The time complexity of sorting does not change with the input data

18. Which of the following IP is a class C network address? ()
A.192.10.10.10
B.128.1.0.1
C.255.10.10.10
D.1.0.0.1

19. You need to delete the view named EmployeeView from your database. Which statement to use ()
A.DROP EmployeeView
B.DELETE
VIEW EmployeeView
C.DROP VIEW EmployeeView D.DELETE EmployeeVIew

20. What is the time complexity of constructing a minimum heap on an unordered int array? ()
Ao(nlogn)
Bo(n)
Co(n^2)
Do(logn)
Note: The answer will be provided later

Guess you like

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