Fundamentals 12 min read

Can You Pass This Humorous Programmer Quiz? Test Your Coding Culture Knowledge

This article presents a playful yet comprehensive programming exam that includes multiple‑choice, fill‑in‑the‑blank, true/false, code‑reading, and essay questions covering debugging habits, Git practices, code review comments, and common developer myths, complete with answer keys and sample code snippets.

Java Tech Enthusiast
Java Tech Enthusiast
Java Tech Enthusiast
Can You Pass This Humorous Programmer Quiz? Test Your Coding Culture Knowledge

Exam Instructions

Time limit: 120 minutes

Open‑ended brain‑teaser test, total score 1024 points

Allowed tools: VS Code, DeepSeek, ChatGPT (no boss‑written solutions)

Answer time is unlimited; submit when finished, but ensure the computer does not blue‑screen

Section 1 – Multiple Choice (20 points each, total 400 points)

1. Which is the most commonly used debugging method for programmers?

A. Read the documentation carefully

B. Superstitious head‑shaking + prayer

C. Add

print(1)

or

console.log("1")

D. Restart the computer

2. When your code crashes in production but runs fine locally, you would say:

A. "This is impossible!"

B. "It works on my machine"

C. "It must be an environment issue"

D. All of the above

3. Which sentence scares programmers the most?

A. "We value this project highly"

B. "It's not urgent, just do it quickly"

C. "You can refer to the competitor"

D. "We might go into AI soon"

4. Estimating the time needed for a feature, the correct method is:

A. Analyze requirements carefully and give an accurate estimate

B. Multiply the initial estimate by π

C. State a number then say "but..."

D. Ask the product manager, "How fast? If you can, do it yourself"

5. The proper reaction to legacy code is:

A. Study the code logic carefully

B. "Whose garbage code is this?"

C. Check

git blame

D. Realize you wrote it and say "There must have been a reason"

6. The statement programmers fear most is:

A. "This feature is simple"

B. "Just change it"

C. "It's the same as before"

D. "No testing needed"

7. Which is NOT a valid error‑handling approach?

A. try‑catch

B. Return error code

C. Log and continue execution

D. Pretend you didn’t see it

8. Which behavior is most likely considered "working"?

A. Writing code

B. Writing weekly report

C. Opening IDE for half a day

D. Using Figma to make PPT

9. When will programmers voluntarily write documentation?

A. Before project launch

B. When code review requires it

C. During newcomer handover

D. Never

10. What does a Git commit message "fix bug" indicate?

A. The programmer fixed a clear issue

B. The programmer is professional and concise

C. The programmer was lazy to write details

D. The commit may contain three unrelated changes

11. When a programmer says "this requirement is a bit complex" it usually means:

A. Needs careful architectural design

B. Needs more time

C. Doesn’t know how to proceed

D. Wants a raise

12. Which is a programmer’s superpower?

A. Focusing on code in a noisy environment

B. Spotting logical errors instantly

C. Using a new framework without reading docs

D. Delaying a "5‑minute" task to next week

13. The most common comment in code review is:

A. "Logic is clear, good job"

B. "Can be optimized"

C. "Why not use pattern X?"

D. "LGTM"

14. Which operation do programmers consider the most dangerous?

A.

rm -rf /

B.

DROP TABLE users;

C.

git push --force

D. Modifying code directly in production

15. Which is NOT a programmer’s catchphrase?

A. "Strange, it was fine just now"

B. "This isn’t my problem"

C. "Let me check the logs"

D. "User experience is most important"

16. A programmer’s desktop wallpaper is most likely:

A. Family photo

B. Landscape picture

C. Pure black

D. Code screenshot

17. Which phrase best reflects a programmer’s optimism?

A. "This bug should be easy to fix"

B. "Just refactor it"

C. "The next version will be fine"

D. "No one will use it that way"

18. The work programmers most dislike is:

A. Writing unit tests

B. Maintaining legacy code

C. Attending requirement meetings

D. Explaining technical issues to non‑technical people

19. Which criterion best judges code quality?

A. Fast execution speed

B. Low memory usage

C. Looks cool

D. Understandable after six months

20. When a programmer says "this feature is 99% done" it still needs:

A. 1% more work

B. 10% more work

C. 50% more work

D. Start over

Section 2 – Fill‑in‑the‑Blank (20 points each, total 140 points)

6. The three virtues of programmers are laziness, impatience, and ________.

7. Complete the classic dialogue:

<code>Product manager: "This feature is simple, just ____ it."</code>

8. According to Murphy’s Law, if code can fail, it will fail ________ and will fail at ________.

9. After 10 years of coding, you will find: the only constant is ________, and what always changes is ________.

10. After writing a regular expression, a programmer usually needs to ________.

Section 3 – True/False (20 points each, total 100 points)

11. Comments are for others; you will always remember your own code. ( )

12. Copy‑paste is not a programming skill but a survival skill. ( )

13. "If it runs, it’s fine" is an acceptable development philosophy. ( )

14. AI (Claude/DeepSeek/ChatGPT) is a programmer’s second brain. ( )

15. The best time to refactor code is the day before launch. ( )

Section 4 – Code Reading (200 points)

1. Can the following code run? Why?

<code>let flag = false;
if (flag = true) {
  console.log("上线!");
}
</code>

2. What is the output of the following code and why?

<code>a = 0.1 + 0.2
print(a == 0.3)
</code>

Section 5 – Essay (Open‑ended, 184 points)

Boss asks you to finish three months of work in one week and deliver bug‑free. How would you gracefully refuse? (At least 800 words)

Answer Key (for reference)

Multiple‑choice answers: 1‑C, 2‑D, 3‑B, 4‑D, 5‑C, 6‑D, 7‑C, 8‑A, 9‑B, 10‑D, 11‑B, 12‑B, 13‑C, 14‑D, 15‑D, 16‑D, 17‑C, 18‑B, 19‑D, 20‑A.

Fill‑in‑blank answers: 6‑pride, 7‑add a button/ change colour/ adjust API, 8‑certain; most unsuitable, 9‑bug; requirement, 10‑take a one‑hour break.

True/False answers: 11‑False, 12‑True, 13‑False, 14‑True, 15‑False.

Code reading: The first snippet logs "上线!" because the assignment inside the

if

makes

flag

true. The second snippet prints

False

due to floating‑point precision.

debuggingsoftware engineeringCode Reviewgitprogramming quiz
Java Tech Enthusiast
Written by

Java Tech Enthusiast

Sharing computer programming language knowledge, focusing on Java fundamentals, data structures, related tools, Spring Cloud, IntelliJ IDEA... Book giveaways, red‑packet rewards and other perks await!

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.