Coding Quiz Bank
365+ static quizzes — output, bug-fix, completion & reorder across 19 languages. XP and solved progress sync when you are signed in. Not a live code runner or judge sandbox.
Level 1 · Novice Coder
0 / 50 XP to next level
0
XP
0
day streak
0/365
solved · 0%
Wrong Comparison
This always returns True for None checks.
Language
Question type
Difficulty
Showing 365 of 365 challenges
JavaScript
Output Prediction
String Concatenation
What does this code print?
JavaScript
Output Prediction
Type Coercion
What is the output?
JavaScript
Output Prediction
Array Destructuring
What gets logged?
JavaScript
Output Prediction
Spread Operator
What is the result?
JavaScript
Output Prediction
Closure Trap
What does this log?
JavaScript
Bug Hunt
Off-by-One Error
This function should return the last element of an array, but it has a bug.
JavaScript
Bug Hunt
Equality Check Bug
This comparison always returns false even for matching values.
JavaScript
Bug Hunt
Async Await Missing
This function should wait for data but returns a Promise instead.
JavaScript
Code Completion
Arrow Function
Complete the arrow function that doubles a number.
JavaScript
Code Completion
Array Method Chain
Complete the chain to get names of adults.
JavaScript
Code Completion
Promise.all Pattern
Complete the code to fetch multiple URLs concurrently.
JavaScript
Code Reorder
Function Declaration
Arrange these lines to create a working function.
JavaScript
Code Reorder
Fetch API Pattern
Reorder to make a proper fetch call.
JavaScript
Code Reorder
Event Listener Setup
Reorder to properly set up a click counter.
Python
Output Prediction
List Slicing
What does this print?
Python
Output Prediction
String Multiply
What is the output?
Python
Output Prediction
Dictionary Comprehension
What does this produce?
Python
Output Prediction
Unpacking Values
What gets printed?
Python
Output Prediction
Mutable Default Argument
What happens when we call this twice?
Python
Bug Hunt
Indentation Error
This function has a bug preventing it from running.
Python
Bug Hunt
Integer Division Bug
This should return a float average but returns an integer.
Python
Bug Hunt
Scope Error in Loop
This should create 3 functions that print 0, 1, 2 but all print 2.
Python
Code Completion
List Comprehension
Complete the list comprehension for squares.
Python
Code Completion
Exception Handling
Complete the error handling pattern.
Python
Code Completion
Decorator Syntax
Complete the decorator pattern.
Python
Code Reorder
Class Definition
Arrange to create a proper Python class.
Python
Code Reorder
File Reading Pattern
Reorder to read a file properly.
Java
Output Prediction
String Comparison
What does this print?
Java
Output Prediction
Array Length
What is the output?
Java
Output Prediction
Integer Caching
What does this comparison return?
Java
Bug Hunt
Missing Semicolon
This code won't compile. Find the fix.
Java
Bug Hunt
String Equality Bug
This always returns false for matching strings.
Java
Code Completion
Main Method Signature
Complete the Java main method.
Java
Code Completion
Enhanced For Loop
Complete the enhanced for loop.
Java
Code Reorder
Simple Class
Arrange to create a valid Java class.
C++
Output Prediction
Vector Size
What does this output?
C++
Output Prediction
Reference vs Copy
What is the output?
C++
Output Prediction
Pointer Arithmetic
What is printed?
C++
Bug Hunt
Missing Include
This code won't compile. What's missing?
C++
Code Completion
Auto Keyword
Complete using the auto keyword.
C++
Code Completion
Range-Based For
Complete the range-based for loop.
TypeScript
Output Prediction
Type Assertion
What does this output?
TypeScript
Output Prediction
Optional Chaining
What is the output?
TypeScript
Output Prediction
Enum Values
What does this output?
TypeScript
Bug Hunt
Missing Type Annotation
This function has a type error.
TypeScript
Code Completion
Interface Definition
Complete the interface.
TypeScript
Code Completion
Generic Function
Complete the generic function.
TypeScript
Code Reorder
Type Guard Pattern
Arrange to create a proper type guard.
SQL
Output Prediction
COUNT Function
What does this query return?
SQL
Output Prediction
NULL Comparison
How many rows does this return if 3 users have NULL email?
SQL
Output Prediction
GROUP BY with HAVING
What does this query do?
SQL
Bug Hunt
Wrong Wildcard
This LIKE query finds no matches.
SQL
Code Completion
JOIN Clause
Complete the JOIN query.
SQL
Code Completion
Subquery Pattern
Complete the subquery.
SQL
Code Reorder
Complete SELECT Query
Arrange the SQL clauses in correct order.
JavaScript
Output Prediction
Boolean Conversion
What is the output?
JavaScript
Output Prediction
Object Keys
What does this log?
JavaScript
Output Prediction
Promise.race
What gets logged?
Python
Output Prediction
String Methods
What is the output?
Python
Output Prediction
Zip Function
What does this produce?
TypeScript
Output Prediction
Const Assertion
What is the type of colors?
TypeScript
Bug Hunt
Null Check Missing
This crashes when user is null.
Java
Output Prediction
Ternary Operator
What does this print?
Java
Output Prediction
StringBuilder
What is the output?
C++
Output Prediction
String Length
What does this output?
C++
Output Prediction
Map Insertion
What is printed?
SQL
Output Prediction
DISTINCT Keyword
What does DISTINCT do?
SQL
Bug Hunt
GROUP BY Error
This query fails. What's wrong?
JavaScript
Output Prediction
Template Literals
What is the output?
JavaScript
Output Prediction
NaN Comparison
What does this log?
Python
Output Prediction
Generator Expression
What is the output?
Python
Code Completion
F-String Format
Complete the f-string.
Java
Code Completion
Stream API
Complete the stream operation.
C++
Bug Hunt
Dangling Reference
This function returns a dangerous reference.
SQL
Code Completion
Window Function
Complete the window function.
TypeScript
Code Completion
Mapped Type
Complete the mapped type.
JavaScript
Bug Hunt
Const Reassignment
This code throws an error.
Python
Bug Hunt
Wrong Comparison
This always returns True for None checks.
Java
Bug Hunt
ConcurrentModificationException
This crashes when removing items while iterating.
Python
Code Reorder
Context Manager
Arrange the custom context manager.
C++
Code Reorder
Class with Constructor
Arrange the C++ class properly.
TypeScript
Code Reorder
Generic Class
Arrange the generic stack class.
SQL
Code Reorder
Complex Query
Arrange this analytics query.
HTML
Output Prediction
Heading Tag
What does this render?
HTML
Output Prediction
Anchor Tag
What does this create?
HTML
Output Prediction
Input Placeholder
What attribute shows hint text inside an input?
HTML
Bug Hunt
Missing Alt Attribute
This image is missing an accessibility attribute.
HTML
Bug Hunt
Unclosed Tag
This HTML is broken. Find the bug.
HTML
Code Completion
DOCTYPE Declaration
Complete the HTML5 document declaration.
HTML
Code Completion
Semantic Section
Complete the semantic HTML for navigation.
HTML
Code Reorder
HTML Boilerplate
Arrange the HTML document structure.
CSS
Output Prediction
Box Model
What is the total rendered width of this element?
CSS
Output Prediction
Specificity Winner
Which rule applies to <p class='text' id='main'>?
CSS
Bug Hunt
Flexbox Direction
Items should be in a row but they stack vertically.
CSS
Bug Hunt
Z-index Not Working
The z-index has no effect on this element.
CSS
Code Completion
Center with Flexbox
Complete to center content both ways.
CSS
Code Completion
CSS Variable
Complete the CSS custom property usage.
CSS
Code Reorder
Media Query
Arrange the responsive CSS rule.
PHP
Output Prediction
Variable Concatenation
What does this output?
PHP
Output Prediction
Array Functions
What is the output?
PHP
Bug Hunt
Missing Dollar Sign
This PHP code has a syntax error.
PHP
Bug Hunt
SQL Injection Risk
This query is vulnerable to SQL injection.
PHP
Code Completion
Echo Shorthand
Complete the PHP opening tag with echo shorthand.
PHP
Code Completion
Null Coalescing
Complete the null coalescing operator.
PHP
Code Reorder
PDO Query
Arrange the PDO prepared statement correctly.
C
Output Prediction
Printf Format
What does this print?
C
Output Prediction
Pointer Dereference
What is the output?
C
Output Prediction
sizeof Operator
On a 64-bit system, what is the output?
C
Bug Hunt
Missing Return Type
This function declaration is incomplete.
C
Bug Hunt
Memory Leak
This code allocates memory but has a bug.
C
Code Completion
Include Header
Complete to include the standard I/O header.
C
Code Completion
Struct Definition
Complete the struct keyword.
C
Code Reorder
Malloc Pattern
Arrange the correct memory allocation pattern.
React
Output Prediction
useState Initial Value
What is the initial value of count?
React
Output Prediction
useEffect Dependency
When does this effect run?
React
Bug Hunt
Missing Key Prop
This list renders but causes a console warning.
React
Bug Hunt
Stale Closure
The counter always shows 1, not the incremented value.
React
Code Completion
JSX Return
Complete the functional component.
React
Code Completion
useCallback Hook
Complete to memoize the handler.
React
Code Reorder
Component with Hook
Arrange a functional component with state.
Node.js
Output Prediction
HTTP Status
What HTTP status code means 'Not Found'?
Node.js
Output Prediction
Middleware Order
What does next() do in Express middleware?
Node.js
Bug Hunt
Missing Await
This async route doesn't wait for the database.
Node.js
Code Completion
Express Route
Complete the GET route definition.
Node.js
Code Completion
Environment Variable
Complete the environment variable access.
Node.js
Code Reorder
Express Setup
Arrange the Express server setup.
Solidity
Output Prediction
State Variable Visibility
Which visibility allows external access to this variable?
Solidity
Output Prediction
Modifier Effect
What does the onlyOwner modifier do?
Solidity
Bug Hunt
Missing Event Emit
This transfer function updates state but breaks off-chain tracking.
Solidity
Code Completion
Pragma Version
Complete the Solidity version pragma.
Solidity
Code Completion
Mapping Declaration
Complete the mapping for token balances.
C# / .NET
Output Prediction
String Interpolation
What does this output?
C# / .NET
Output Prediction
LINQ Count
What does this return?
C# / .NET
Bug Hunt
Null Reference
This throws NullReferenceException.
C# / .NET
Code Completion
Async Method
Complete the async method signature.
C# / .NET
Code Completion
LINQ Select
Complete the LINQ projection.
Django
Output Prediction
ORM Query
What does this Django ORM call return?
Django
Output Prediction
Model Meta Ordering
In what order are posts returned by default?
Django
Bug Hunt
Missing Migration
Model changes aren't reflected in the database.
Django
Code Completion
URL Pattern
Complete the URL pattern function.
Django
Code Completion
Model ForeignKey
Complete the relationship field.
Laravel
Output Prediction
Eloquent All
What does this return?
Laravel
Output Prediction
Route Helper
What does this generate?
Laravel
Bug Hunt
Mass Assignment
This creates a user but throws MassAssignmentException.
Laravel
Code Completion
Auth Middleware
Complete the route middleware for authentication.
Laravel
Code Completion
Eloquent Where
Complete the query to find active users.
AI & ML
Output Prediction
Train-Test Split
What does test_size=0.2 mean?
AI & ML
Output Prediction
Model Accuracy
What does model.score() return?
AI & ML
Bug Hunt
Data Leakage
This code has data leakage. Find the bug.
AI & ML
Code Completion
Pandas Read CSV
Complete the data loading function.
AI & ML
Code Completion
Model Compile
Complete the Keras model compilation.
Testing & QA
Output Prediction
toBe vs toEqual
Which assertion compares object structure?
Testing & QA
Output Prediction
Mock Return Value
What does mockFn() return?
Testing & QA
Bug Hunt
Missing Async Await
This test always passes even when the promise rejects.
Testing & QA
Code Completion
Jest Assertion
Complete the assertion to check the value.
Testing & QA
Code Completion
Testing Library Query
Complete to find an element by its text.
Testing & QA
Code Reorder
AAA Pattern
Arrange the Arrange-Act-Assert test pattern.
HTML
Output Prediction
Form Method
What HTTP method does this form use by default if method is omitted?
HTML
Bug Hunt
Broken Script Load
The script runs before the DOM is ready.
HTML
Code Completion
ARIA Role
Complete the ARIA role for a dialog.
CSS
Output Prediction
CSS Grid Columns
How many equal columns does this create?
CSS
Bug Hunt
Animation Not Running
This animation is defined but never plays.
CSS
Code Completion
Pseudo-element
Complete the pseudo-element for content before an element.
PHP
Output Prediction
Strict Comparison
What is the result of this comparison?
PHP
Bug Hunt
Session Not Started
Session data is not saved.
PHP
Code Completion
Array Map
Complete the array_map call to double values.
C
Output Prediction
String vs Char
What is the difference between these two declarations?
C
Bug Hunt
Buffer Overflow
This code has a dangerous security vulnerability.
C
Code Completion
Function Pointer
Complete the function pointer declaration.
React
Output Prediction
useMemo Return
When does useMemo recompute?
React
Bug Hunt
Infinite Loop
This component re-renders infinitely.
React
Code Completion
Context Consumer
Complete the hook to consume context.
Node.js
Output Prediction
Event Loop Priority
In what order do these execute?
Node.js
Bug Hunt
Unhandled Rejection
This promise error crashes the process.
Node.js
Code Completion
Mongoose Schema
Complete the Mongoose model export.
Solidity
Output Prediction
msg.value Usage
What does msg.value contain in a payable function?
Solidity
Bug Hunt
Reentrancy Vulnerability
This withdraw function is vulnerable to reentrancy.
Solidity
Code Reorder
ERC-20 Transfer
Arrange the safe ERC-20 transfer logic.
C# / .NET
Output Prediction
Value vs Reference
What is x after this code?
C# / .NET
Bug Hunt
Deadlock Risk
This async code can deadlock in ASP.NET.
C# / .NET
Code Reorder
LINQ Pipeline
Arrange the LINQ query to get top 3 names.
Django
Output Prediction
get_object_or_404
What happens when the object isn't found?
Django
Bug Hunt
N+1 Query
This view runs 1 + N queries for N posts.
Django
Code Reorder
Class-Based View
Arrange the Django class-based view.
Laravel
Output Prediction
Eager Loading
What problem does with() solve?
Laravel
Bug Hunt
CSRF Missing
This form submits but gets a 419 error.
Laravel
Code Reorder
API Resource Route
Arrange creating and responding to a resource.
AI & ML
Output Prediction
Overfitting Sign
What does this pattern indicate?
AI & ML
Bug Hunt
Wrong Loss Function
This binary classifier uses the wrong loss.
AI & ML
Code Reorder
ML Pipeline
Arrange the standard ML workflow.
Testing & QA
Output Prediction
beforeEach Purpose
What is beforeEach used for?
Testing & QA
Bug Hunt
Test Pollution
Tests pass individually but fail when run together.
Testing & QA
Code Reorder
Mock Setup
Arrange Jest mock setup correctly.
Python
Output Prediction
Class Inheritance MRO
What does this print?
Java
Output Prediction
Default int Value
What is the default value of an int field in a class?
Java
Output Prediction
Static Method Call
What does this print?
Java
Output Prediction
Autoboxing Trap
What does this print?
Java
Bug Hunt
NullPointerException
This code crashes with NPE.
Java
Bug Hunt
Checked Exception Unhandled
This code won't compile.
Java
Code Completion
Optional Chaining
Complete to safely get value from Optional.
Java
Code Completion
Lambda Comparator
Complete the lambda to sort by name length.
Java
Code Reorder
Try-With-Resources
Arrange the try-with-resources pattern.
Java
Code Reorder
Builder Pattern
Arrange the builder pattern call correctly.
SQL
Output Prediction
ORDER BY Default
In what order does this return results?
SQL
Output Prediction
LEFT JOIN Nulls
What happens to customers with no orders in this query?
SQL
Output Prediction
CTE Result
What does this CTE query return?
SQL
Bug Hunt
UPDATE Without WHERE
This UPDATE is dangerous. What's wrong?
SQL
Bug Hunt
Aggregate Without GROUP BY
This query fails when mixing aggregate and non-aggregate columns.
SQL
Code Completion
NULL Check
Complete to find rows where email is missing.
SQL
Code Completion
CASE Expression
Complete the CASE expression.
SQL
Code Completion
ROW_NUMBER Window
Complete the window function to number rows per department.
SQL
Code Reorder
INSERT Statement
Arrange a valid INSERT statement.
SQL
Code Reorder
Transaction Block
Arrange a safe database transaction.
HTML
Output Prediction
Button Type Default
What type does a button have by default inside a form?
HTML
Output Prediction
Table Cell Span
How many columns does this cell occupy?
HTML
Output Prediction
Meta Viewport
What does this meta tag do on mobile?
HTML
Bug Hunt
Label Not Linked
Clicking the label doesn't focus the input.
HTML
Bug Hunt
Broken Image Path
The image shows a broken icon.
HTML
Bug Hunt
Duplicate IDs
JavaScript only finds one of these elements.
HTML
Code Completion
Checkbox Input
Complete the checkbox input type.
HTML
Code Completion
Data Attribute
Complete the custom data attribute.
HTML
Code Reorder
HTML Table Structure
Arrange the correct table structure.
HTML
Code Completion
Open Graph Meta
Complete the Open Graph property for the page title.
TypeScript
Output Prediction
Union Type Check
What is the type of x?
TypeScript
Output Prediction
Partial Utility Type
What does Partial<User> do?
TypeScript
Output Prediction
Discriminated Union
How does TypeScript narrow this union?
TypeScript
Bug Hunt
Type Mismatch
TypeScript reports an error on this assignment.
TypeScript
Bug Hunt
Index Signature Error
This object access gives a TypeScript error.
TypeScript
Bug Hunt
Missing Return in Union
TypeScript reports not all code paths return a value.
TypeScript
Code Completion
Pick Utility Type
Complete to pick only name and email from User.
TypeScript
Code Completion
Infer in Conditional
Complete the conditional type to extract the return type.
TypeScript
Code Reorder
Zod Schema Validation
Arrange the Zod schema parse pattern.
TypeScript
Code Completion
Readonly Array
Complete the type for an immutable string array.
C
Output Prediction
Character Arithmetic
What does this print?
C
Output Prediction
Array Decay
What does sizeof print for the pointer?
C
Output Prediction
Bitwise AND
What is the result?
C
Bug Hunt
Uninitialized Variable
This code has undefined behavior.
C
Bug Hunt
Off-by-One in Loop
This loop writes past the array boundary.
C
Bug Hunt
Double Free
This code causes heap corruption.
C
Code Completion
Scanf Input
Complete the scanf format for reading an integer.
C
Code Completion
Typedef Struct
Complete the typedef to create a Point type.
C
Code Reorder
Linked List Node
Arrange the linked list node creation.
C
Code Reorder
File Write Pattern
Arrange to safely write to a file.
CSS
Output Prediction
Inheritance
Does the <p> inherit the parent color?
CSS
Output Prediction
Position Absolute
What is this element positioned relative to?
CSS
Output Prediction
Stacking Context
Which element appears on top?
CSS
Bug Hunt
Width on Inline Element
The width has no effect on this element.
CSS
Bug Hunt
Margin Collapsing
Two vertical margins of 20px overlap giving 20px, not 40px.
CSS
Bug Hunt
Subgrid Missing
Grid items don't align to parent grid columns.
CSS
Code Completion
Font Import
Complete to import a Google Font.
CSS
Code Completion
Transition Property
Complete to animate opacity on hover.
CSS
Code Reorder
Custom Property Usage
Arrange the CSS custom property declaration and usage.
CSS
Code Completion
Calc Function
Complete to make an element fill remaining width.
PHP
Output Prediction
String Functions
What does this return?
PHP
Output Prediction
Type Coercion
What does this output?
PHP
Output Prediction
Static Property
What does this print?
PHP
Bug Hunt
Undefined Index
This causes a PHP notice/warning.
PHP
Bug Hunt
Wrong String Comparison
This comparison gives unexpected results.
PHP
Bug Hunt
Missing Exception Handling
Database errors crash the application.
PHP
Code Completion
Array Push
Complete to add an element to an array.
PHP
Code Completion
Heredoc Syntax
Complete the heredoc opening delimiter.
PHP
Code Reorder
OOP Constructor
Arrange the PHP class with constructor.
PHP
Code Reorder
Trait Usage
Arrange trait declaration and usage correctly.
C++
Output Prediction
Reference vs Copy
What does this print?
C++
Output Prediction
Vector Size vs Capacity
After push_back, what is v.size()?
C++
Output Prediction
Move Semantics
After std::move, what is the state of s1?
C++
Bug Hunt
Missing endl
Output doesn't appear immediately in some terminals.
C++
Bug Hunt
Raw Pointer Memory Leak
This code leaks memory.
C++
Bug Hunt
Slicing Problem
Derived class data is lost during assignment.
C++
Code Completion
Range-based For
Complete the range-based for loop.
C++
Code Completion
Smart Pointer
Complete the smart pointer type for exclusive ownership.
C++
Code Reorder
Lambda Capture
Arrange a lambda that captures and modifies a variable.
C++
Code Reorder
RAII File Handle
Arrange the RAII file handling pattern.
React
Output Prediction
Props Access
What does this component render?
React
Output Prediction
Conditional Rendering
What renders when isLoggedIn is false?
React
Output Prediction
useReducer Action
What is the state after dispatching this action?
React
Bug Hunt
State Mutation
The UI doesn't update when the array changes.
React
Bug Hunt
useEffect Cleanup
This component leaks a timer when unmounted.
React
Code Completion
Event Handler
Complete the click event handler.
React
Code Completion
Default Export
Complete the default export of a component.
React
Code Completion
useRef Access
Complete to access the DOM input element.
React
Code Reorder
Custom Hook
Arrange a custom hook that fetches data.
React
Code Reorder
Context Provider
Arrange Context API correctly.
Node.js
Output Prediction
require vs import
Which syntax is used in CommonJS modules?
Node.js
Output Prediction
Process Exit Code
What does process.exit(1) indicate?
Node.js
Output Prediction
Readable Stream
How is data read from a readable stream?
Node.js
Bug Hunt
Sync in Async Context
This blocks the event loop and degrades performance.
Node.js
Bug Hunt
Missing Error Handler
Express doesn't return errors to clients.
Node.js
Bug Hunt
CORS Not Set
Browser blocks requests from a different origin.
Node.js
Code Completion
Path Join
Complete to safely join file paths.
Node.js
Code Completion
JWT Sign
Complete to sign a JSON Web Token.
Node.js
Code Completion
Cluster Fork
Complete to spawn a worker process per CPU.
Node.js
Code Reorder
Middleware Chain
Arrange Express middleware in the correct order.
Node.js
Code Reorder
Async File Read
Arrange the async file reading pattern correctly.
Testing & QA
Output Prediction
Test File Naming
Which file naming convention does Jest auto-discover?
Testing & QA
Output Prediction
toHaveBeenCalledWith
What does this assertion check?
Testing & QA
Output Prediction
Coverage Metric
What does 80% branch coverage mean?
Testing & QA
Bug Hunt
Asserting Wrong Thing
This test always passes even with a bug.
Testing & QA
Bug Hunt
Snapshot Outdated
Tests fail after a legitimate UI change.
Testing & QA
Bug Hunt
Integration Test Flakiness
Tests randomly fail due to timing issues.
Testing & QA
Code Completion
Spy on Method
Complete to spy on the console.log method.
Testing & QA
Code Completion
Async Test
Complete the async test correctly.
Testing & QA
Code Completion
Custom Matcher
Complete to extend Jest with a custom matcher.
Testing & QA
Code Reorder
Given-When-Then
Arrange the BDD-style test structure.
Testing & QA
Code Reorder
E2E Test Flow
Arrange a Playwright/Cypress E2E test.
AI & ML
Output Prediction
Supervised vs Unsupervised
Which is supervised learning?
AI & ML
Output Prediction
Activation Function
What does ReLU return for input -3?
AI & ML
Output Prediction
Confusion Matrix TP
In a confusion matrix, what is a True Positive?
AI & ML
Bug Hunt
Feature Not Scaled
The model performs poorly despite good data.
AI & ML
Bug Hunt
Missing Feature Engineering
Model ignores the date column.
AI & ML
Bug Hunt
Class Imbalance Ignored
Model predicts majority class for almost all inputs.
AI & ML
Code Completion
Predict Method
Complete the prediction call.
AI & ML
Code Completion
DataFrame Shape
Complete to get the number of rows and columns.
AI & ML
Code Completion
Cross Validation
Complete the k-fold cross validation call.
AI & ML
Code Reorder
Data Preprocessing
Arrange the correct data preprocessing order.
AI & ML
Code Reorder
Neural Network Layers
Arrange Keras model layer order for image classification.
AI & ML
Output Prediction
Gradient Descent Direction
Which direction does gradient descent move?
C# / .NET
Output Prediction
Nullable Type
What does int? mean in C#?
C# / .NET
Output Prediction
String Comparison
What does this return?
C# / .NET
Output Prediction
Record Equality
What does this print?
C# / .NET
Bug Hunt
Unhandled Exception
This crashes on invalid input.
C# / .NET
Bug Hunt
LINQ Deferred Execution
The query result changes unexpectedly after modification.
C# / .NET
Bug Hunt
Interface Not Implemented
This code won't compile.
C# / .NET
Code Completion
String Interpolation
Complete the string interpolation.
C# / .NET
Code Completion
Null Conditional Operator
Complete to safely access a property.
C# / .NET
Code Completion
Dependency Injection
Complete the constructor injection registration.
C# / .NET
Code Reorder
LINQ Query Chain
Arrange the LINQ query correctly.
C# / .NET
Code Reorder
Entity Framework Query
Arrange the EF Core query pattern.
C# / .NET
Output Prediction
Pattern Matching Switch
What does this print when shape is a Circle?
Solidity
Output Prediction
Visibility Specifiers
Which visibility allows only the contract itself to call the function?
Solidity
Output Prediction
Mapping Default
What does a mapping return for a key that was never set?
Solidity
Output Prediction
msg.sender in Constructor
Who is msg.sender when a contract is deployed?
Solidity
Bug Hunt
Integer Overflow (old)
In Solidity <0.8.0, what is the risk here?
Solidity
Bug Hunt
Missing payable Modifier
This function can't receive ETH.
Solidity
Bug Hunt
Reentrancy Vulnerability
This withdraw function is vulnerable to reentrancy.
Solidity
Code Completion
Event Declaration
Complete the event declaration.
Solidity
Code Completion
Require Message
Complete the require with an error message.
Solidity
Code Completion
Custom Modifier
Complete the modifier to restrict access to the owner.
Solidity
Code Reorder
ERC-20 Transfer
Arrange the ERC-20 transfer logic correctly.
Solidity
Code Reorder
Contract Deployment Order
Arrange a proxy pattern deployment.
Solidity
Output Prediction
view vs pure
What is the difference between view and pure functions?
Django
Output Prediction
ORM Filter
What does this queryset return?
Django
Output Prediction
URL Namespace
What does this URL tag resolve to?
Django
Output Prediction
select_related Purpose
Why use select_related() here?
Django
Bug Hunt
Missing CSRF Token
POST form returns 403 Forbidden.
Django
Bug Hunt
Missing Migration
New model field doesn't appear in the database.
Django
Bug Hunt
N+1 Query Problem
This view makes too many database queries.
Django
Code Completion
Template Variable
Complete to render a variable in a Django template.
Django
Code Completion
Model String Representation
Complete to give the model a human-readable name.
Django
Code Completion
Class-Based View
Complete to create a list view for the Post model.
Django
Code Reorder
Form Processing View
Arrange the form processing logic correctly.
Django
Code Reorder
Custom Middleware
Arrange the middleware process_request pattern.
Django
Output Prediction
get_or_create Return
What does get_or_create return?
Laravel
Output Prediction
Eloquent All
What does this return?
Laravel
Output Prediction
Blade Directive
What does @auth output?
Laravel
Output Prediction
Route Model Binding
What is $post in this route?
Laravel
Bug Hunt
Missing CSRF in Form
POST form returns 419 error.
Laravel
Bug Hunt
Mass Assignment Blocked
Model fails to save with fillable error.
Laravel
Bug Hunt
N+1 in Blade
This loads too many queries in the loop.
Laravel
Code Completion
Route GET
Complete the basic GET route definition.
Laravel
Code Completion
Eloquent Where
Complete the query to find active users.
Laravel
Code Completion
Dispatch Job
Complete to dispatch a queued job.
Laravel
Code Reorder
API Resource Route
Arrange to register a full REST resource.
Laravel
Code Reorder
Service Provider Boot
Arrange the service provider structure.
Laravel
Output Prediction
firstOrFail vs find
What happens when firstOrFail() finds no record?
Keep sharpening your skills
365+ challenges across 19 languages. Earn XP, build streaks, and level up.