2023 Programmer High Examination Paper! How many can you get right?

It's another year's college entrance examination season, let's do "programmers' college entrance examination papers" together, let's not be surprised~

2023 National Unified Examination for Enrollment in Ordinary Colleges and Universities

Programmer's college entrance examination paper (A volume)

Candidate Category: Code Farmer

1. Programmer A: Lend me 1,000 yuan.

Programmer B: Round up an integer for you.

How much does programmer B lend to programmer A? ()

A. 1000 yuan

B. 1024 yuan

C. 1111 yuan

2. Why don't smoking programmers care about the warning on the cigarette pack? ()

A. The characters are too small

B. Programmers only see programs

C. Don't care about Warning, only care about Error

3. Why can't programmers distinguish between Halloween and Christmas? ()

A. Because 31 OCT == 25 DEC

B. Programmers only work overtime/no overtime, but no holidays

C. Programmers don’t have girlfriends, but

4. The window that programmers are most afraid of popping up is ()

A.

B.

C.

5. Programmer: Hey, I am too tired to pass the day, how can I change the line? ()

A. Hit Enter

B. No line breaks, the days are passing

C. Except for typing codes, you can’t, it’s better to type codes for line breaks

6. What would programmers name their children? ()

A. Yiyi, Lingling, Yiling, Lingyi, Yichu

B. Ctrl、Alt 、Delete

C. How can a programmer have a girlfriend?

7. How to earn one million quickly? ()

A. while

B. Buy lottery tickets

C. to be a beggar

8. The programmer calls his wife before leaving get off work: Wife, I will bring you dinner for dinner. What do you want to buy?

Wife: Let’s buy 1 catty of steamed stuffed buns. If you come across someone selling watermelon, buy one.

When the programmer was buying buns, he saw someone selling watermelons next to him. So, what do programmers bring home for dinner? ()

A. 1 catties of buns

B. 1 bun

C. 1 watermelon

9. A couple of lovers of programmers are sitting face to face. What are they doing? ()

A) object-oriented programming

b. drink coffee

C. Complain to the product manager

10. Boss: Xiao Cheng, the new version must be launched before get off work!

Xiao Cheng: OK.

The next day, the boss went to work and asked Xiao Cheng: Why hasn’t the new version been launched yet?

How did Xiao Cheng answer? ()

A. There is a problem with the version

B. The requirements have been changed before the version goes online

C. I haven't got off work yet

11. What is the favorite thing to hang in the programmer's study?

A. hello world

B. just do it

C. impossible is nothing

12. What are the must-read books for programmers to advance to the advanced stage? ()

A. "C Language Programming and Design"

B. "Silent Rage"

C. "Guidelines for Cervical Spondylosis Rehabilitation"

D. "Alive"

13. Which is the most hacked programming language? ()

A.Java

B.JavaScript

C. Python

D.PHP

14. How to kill a programmer? ()

A. No bug found

B. Change the requirements three times

c. overtime

15. What if the programmer's girlfriend and mother fall into the water at the same time? ()

A. Save the girlfriend first

B. Save mom first

C. Press the back key

Programmer's high school exam paper

2023 National Unified Examination for Enrollment in Ordinary Colleges and Universities

Programmer's high school exam paper (B paper)

Candidate Category: Code God

1. Which of the following algorithm ideas was adopted by Qin Shihuang to annex the six countries? ( )

A. Recursion B. Divide and conquer      

C. Iterate D. Simulate

2. An array contains a large number of repeated elements. It is a reasonable choice to use ( ) for sorting

A. Quick sort

B. Two-way quick sort

C. Three-way quick sort

D. Hill sort

3. Yang Hui's triangle is a geometric arrangement of binomial coefficients in a triangle. It appeared in the book ( ) written by Yang Hui, a mathematician in the Southern Song Dynasty in 1261. The questions ( ) and ( ) on LeetCode are related to Yang Hui's triangle.

A. "Detailed Explanation of Eight Chapters Algorithm", 118, 119

B. "Detailed Explanation of Nine Chapters Algorithm", 118, 119

C. "Detailed Explanation of the Algorithm in Eight Chapters", 139, 140

D. "Detailed Explanation of Nine Chapters Algorithm", 139, 140

4. Xiao Wu wants to perform a destructive operation, such as quickly deleting system elements, using the ( ) method can help me complete this task better

A. Preorder traversal of a binary tree

B. Inorder traversal of a binary tree

C. Post-order traversal of a binary tree

D. Level order traversal of binary tree

5. Among the following four sorting algorithms, only ( ) is an unstable sorting algorithm

A. Bubble sort

B. Selection sort
C. Insertion sort

D. Merge sort

6. Which of the following phrase abbreviations is not the abbreviation of some algorithms common to programmers ()

A、KMP

B、MMP

C、DP

D、A*

7. Hui Shi once put forward the proposition that "eggs have hair". Which of the following is the cause of this wrong proposition: ( )

A. Confusing namespaces      

B. Importing the wrong package

C. The derived class is not overloaded    

D. Dangerous pointers are called

8. Suppose you are participating in a Chinese New Year lottery game, and the host puts 1 yuan, 1 yuan and 1000 yuan in three red envelopes respectively. Whichever one you choose, you can receive the corresponding money. After you choose a red envelope, the host will open the remaining two red envelopes alone, and then show you the one with one dollar. At this time, I will give you a chance to choose another red envelope. My question is: should I change it?

A. change

B. do not change

C. It can be changed, but it is not necessary

D. can

9. LeetCode's No. 9 problem is to solve palindrome numbers. It has many solutions. The solution of the animation below belongs to ( )

A. Language solution

B. Mathematical solution

C. English solution

D. Sports solution

10. Who is the earliest proposer of binary thought? ()

A. Newton

B. Leibniz

C. Alan Mathison Turing

11. How are programmers trained? ()

A. willing to suffer

B. Learning never stops

C. lend a helping hand

Programmer's high school exam paper

Are you a coder or a coder? May wish to post the answer and discuss it together. (Some questions are open-ended, and the answer is not unique~)

Guess you like

Origin blog.csdn.net/mashibingjiaoyu/article/details/131166963