Skip to main content

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.

19 languages 4 question types Instant explanations
1

Level 1 · Novice Coder

0 / 50 XP to next level

0%

0

XP

0

day streak

0/365

solved · 0%

Problem of the Day 0 Day Streak

Wrong Comparison

This always returns True for None checks.

PythonEasy +20 XP (2x Daily Bonus)
Solve Today's Challenge

Language

Question type

Difficulty

Showing 365 of 365 challenges

JavaScript

Output Prediction

#js-out-1

String Concatenation

What does this code print?

Easy 10 XP
Solve

JavaScript

Output Prediction

#js-out-2

Type Coercion

What is the output?

Easy 10 XP
Solve

JavaScript

Output Prediction

#js-out-3

Array Destructuring

What gets logged?

Medium 20 XP
Solve

JavaScript

Output Prediction

#js-out-4

Spread Operator

What is the result?

Medium 20 XP
Solve

JavaScript

Output Prediction

#js-out-5

Closure Trap

What does this log?

Hard 35 XP
Solve

JavaScript

Bug Hunt

#js-bug-1

Off-by-One Error

This function should return the last element of an array, but it has a bug.

Easy 10 XP
Solve

JavaScript

Bug Hunt

#js-bug-2

Equality Check Bug

This comparison always returns false even for matching values.

Medium 20 XP
Solve

JavaScript

Bug Hunt

#js-bug-3

Async Await Missing

This function should wait for data but returns a Promise instead.

Hard 35 XP
Solve

JavaScript

Code Completion

#js-comp-1

Arrow Function

Complete the arrow function that doubles a number.

Easy 10 XP
Solve

JavaScript

Code Completion

#js-comp-2

Array Method Chain

Complete the chain to get names of adults.

Medium 20 XP
Solve

JavaScript

Code Completion

#js-comp-3

Promise.all Pattern

Complete the code to fetch multiple URLs concurrently.

Hard 35 XP
Solve

JavaScript

Code Reorder

#js-reorder-1

Function Declaration

Arrange these lines to create a working function.

Easy 10 XP
Solve

JavaScript

Code Reorder

#js-reorder-2

Fetch API Pattern

Reorder to make a proper fetch call.

Medium 20 XP
Solve

JavaScript

Code Reorder

#js-reorder-3

Event Listener Setup

Reorder to properly set up a click counter.

Hard 35 XP
Solve

Python

Output Prediction

#py-out-1

List Slicing

What does this print?

Easy 10 XP
Solve

Python

Output Prediction

#py-out-2

String Multiply

What is the output?

Easy 10 XP
Solve

Python

Output Prediction

#py-out-3

Dictionary Comprehension

What does this produce?

Medium 20 XP
Solve

Python

Output Prediction

#py-out-4

Unpacking Values

What gets printed?

Medium 20 XP
Solve

Python

Output Prediction

#py-out-5

Mutable Default Argument

What happens when we call this twice?

Hard 35 XP
Solve

Python

Bug Hunt

#py-bug-1

Indentation Error

This function has a bug preventing it from running.

Easy 10 XP
Solve

Python

Bug Hunt

#py-bug-2

Integer Division Bug

This should return a float average but returns an integer.

Medium 20 XP
Solve

Python

Bug Hunt

#py-bug-3

Scope Error in Loop

This should create 3 functions that print 0, 1, 2 but all print 2.

Hard 35 XP
Solve

Python

Code Completion

#py-comp-1

List Comprehension

Complete the list comprehension for squares.

Easy 10 XP
Solve

Python

Code Completion

#py-comp-2

Exception Handling

Complete the error handling pattern.

Medium 20 XP
Solve

Python

Code Completion

#py-comp-3

Decorator Syntax

Complete the decorator pattern.

Hard 35 XP
Solve

Python

Code Reorder

#py-reorder-1

Class Definition

Arrange to create a proper Python class.

Easy 10 XP
Solve

Python

Code Reorder

#py-reorder-2

File Reading Pattern

Reorder to read a file properly.

Medium 20 XP
Solve

Java

Output Prediction

#java-out-1

String Comparison

What does this print?

Easy 10 XP
Solve

Java

Output Prediction

#java-out-2

Array Length

What is the output?

Medium 20 XP
Solve

Java

Output Prediction

#java-out-3

Integer Caching

What does this comparison return?

Hard 35 XP
Solve

Java

Bug Hunt

#java-bug-1

Missing Semicolon

This code won't compile. Find the fix.

Easy 10 XP
Solve

Java

Bug Hunt

#java-bug-2

String Equality Bug

This always returns false for matching strings.

Medium 20 XP
Solve

Java

Code Completion

#java-comp-1

Main Method Signature

Complete the Java main method.

Easy 10 XP
Solve

Java

Code Completion

#java-comp-2

Enhanced For Loop

Complete the enhanced for loop.

Medium 20 XP
Solve

Java

Code Reorder

#java-reorder-1

Simple Class

Arrange to create a valid Java class.

Easy 10 XP
Solve

C++

Output Prediction

#cpp-out-1

Vector Size

What does this output?

Easy 10 XP
Solve

C++

Output Prediction

#cpp-out-2

Reference vs Copy

What is the output?

Medium 20 XP
Solve

C++

Output Prediction

#cpp-out-3

Pointer Arithmetic

What is printed?

Hard 35 XP
Solve

C++

Bug Hunt

#cpp-bug-1

Missing Include

This code won't compile. What's missing?

Easy 10 XP
Solve

C++

Code Completion

#cpp-comp-1

Auto Keyword

Complete using the auto keyword.

Easy 10 XP
Solve

C++

Code Completion

#cpp-comp-2

Range-Based For

Complete the range-based for loop.

Medium 20 XP
Solve

TypeScript

Output Prediction

#ts-out-1

Type Assertion

What does this output?

Easy 10 XP
Solve

TypeScript

Output Prediction

#ts-out-2

Optional Chaining

What is the output?

Medium 20 XP
Solve

TypeScript

Output Prediction

#ts-out-3

Enum Values

What does this output?

Hard 35 XP
Solve

TypeScript

Bug Hunt

#ts-bug-1

Missing Type Annotation

This function has a type error.

Easy 10 XP
Solve

TypeScript

Code Completion

#ts-comp-1

Interface Definition

Complete the interface.

Easy 10 XP
Solve

TypeScript

Code Completion

#ts-comp-2

Generic Function

Complete the generic function.

Medium 20 XP
Solve

TypeScript

Code Reorder

#ts-reorder-1

Type Guard Pattern

Arrange to create a proper type guard.

Medium 20 XP
Solve

SQL

Output Prediction

#sql-out-1

COUNT Function

What does this query return?

Easy 10 XP
Solve

SQL

Output Prediction

#sql-out-2

NULL Comparison

How many rows does this return if 3 users have NULL email?

Medium 20 XP
Solve

SQL

Output Prediction

#sql-out-3

GROUP BY with HAVING

What does this query do?

Hard 35 XP
Solve

SQL

Bug Hunt

#sql-bug-1

Wrong Wildcard

This LIKE query finds no matches.

Easy 10 XP
Solve

SQL

Code Completion

#sql-comp-1

JOIN Clause

Complete the JOIN query.

Easy 10 XP
Solve

SQL

Code Completion

#sql-comp-2

Subquery Pattern

Complete the subquery.

Medium 20 XP
Solve

SQL

Code Reorder

#sql-reorder-1

Complete SELECT Query

Arrange the SQL clauses in correct order.

Medium 20 XP
Solve

JavaScript

Output Prediction

#js-out-6

Boolean Conversion

What is the output?

Easy 10 XP
Solve

JavaScript

Output Prediction

#js-out-7

Object Keys

What does this log?

Medium 20 XP
Solve

JavaScript

Output Prediction

#js-out-8

Promise.race

What gets logged?

Hard 35 XP
Solve

Python

Output Prediction

#py-out-6

String Methods

What is the output?

Easy 10 XP
Solve

Python

Output Prediction

#py-out-7

Zip Function

What does this produce?

Medium 20 XP
Solve

TypeScript

Output Prediction

#ts-out-4

Const Assertion

What is the type of colors?

Easy 10 XP
Solve

TypeScript

Bug Hunt

#ts-bug-2

Null Check Missing

This crashes when user is null.

Medium 20 XP
Solve

Java

Output Prediction

#java-out-4

Ternary Operator

What does this print?

Easy 10 XP
Solve

Java

Output Prediction

#java-out-5

StringBuilder

What is the output?

Medium 20 XP
Solve

C++

Output Prediction

#cpp-out-4

String Length

What does this output?

Easy 10 XP
Solve

C++

Output Prediction

#cpp-out-5

Map Insertion

What is printed?

Medium 20 XP
Solve

SQL

Output Prediction

#sql-out-4

DISTINCT Keyword

What does DISTINCT do?

Easy 10 XP
Solve

SQL

Bug Hunt

#sql-bug-2

GROUP BY Error

This query fails. What's wrong?

Medium 20 XP
Solve

JavaScript

Output Prediction

#js-out-9

Template Literals

What is the output?

Easy 10 XP
Solve

JavaScript

Output Prediction

#js-out-10

NaN Comparison

What does this log?

Medium 20 XP
Solve

Python

Output Prediction

#py-out-8

Generator Expression

What is the output?

Hard 35 XP
Solve

Python

Code Completion

#py-comp-4

F-String Format

Complete the f-string.

Easy 10 XP
Solve

Java

Code Completion

#java-comp-3

Stream API

Complete the stream operation.

Hard 35 XP
Solve

C++

Bug Hunt

#cpp-bug-2

Dangling Reference

This function returns a dangerous reference.

Medium 20 XP
Solve

SQL

Code Completion

#sql-comp-3

Window Function

Complete the window function.

Hard 35 XP
Solve

TypeScript

Code Completion

#ts-comp-3

Mapped Type

Complete the mapped type.

Hard 35 XP
Solve

JavaScript

Bug Hunt

#js-bug-4

Const Reassignment

This code throws an error.

Easy 10 XP
Solve

Python

Bug Hunt

#py-bug-4

Wrong Comparison

This always returns True for None checks.

Easy 10 XP
Solve

Java

Bug Hunt

#java-bug-3

ConcurrentModificationException

This crashes when removing items while iterating.

Hard 35 XP
Solve

Python

Code Reorder

#py-reorder-3

Context Manager

Arrange the custom context manager.

Hard 35 XP
Solve

C++

Code Reorder

#cpp-reorder-1

Class with Constructor

Arrange the C++ class properly.

Medium 20 XP
Solve

TypeScript

Code Reorder

#ts-reorder-2

Generic Class

Arrange the generic stack class.

Hard 35 XP
Solve

SQL

Code Reorder

#sql-reorder-2

Complex Query

Arrange this analytics query.

Hard 35 XP
Solve

HTML

Output Prediction

#html-out-1

Heading Tag

What does this render?

Easy 10 XP
Solve

HTML

Output Prediction

#html-out-2

Anchor Tag

What does this create?

Easy 10 XP
Solve

HTML

Output Prediction

#html-out-3

Input Placeholder

What attribute shows hint text inside an input?

Medium 20 XP
Solve

HTML

Bug Hunt

#html-bug-1

Missing Alt Attribute

This image is missing an accessibility attribute.

Easy 10 XP
Solve

HTML

Bug Hunt

#html-bug-2

Unclosed Tag

This HTML is broken. Find the bug.

Medium 20 XP
Solve

HTML

Code Completion

#html-comp-1

DOCTYPE Declaration

Complete the HTML5 document declaration.

Easy 10 XP
Solve

HTML

Code Completion

#html-comp-2

Semantic Section

Complete the semantic HTML for navigation.

Medium 20 XP
Solve

HTML

Code Reorder

#html-reorder-1

HTML Boilerplate

Arrange the HTML document structure.

Medium 20 XP
Solve

CSS

Output Prediction

#css-out-1

Box Model

What is the total rendered width of this element?

Easy 10 XP
Solve

CSS

Output Prediction

#css-out-2

Specificity Winner

Which rule applies to <p class='text' id='main'>?

Medium 20 XP
Solve

CSS

Bug Hunt

#css-bug-1

Flexbox Direction

Items should be in a row but they stack vertically.

Easy 10 XP
Solve

CSS

Bug Hunt

#css-bug-2

Z-index Not Working

The z-index has no effect on this element.

Medium 20 XP
Solve

CSS

Code Completion

#css-comp-1

Center with Flexbox

Complete to center content both ways.

Easy 10 XP
Solve

CSS

Code Completion

#css-comp-2

CSS Variable

Complete the CSS custom property usage.

Medium 20 XP
Solve

CSS

Code Reorder

#css-reorder-1

Media Query

Arrange the responsive CSS rule.

Medium 20 XP
Solve

PHP

Output Prediction

#php-out-1

Variable Concatenation

What does this output?

Easy 10 XP
Solve

PHP

Output Prediction

#php-out-2

Array Functions

What is the output?

Medium 20 XP
Solve

PHP

Bug Hunt

#php-bug-1

Missing Dollar Sign

This PHP code has a syntax error.

Easy 10 XP
Solve

PHP

Bug Hunt

#php-bug-2

SQL Injection Risk

This query is vulnerable to SQL injection.

Medium 20 XP
Solve

PHP

Code Completion

#php-comp-1

Echo Shorthand

Complete the PHP opening tag with echo shorthand.

Easy 10 XP
Solve

PHP

Code Completion

#php-comp-2

Null Coalescing

Complete the null coalescing operator.

Medium 20 XP
Solve

PHP

Code Reorder

#php-reorder-1

PDO Query

Arrange the PDO prepared statement correctly.

Medium 20 XP
Solve

C

Output Prediction

#c-out-1

Printf Format

What does this print?

Easy 10 XP
Solve

C

Output Prediction

#c-out-2

Pointer Dereference

What is the output?

Medium 20 XP
Solve

C

Output Prediction

#c-out-3

sizeof Operator

On a 64-bit system, what is the output?

Hard 35 XP
Solve

C

Bug Hunt

#c-bug-1

Missing Return Type

This function declaration is incomplete.

Easy 10 XP
Solve

C

Bug Hunt

#c-bug-2

Memory Leak

This code allocates memory but has a bug.

Medium 20 XP
Solve

C

Code Completion

#c-comp-1

Include Header

Complete to include the standard I/O header.

Easy 10 XP
Solve

C

Code Completion

#c-comp-2

Struct Definition

Complete the struct keyword.

Medium 20 XP
Solve

C

Code Reorder

#c-reorder-1

Malloc Pattern

Arrange the correct memory allocation pattern.

Medium 20 XP
Solve

React

Output Prediction

#react-out-1

useState Initial Value

What is the initial value of count?

Easy 10 XP
Solve

React

Output Prediction

#react-out-2

useEffect Dependency

When does this effect run?

Medium 20 XP
Solve

React

Bug Hunt

#react-bug-1

Missing Key Prop

This list renders but causes a console warning.

Easy 10 XP
Solve

React

Bug Hunt

#react-bug-2

Stale Closure

The counter always shows 1, not the incremented value.

Medium 20 XP
Solve

React

Code Completion

#react-comp-1

JSX Return

Complete the functional component.

Easy 10 XP
Solve

React

Code Completion

#react-comp-2

useCallback Hook

Complete to memoize the handler.

Medium 20 XP
Solve

React

Code Reorder

#react-reorder-1

Component with Hook

Arrange a functional component with state.

Medium 20 XP
Solve

Node.js

Output Prediction

#node-out-1

HTTP Status

What HTTP status code means 'Not Found'?

Easy 10 XP
Solve

Node.js

Output Prediction

#node-out-2

Middleware Order

What does next() do in Express middleware?

Medium 20 XP
Solve

Node.js

Bug Hunt

#node-bug-1

Missing Await

This async route doesn't wait for the database.

Easy 10 XP
Solve

Node.js

Code Completion

#node-comp-1

Express Route

Complete the GET route definition.

Easy 10 XP
Solve

Node.js

Code Completion

#node-comp-2

Environment Variable

Complete the environment variable access.

Medium 20 XP
Solve

Node.js

Code Reorder

#node-reorder-1

Express Setup

Arrange the Express server setup.

Medium 20 XP
Solve

Solidity

Output Prediction

#sol-out-1

State Variable Visibility

Which visibility allows external access to this variable?

Easy 10 XP
Solve

Solidity

Output Prediction

#sol-out-2

Modifier Effect

What does the onlyOwner modifier do?

Medium 20 XP
Solve

Solidity

Bug Hunt

#sol-bug-1

Missing Event Emit

This transfer function updates state but breaks off-chain tracking.

Medium 20 XP
Solve

Solidity

Code Completion

#sol-comp-1

Pragma Version

Complete the Solidity version pragma.

Easy 10 XP
Solve

Solidity

Code Completion

#sol-comp-2

Mapping Declaration

Complete the mapping for token balances.

Medium 20 XP
Solve

C# / .NET

Output Prediction

#cs-out-1

String Interpolation

What does this output?

Easy 10 XP
Solve

C# / .NET

Output Prediction

#cs-out-2

LINQ Count

What does this return?

Medium 20 XP
Solve

C# / .NET

Bug Hunt

#cs-bug-1

Null Reference

This throws NullReferenceException.

Easy 10 XP
Solve

C# / .NET

Code Completion

#cs-comp-1

Async Method

Complete the async method signature.

Easy 10 XP
Solve

C# / .NET

Code Completion

#cs-comp-2

LINQ Select

Complete the LINQ projection.

Medium 20 XP
Solve

Django

Output Prediction

#django-out-1

ORM Query

What does this Django ORM call return?

Easy 10 XP
Solve

Django

Output Prediction

#django-out-2

Model Meta Ordering

In what order are posts returned by default?

Medium 20 XP
Solve

Django

Bug Hunt

#django-bug-1

Missing Migration

Model changes aren't reflected in the database.

Easy 10 XP
Solve

Django

Code Completion

#django-comp-1

URL Pattern

Complete the URL pattern function.

Easy 10 XP
Solve

Django

Code Completion

#django-comp-2

Model ForeignKey

Complete the relationship field.

Medium 20 XP
Solve

Laravel

Output Prediction

#laravel-out-1

Eloquent All

What does this return?

Easy 10 XP
Solve

Laravel

Output Prediction

#laravel-out-2

Route Helper

What does this generate?

Medium 20 XP
Solve

Laravel

Bug Hunt

#laravel-bug-1

Mass Assignment

This creates a user but throws MassAssignmentException.

Easy 10 XP
Solve

Laravel

Code Completion

#laravel-comp-1

Auth Middleware

Complete the route middleware for authentication.

Easy 10 XP
Solve

Laravel

Code Completion

#laravel-comp-2

Eloquent Where

Complete the query to find active users.

Medium 20 XP
Solve

AI & ML

Output Prediction

#aiml-out-1

Train-Test Split

What does test_size=0.2 mean?

Easy 10 XP
Solve

AI & ML

Output Prediction

#aiml-out-2

Model Accuracy

What does model.score() return?

Medium 20 XP
Solve

AI & ML

Bug Hunt

#aiml-bug-1

Data Leakage

This code has data leakage. Find the bug.

Medium 20 XP
Solve

AI & ML

Code Completion

#aiml-comp-1

Pandas Read CSV

Complete the data loading function.

Easy 10 XP
Solve

AI & ML

Code Completion

#aiml-comp-2

Model Compile

Complete the Keras model compilation.

Medium 20 XP
Solve

Testing & QA

Output Prediction

#qa-out-1

toBe vs toEqual

Which assertion compares object structure?

Easy 10 XP
Solve

Testing & QA

Output Prediction

#qa-out-2

Mock Return Value

What does mockFn() return?

Medium 20 XP
Solve

Testing & QA

Bug Hunt

#qa-bug-1

Missing Async Await

This test always passes even when the promise rejects.

Easy 10 XP
Solve

Testing & QA

Code Completion

#qa-comp-1

Jest Assertion

Complete the assertion to check the value.

Easy 10 XP
Solve

Testing & QA

Code Completion

#qa-comp-2

Testing Library Query

Complete to find an element by its text.

Medium 20 XP
Solve

Testing & QA

Code Reorder

#qa-reorder-1

AAA Pattern

Arrange the Arrange-Act-Assert test pattern.

Medium 20 XP
Solve

HTML

Output Prediction

#html-out-4

Form Method

What HTTP method does this form use by default if method is omitted?

Hard 35 XP
Solve

HTML

Bug Hunt

#html-bug-3

Broken Script Load

The script runs before the DOM is ready.

Hard 35 XP
Solve

HTML

Code Completion

#html-comp-3

ARIA Role

Complete the ARIA role for a dialog.

Hard 35 XP
Solve

CSS

Output Prediction

#css-out-3

CSS Grid Columns

How many equal columns does this create?

Hard 35 XP
Solve

CSS

Bug Hunt

#css-bug-3

Animation Not Running

This animation is defined but never plays.

Hard 35 XP
Solve

CSS

Code Completion

#css-comp-3

Pseudo-element

Complete the pseudo-element for content before an element.

Hard 35 XP
Solve

PHP

Output Prediction

#php-out-3

Strict Comparison

What is the result of this comparison?

Hard 35 XP
Solve

PHP

Bug Hunt

#php-bug-3

Session Not Started

Session data is not saved.

Hard 35 XP
Solve

PHP

Code Completion

#php-comp-3

Array Map

Complete the array_map call to double values.

Hard 35 XP
Solve

C

Output Prediction

#c-out-4

String vs Char

What is the difference between these two declarations?

Hard 35 XP
Solve

C

Bug Hunt

#c-bug-3

Buffer Overflow

This code has a dangerous security vulnerability.

Hard 35 XP
Solve

C

Code Completion

#c-comp-3

Function Pointer

Complete the function pointer declaration.

Hard 35 XP
Solve

React

Output Prediction

#react-out-3

useMemo Return

When does useMemo recompute?

Hard 35 XP
Solve

React

Bug Hunt

#react-bug-3

Infinite Loop

This component re-renders infinitely.

Hard 35 XP
Solve

React

Code Completion

#react-comp-3

Context Consumer

Complete the hook to consume context.

Hard 35 XP
Solve

Node.js

Output Prediction

#node-out-3

Event Loop Priority

In what order do these execute?

Hard 35 XP
Solve

Node.js

Bug Hunt

#node-bug-2

Unhandled Rejection

This promise error crashes the process.

Hard 35 XP
Solve

Node.js

Code Completion

#node-comp-3

Mongoose Schema

Complete the Mongoose model export.

Hard 35 XP
Solve

Solidity

Output Prediction

#sol-out-3

msg.value Usage

What does msg.value contain in a payable function?

Hard 35 XP
Solve

Solidity

Bug Hunt

#sol-bug-2

Reentrancy Vulnerability

This withdraw function is vulnerable to reentrancy.

Hard 35 XP
Solve

Solidity

Code Reorder

#sol-reorder-1

ERC-20 Transfer

Arrange the safe ERC-20 transfer logic.

Hard 35 XP
Solve

C# / .NET

Output Prediction

#cs-out-3

Value vs Reference

What is x after this code?

Hard 35 XP
Solve

C# / .NET

Bug Hunt

#cs-bug-2

Deadlock Risk

This async code can deadlock in ASP.NET.

Hard 35 XP
Solve

C# / .NET

Code Reorder

#cs-reorder-1

LINQ Pipeline

Arrange the LINQ query to get top 3 names.

Hard 35 XP
Solve

Django

Output Prediction

#django-out-3

get_object_or_404

What happens when the object isn't found?

Hard 35 XP
Solve

Django

Bug Hunt

#django-bug-2

N+1 Query

This view runs 1 + N queries for N posts.

Hard 35 XP
Solve

Django

Code Reorder

#django-reorder-1

Class-Based View

Arrange the Django class-based view.

Hard 35 XP
Solve

Laravel

Output Prediction

#laravel-out-3

Eager Loading

What problem does with() solve?

Hard 35 XP
Solve

Laravel

Bug Hunt

#laravel-bug-2

CSRF Missing

This form submits but gets a 419 error.

Hard 35 XP
Solve

Laravel

Code Reorder

#laravel-reorder-1

API Resource Route

Arrange creating and responding to a resource.

Hard 35 XP
Solve

AI & ML

Output Prediction

#aiml-out-3

Overfitting Sign

What does this pattern indicate?

Hard 35 XP
Solve

AI & ML

Bug Hunt

#aiml-bug-2

Wrong Loss Function

This binary classifier uses the wrong loss.

Hard 35 XP
Solve

AI & ML

Code Reorder

#aiml-reorder-1

ML Pipeline

Arrange the standard ML workflow.

Hard 35 XP
Solve

Testing & QA

Output Prediction

#qa-out-3

beforeEach Purpose

What is beforeEach used for?

Hard 35 XP
Solve

Testing & QA

Bug Hunt

#qa-bug-2

Test Pollution

Tests pass individually but fail when run together.

Hard 35 XP
Solve

Testing & QA

Code Reorder

#qa-reorder-2

Mock Setup

Arrange Jest mock setup correctly.

Hard 35 XP
Solve

Python

Output Prediction

#py-out-9

Class Inheritance MRO

What does this print?

Hard 35 XP
Solve

Java

Output Prediction

#java-out-6

Default int Value

What is the default value of an int field in a class?

Easy 10 XP
Solve

Java

Output Prediction

#java-out-7

Static Method Call

What does this print?

Medium 20 XP
Solve

Java

Output Prediction

#java-out-8

Autoboxing Trap

What does this print?

Hard 35 XP
Solve

Java

Bug Hunt

#java-bug-4

NullPointerException

This code crashes with NPE.

Medium 20 XP
Solve

Java

Bug Hunt

#java-bug-5

Checked Exception Unhandled

This code won't compile.

Hard 35 XP
Solve

Java

Code Completion

#java-comp-4

Optional Chaining

Complete to safely get value from Optional.

Medium 20 XP
Solve

Java

Code Completion

#java-comp-5

Lambda Comparator

Complete the lambda to sort by name length.

Hard 35 XP
Solve

Java

Code Reorder

#java-reorder-2

Try-With-Resources

Arrange the try-with-resources pattern.

Medium 20 XP
Solve

Java

Code Reorder

#java-reorder-3

Builder Pattern

Arrange the builder pattern call correctly.

Hard 35 XP
Solve

SQL

Output Prediction

#sql-out-5

ORDER BY Default

In what order does this return results?

Easy 10 XP
Solve

SQL

Output Prediction

#sql-out-6

LEFT JOIN Nulls

What happens to customers with no orders in this query?

Medium 20 XP
Solve

SQL

Output Prediction

#sql-out-7

CTE Result

What does this CTE query return?

Hard 35 XP
Solve

SQL

Bug Hunt

#sql-bug-3

UPDATE Without WHERE

This UPDATE is dangerous. What's wrong?

Easy 10 XP
Solve

SQL

Bug Hunt

#sql-bug-4

Aggregate Without GROUP BY

This query fails when mixing aggregate and non-aggregate columns.

Medium 20 XP
Solve

SQL

Code Completion

#sql-comp-3-null-check

NULL Check

Complete to find rows where email is missing.

Easy 10 XP
Solve

SQL

Code Completion

#sql-comp-4

CASE Expression

Complete the CASE expression.

Medium 20 XP
Solve

SQL

Code Completion

#sql-comp-5

ROW_NUMBER Window

Complete the window function to number rows per department.

Hard 35 XP
Solve

SQL

Code Reorder

#sql-reorder-3

INSERT Statement

Arrange a valid INSERT statement.

Medium 20 XP
Solve

SQL

Code Reorder

#sql-reorder-4

Transaction Block

Arrange a safe database transaction.

Hard 35 XP
Solve

HTML

Output Prediction

#html-out-5

Button Type Default

What type does a button have by default inside a form?

Easy 10 XP
Solve

HTML

Output Prediction

#html-out-6

Table Cell Span

How many columns does this cell occupy?

Medium 20 XP
Solve

HTML

Output Prediction

#html-out-7

Meta Viewport

What does this meta tag do on mobile?

Hard 35 XP
Solve

HTML

Bug Hunt

#html-bug-4

Label Not Linked

Clicking the label doesn't focus the input.

Easy 10 XP
Solve

HTML

Bug Hunt

#html-bug-5

Broken Image Path

The image shows a broken icon.

Medium 20 XP
Solve

HTML

Bug Hunt

#html-bug-6

Duplicate IDs

JavaScript only finds one of these elements.

Hard 35 XP
Solve

HTML

Code Completion

#html-comp-4

Checkbox Input

Complete the checkbox input type.

Easy 10 XP
Solve

HTML

Code Completion

#html-comp-5

Data Attribute

Complete the custom data attribute.

Medium 20 XP
Solve

HTML

Code Reorder

#html-reorder-2

HTML Table Structure

Arrange the correct table structure.

Hard 35 XP
Solve

HTML

Code Completion

#html-comp-6

Open Graph Meta

Complete the Open Graph property for the page title.

Hard 35 XP
Solve

TypeScript

Output Prediction

#ts-out-5

Union Type Check

What is the type of x?

Easy 10 XP
Solve

TypeScript

Output Prediction

#ts-out-6

Partial Utility Type

What does Partial<User> do?

Medium 20 XP
Solve

TypeScript

Output Prediction

#ts-out-7

Discriminated Union

How does TypeScript narrow this union?

Hard 35 XP
Solve

TypeScript

Bug Hunt

#ts-bug-3

Type Mismatch

TypeScript reports an error on this assignment.

Easy 10 XP
Solve

TypeScript

Bug Hunt

#ts-bug-4

Index Signature Error

This object access gives a TypeScript error.

Medium 20 XP
Solve

TypeScript

Bug Hunt

#ts-bug-5

Missing Return in Union

TypeScript reports not all code paths return a value.

Hard 35 XP
Solve

TypeScript

Code Completion

#ts-comp-4

Pick Utility Type

Complete to pick only name and email from User.

Medium 20 XP
Solve

TypeScript

Code Completion

#ts-comp-5

Infer in Conditional

Complete the conditional type to extract the return type.

Hard 35 XP
Solve

TypeScript

Code Reorder

#ts-reorder-3

Zod Schema Validation

Arrange the Zod schema parse pattern.

Hard 35 XP
Solve

TypeScript

Code Completion

#ts-comp-6

Readonly Array

Complete the type for an immutable string array.

Medium 20 XP
Solve

C

Output Prediction

#c-out-5

Character Arithmetic

What does this print?

Easy 10 XP
Solve

C

Output Prediction

#c-out-6

Array Decay

What does sizeof print for the pointer?

Medium 20 XP
Solve

C

Output Prediction

#c-out-7

Bitwise AND

What is the result?

Hard 35 XP
Solve

C

Bug Hunt

#c-bug-4

Uninitialized Variable

This code has undefined behavior.

Easy 10 XP
Solve

C

Bug Hunt

#c-bug-5

Off-by-One in Loop

This loop writes past the array boundary.

Medium 20 XP
Solve

C

Bug Hunt

#c-bug-6

Double Free

This code causes heap corruption.

Hard 35 XP
Solve

C

Code Completion

#c-comp-4

Scanf Input

Complete the scanf format for reading an integer.

Easy 10 XP
Solve

C

Code Completion

#c-comp-5

Typedef Struct

Complete the typedef to create a Point type.

Medium 20 XP
Solve

C

Code Reorder

#c-reorder-2

Linked List Node

Arrange the linked list node creation.

Medium 20 XP
Solve

C

Code Reorder

#c-reorder-3

File Write Pattern

Arrange to safely write to a file.

Hard 35 XP
Solve

CSS

Output Prediction

#css-out-4

Inheritance

Does the <p> inherit the parent color?

Easy 10 XP
Solve

CSS

Output Prediction

#css-out-5

Position Absolute

What is this element positioned relative to?

Medium 20 XP
Solve

CSS

Output Prediction

#css-out-6

Stacking Context

Which element appears on top?

Hard 35 XP
Solve

CSS

Bug Hunt

#css-bug-4

Width on Inline Element

The width has no effect on this element.

Easy 10 XP
Solve

CSS

Bug Hunt

#css-bug-5

Margin Collapsing

Two vertical margins of 20px overlap giving 20px, not 40px.

Medium 20 XP
Solve

CSS

Bug Hunt

#css-bug-6

Subgrid Missing

Grid items don't align to parent grid columns.

Hard 35 XP
Solve

CSS

Code Completion

#css-comp-4

Font Import

Complete to import a Google Font.

Easy 10 XP
Solve

CSS

Code Completion

#css-comp-5

Transition Property

Complete to animate opacity on hover.

Medium 20 XP
Solve

CSS

Code Reorder

#css-reorder-2

Custom Property Usage

Arrange the CSS custom property declaration and usage.

Medium 20 XP
Solve

CSS

Code Completion

#css-comp-6

Calc Function

Complete to make an element fill remaining width.

Hard 35 XP
Solve

PHP

Output Prediction

#php-out-4

String Functions

What does this return?

Easy 10 XP
Solve

PHP

Output Prediction

#php-out-5

Type Coercion

What does this output?

Medium 20 XP
Solve

PHP

Output Prediction

#php-out-6

Static Property

What does this print?

Hard 35 XP
Solve

PHP

Bug Hunt

#php-bug-4

Undefined Index

This causes a PHP notice/warning.

Easy 10 XP
Solve

PHP

Bug Hunt

#php-bug-5

Wrong String Comparison

This comparison gives unexpected results.

Medium 20 XP
Solve

PHP

Bug Hunt

#php-bug-6

Missing Exception Handling

Database errors crash the application.

Hard 35 XP
Solve

PHP

Code Completion

#php-comp-4

Array Push

Complete to add an element to an array.

Easy 10 XP
Solve

PHP

Code Completion

#php-comp-5

Heredoc Syntax

Complete the heredoc opening delimiter.

Medium 20 XP
Solve

PHP

Code Reorder

#php-reorder-2

OOP Constructor

Arrange the PHP class with constructor.

Medium 20 XP
Solve

PHP

Code Reorder

#php-reorder-3

Trait Usage

Arrange trait declaration and usage correctly.

Hard 35 XP
Solve

C++

Output Prediction

#cpp-out-5-ref-ptr

Reference vs Copy

What does this print?

Easy 10 XP
Solve

C++

Output Prediction

#cpp-out-6

Vector Size vs Capacity

After push_back, what is v.size()?

Medium 20 XP
Solve

C++

Output Prediction

#cpp-out-7

Move Semantics

After std::move, what is the state of s1?

Hard 35 XP
Solve

C++

Bug Hunt

#cpp-bug-3

Missing endl

Output doesn't appear immediately in some terminals.

Easy 10 XP
Solve

C++

Bug Hunt

#cpp-bug-4

Raw Pointer Memory Leak

This code leaks memory.

Medium 20 XP
Solve

C++

Bug Hunt

#cpp-bug-5

Slicing Problem

Derived class data is lost during assignment.

Hard 35 XP
Solve

C++

Code Completion

#cpp-comp-3

Range-based For

Complete the range-based for loop.

Easy 10 XP
Solve

C++

Code Completion

#cpp-comp-4

Smart Pointer

Complete the smart pointer type for exclusive ownership.

Medium 20 XP
Solve

C++

Code Reorder

#cpp-reorder-2

Lambda Capture

Arrange a lambda that captures and modifies a variable.

Medium 20 XP
Solve

C++

Code Reorder

#cpp-reorder-3

RAII File Handle

Arrange the RAII file handling pattern.

Hard 35 XP
Solve

React

Output Prediction

#react-out-4

Props Access

What does this component render?

Easy 10 XP
Solve

React

Output Prediction

#react-out-5

Conditional Rendering

What renders when isLoggedIn is false?

Medium 20 XP
Solve

React

Output Prediction

#react-out-6

useReducer Action

What is the state after dispatching this action?

Hard 35 XP
Solve

React

Bug Hunt

#react-bug-4

State Mutation

The UI doesn't update when the array changes.

Easy 10 XP
Solve

React

Bug Hunt

#react-bug-5

useEffect Cleanup

This component leaks a timer when unmounted.

Medium 20 XP
Solve

React

Code Completion

#react-comp-4

Event Handler

Complete the click event handler.

Easy 10 XP
Solve

React

Code Completion

#react-comp-5

Default Export

Complete the default export of a component.

Medium 20 XP
Solve

React

Code Completion

#react-comp-6

useRef Access

Complete to access the DOM input element.

Hard 35 XP
Solve

React

Code Reorder

#react-reorder-2

Custom Hook

Arrange a custom hook that fetches data.

Medium 20 XP
Solve

React

Code Reorder

#react-reorder-3

Context Provider

Arrange Context API correctly.

Hard 35 XP
Solve

Node.js

Output Prediction

#node-out-4

require vs import

Which syntax is used in CommonJS modules?

Easy 10 XP
Solve

Node.js

Output Prediction

#node-out-5

Process Exit Code

What does process.exit(1) indicate?

Medium 20 XP
Solve

Node.js

Output Prediction

#node-out-6

Readable Stream

How is data read from a readable stream?

Hard 35 XP
Solve

Node.js

Bug Hunt

#node-bug-3

Sync in Async Context

This blocks the event loop and degrades performance.

Easy 10 XP
Solve

Node.js

Bug Hunt

#node-bug-4

Missing Error Handler

Express doesn't return errors to clients.

Medium 20 XP
Solve

Node.js

Bug Hunt

#node-bug-5

CORS Not Set

Browser blocks requests from a different origin.

Hard 35 XP
Solve

Node.js

Code Completion

#node-comp-4

Path Join

Complete to safely join file paths.

Easy 10 XP
Solve

Node.js

Code Completion

#node-comp-5

JWT Sign

Complete to sign a JSON Web Token.

Medium 20 XP
Solve

Node.js

Code Completion

#node-comp-6

Cluster Fork

Complete to spawn a worker process per CPU.

Hard 35 XP
Solve

Node.js

Code Reorder

#node-reorder-2

Middleware Chain

Arrange Express middleware in the correct order.

Medium 20 XP
Solve

Node.js

Code Reorder

#node-reorder-3

Async File Read

Arrange the async file reading pattern correctly.

Hard 35 XP
Solve

Testing & QA

Output Prediction

#qa-out-4

Test File Naming

Which file naming convention does Jest auto-discover?

Easy 10 XP
Solve

Testing & QA

Output Prediction

#qa-out-5

toHaveBeenCalledWith

What does this assertion check?

Medium 20 XP
Solve

Testing & QA

Output Prediction

#qa-out-6

Coverage Metric

What does 80% branch coverage mean?

Hard 35 XP
Solve

Testing & QA

Bug Hunt

#qa-bug-3

Asserting Wrong Thing

This test always passes even with a bug.

Easy 10 XP
Solve

Testing & QA

Bug Hunt

#qa-bug-4

Snapshot Outdated

Tests fail after a legitimate UI change.

Medium 20 XP
Solve

Testing & QA

Bug Hunt

#qa-bug-5

Integration Test Flakiness

Tests randomly fail due to timing issues.

Hard 35 XP
Solve

Testing & QA

Code Completion

#qa-comp-3

Spy on Method

Complete to spy on the console.log method.

Easy 10 XP
Solve

Testing & QA

Code Completion

#qa-comp-4

Async Test

Complete the async test correctly.

Medium 20 XP
Solve

Testing & QA

Code Completion

#qa-comp-5

Custom Matcher

Complete to extend Jest with a custom matcher.

Hard 35 XP
Solve

Testing & QA

Code Reorder

#qa-reorder-3

Given-When-Then

Arrange the BDD-style test structure.

Medium 20 XP
Solve

Testing & QA

Code Reorder

#qa-reorder-4

E2E Test Flow

Arrange a Playwright/Cypress E2E test.

Hard 35 XP
Solve

AI & ML

Output Prediction

#aiml-out-4

Supervised vs Unsupervised

Which is supervised learning?

Easy 10 XP
Solve

AI & ML

Output Prediction

#aiml-out-5

Activation Function

What does ReLU return for input -3?

Medium 20 XP
Solve

AI & ML

Output Prediction

#aiml-out-6

Confusion Matrix TP

In a confusion matrix, what is a True Positive?

Hard 35 XP
Solve

AI & ML

Bug Hunt

#aiml-bug-3

Feature Not Scaled

The model performs poorly despite good data.

Easy 10 XP
Solve

AI & ML

Bug Hunt

#aiml-bug-4

Missing Feature Engineering

Model ignores the date column.

Medium 20 XP
Solve

AI & ML

Bug Hunt

#aiml-bug-5

Class Imbalance Ignored

Model predicts majority class for almost all inputs.

Hard 35 XP
Solve

AI & ML

Code Completion

#aiml-comp-3

Predict Method

Complete the prediction call.

Easy 10 XP
Solve

AI & ML

Code Completion

#aiml-comp-4

DataFrame Shape

Complete to get the number of rows and columns.

Medium 20 XP
Solve

AI & ML

Code Completion

#aiml-comp-5

Cross Validation

Complete the k-fold cross validation call.

Hard 35 XP
Solve

AI & ML

Code Reorder

#aiml-reorder-2

Data Preprocessing

Arrange the correct data preprocessing order.

Medium 20 XP
Solve

AI & ML

Code Reorder

#aiml-reorder-3

Neural Network Layers

Arrange Keras model layer order for image classification.

Hard 35 XP
Solve

AI & ML

Output Prediction

#aiml-out-7

Gradient Descent Direction

Which direction does gradient descent move?

Hard 35 XP
Solve

C# / .NET

Output Prediction

#cs-out-4

Nullable Type

What does int? mean in C#?

Easy 10 XP
Solve

C# / .NET

Output Prediction

#cs-out-5

String Comparison

What does this return?

Medium 20 XP
Solve

C# / .NET

Output Prediction

#cs-out-6

Record Equality

What does this print?

Hard 35 XP
Solve

C# / .NET

Bug Hunt

#cs-bug-3

Unhandled Exception

This crashes on invalid input.

Easy 10 XP
Solve

C# / .NET

Bug Hunt

#cs-bug-4

LINQ Deferred Execution

The query result changes unexpectedly after modification.

Medium 20 XP
Solve

C# / .NET

Bug Hunt

#cs-bug-5

Interface Not Implemented

This code won't compile.

Hard 35 XP
Solve

C# / .NET

Code Completion

#cs-comp-3

String Interpolation

Complete the string interpolation.

Easy 10 XP
Solve

C# / .NET

Code Completion

#cs-comp-4

Null Conditional Operator

Complete to safely access a property.

Medium 20 XP
Solve

C# / .NET

Code Completion

#cs-comp-5

Dependency Injection

Complete the constructor injection registration.

Hard 35 XP
Solve

C# / .NET

Code Reorder

#cs-reorder-2

LINQ Query Chain

Arrange the LINQ query correctly.

Medium 20 XP
Solve

C# / .NET

Code Reorder

#cs-reorder-3

Entity Framework Query

Arrange the EF Core query pattern.

Hard 35 XP
Solve

C# / .NET

Output Prediction

#cs-out-7

Pattern Matching Switch

What does this print when shape is a Circle?

Hard 35 XP
Solve

Solidity

Output Prediction

#sol-out-4

Visibility Specifiers

Which visibility allows only the contract itself to call the function?

Easy 10 XP
Solve

Solidity

Output Prediction

#sol-out-5

Mapping Default

What does a mapping return for a key that was never set?

Medium 20 XP
Solve

Solidity

Output Prediction

#sol-out-6

msg.sender in Constructor

Who is msg.sender when a contract is deployed?

Hard 35 XP
Solve

Solidity

Bug Hunt

#sol-bug-3

Integer Overflow (old)

In Solidity <0.8.0, what is the risk here?

Easy 10 XP
Solve

Solidity

Bug Hunt

#sol-bug-4

Missing payable Modifier

This function can't receive ETH.

Medium 20 XP
Solve

Solidity

Bug Hunt

#sol-bug-5

Reentrancy Vulnerability

This withdraw function is vulnerable to reentrancy.

Hard 35 XP
Solve

Solidity

Code Completion

#sol-comp-3

Event Declaration

Complete the event declaration.

Easy 10 XP
Solve

Solidity

Code Completion

#sol-comp-4

Require Message

Complete the require with an error message.

Medium 20 XP
Solve

Solidity

Code Completion

#sol-comp-5

Custom Modifier

Complete the modifier to restrict access to the owner.

Hard 35 XP
Solve

Solidity

Code Reorder

#sol-reorder-2

ERC-20 Transfer

Arrange the ERC-20 transfer logic correctly.

Medium 20 XP
Solve

Solidity

Code Reorder

#sol-reorder-3

Contract Deployment Order

Arrange a proxy pattern deployment.

Hard 35 XP
Solve

Solidity

Output Prediction

#sol-out-7

view vs pure

What is the difference between view and pure functions?

Hard 35 XP
Solve

Django

Output Prediction

#django-out-4

ORM Filter

What does this queryset return?

Easy 10 XP
Solve

Django

Output Prediction

#django-out-5

URL Namespace

What does this URL tag resolve to?

Medium 20 XP
Solve

Django

Output Prediction

#django-out-6

select_related Purpose

Why use select_related() here?

Hard 35 XP
Solve

Django

Bug Hunt

#django-bug-3

Missing CSRF Token

POST form returns 403 Forbidden.

Easy 10 XP
Solve

Django

Bug Hunt

#django-bug-4

Missing Migration

New model field doesn't appear in the database.

Medium 20 XP
Solve

Django

Bug Hunt

#django-bug-5

N+1 Query Problem

This view makes too many database queries.

Hard 35 XP
Solve

Django

Code Completion

#django-comp-3

Template Variable

Complete to render a variable in a Django template.

Easy 10 XP
Solve

Django

Code Completion

#django-comp-4

Model String Representation

Complete to give the model a human-readable name.

Medium 20 XP
Solve

Django

Code Completion

#django-comp-5

Class-Based View

Complete to create a list view for the Post model.

Hard 35 XP
Solve

Django

Code Reorder

#django-reorder-2

Form Processing View

Arrange the form processing logic correctly.

Medium 20 XP
Solve

Django

Code Reorder

#django-reorder-3

Custom Middleware

Arrange the middleware process_request pattern.

Hard 35 XP
Solve

Django

Output Prediction

#django-out-7

get_or_create Return

What does get_or_create return?

Hard 35 XP
Solve

Laravel

Output Prediction

#laravel-out-4

Eloquent All

What does this return?

Easy 10 XP
Solve

Laravel

Output Prediction

#laravel-out-5

Blade Directive

What does @auth output?

Medium 20 XP
Solve

Laravel

Output Prediction

#laravel-out-6

Route Model Binding

What is $post in this route?

Hard 35 XP
Solve

Laravel

Bug Hunt

#laravel-bug-3

Missing CSRF in Form

POST form returns 419 error.

Easy 10 XP
Solve

Laravel

Bug Hunt

#laravel-bug-4

Mass Assignment Blocked

Model fails to save with fillable error.

Medium 20 XP
Solve

Laravel

Bug Hunt

#laravel-bug-5

N+1 in Blade

This loads too many queries in the loop.

Hard 35 XP
Solve

Laravel

Code Completion

#laravel-comp-3

Route GET

Complete the basic GET route definition.

Easy 10 XP
Solve

Laravel

Code Completion

#laravel-comp-4

Eloquent Where

Complete the query to find active users.

Medium 20 XP
Solve

Laravel

Code Completion

#laravel-comp-5

Dispatch Job

Complete to dispatch a queued job.

Hard 35 XP
Solve

Laravel

Code Reorder

#laravel-reorder-2

API Resource Route

Arrange to register a full REST resource.

Medium 20 XP
Solve

Laravel

Code Reorder

#laravel-reorder-3

Service Provider Boot

Arrange the service provider structure.

Hard 35 XP
Solve

Laravel

Output Prediction

#laravel-out-7

firstOrFail vs find

What happens when firstOrFail() finds no record?

Hard 35 XP
Solve

Keep sharpening your skills

365+ challenges across 19 languages. Earn XP, build streaks, and level up.