- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
Python quizzes: #gotchas
17 quizzes about #gotchas, with an explanation for every answer.
5
Type Conversion
Medium
Find out where
int(), float(), str() and round() surprise people.
Python · Python Basics
#casting#gotchas
10 questions · ~6 min
Not started
Start
5
Copying vs Referencing
Hard
Find out when two names share one list and when you really have a copy.
Python · Lists & Tuples
#mutability#gotchas#interview
10 questions · ~8 min
Not started
Start
2
Default & Keyword Arguments
Medium
Use default values and keyword arguments, and avoid the mutable default trap.
Python · Functions
#arguments#gotchas
10 questions · ~6 min
Not started
Start
4
Scope & global
Hard
Local and global names, nonlocal, closures and the UnboundLocalError trap.
Python · Functions
#scope#closures#gotchas
10 questions · ~8 min
Not started
Start
5
Find the Bug
Hard
Spot the classic Python gotchas behind code that runs but gives the wrong answer.
Python · Errors & Debugging
#debugging#gotchas#interview
10 questions · ~8 min
Not started
Start
3
Tricky Python Questions
Hard
Real Python gotchas that catch even experienced developers in interviews.
Python · Python Interview Questions
#gotchas#interview
10 questions · ~8 min
Not started
Start
2
Sorting Gotchas
Medium
Learn why
[10, 1, 5].sort() surprises people and how to sort numbers, strings and objects correctly.
JavaScript · Arrays & Objects
#arrays#sorting#gotchas
10 questions · ~6 min
Not started
Start
2
Tricky JavaScript Questions
Hard
The JavaScript gotchas that trip up even experienced developers in interviews.
JavaScript · JavaScript Interview Questions
#gotchas#interview
10 questions · ~8 min
Not started
Start
4
Autoboxing & Wrapper Classes
Hard
Catch the Integer cache, null unboxing and other autoboxing traps before they reach production.
Java · Strings, Arrays & Wrappers
#wrappers#gotchas
10 questions · ~8 min
Not started
Start
4
Iterators & ConcurrentModificationException
Hard
Remove elements while looping without ConcurrentModificationException, skipped items or surprises.
Java · Java Collections
#collections#gotchas
10 questions · ~8 min
Not started
Start
3
Tricky Java Questions
Hard
Real Java gotchas from interviews, each one a short program that does not do what it seems to.
Java · Java Interview Questions
#gotchas#interview
10 questions · ~8 min
Not started
Start
4
Type Casting & Integer Promotion
Medium
See how C converts between types, from explicit casts to the hidden promotions in every expression.
C · C Basics
#casting#gotchas
10 questions · ~6 min
Not started
Start
2
Tricky C Questions
Hard
Real C gotchas from interviews, where the obvious answer is wrong.
C · C Interview Questions
#gotchas#interview
10 questions · ~8 min
Not started
Start
4
Join Pitfalls
Hard
Catch the join mistakes that silently duplicate rows, lose rows or inflate totals.
SQL · SQL Joins
#joins#gotchas
10 questions · ~8 min
Not started
Start
2
SQL Output Prediction
Medium
Read short SQL queries and predict their exact output, including the classic interview traps.
SQL · SQL Interview Questions
#output-prediction#gotchas
10 questions · ~6 min
Not started
Start
3
Tricky NULL Questions
Hard
Master the NULL traps interviewers love, from NOT IN and three-valued logic to aggregates and sorting.
SQL · SQL Interview Questions
#null#gotchas
10 questions · ~8 min
Not started
Start
3
Tricky CSS Questions
Hard
Real CSS gotchas about stacking contexts, margins, percentages and sticky positioning.
HTML & CSS · HTML & CSS Interview Questions
#gotchas#css#stacking-context
10 questions · ~8 min
Not started
Start