Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Design a toggle switch that changes from “On” to “Off” when clicked, using a checkbox and custom CSS.

Hard

Problem Statement

Design a toggle switch that changes from “On” to “Off” when clicked, using a checkbox and custom CSS.

Sample Input

A toggle switch with an on/off state.

Sample Output

The webpage displays a toggle switch that changes state when clicked.

Limits

Time: 2s · Memory: 256 MB

Code Editor

Try your code in this preview. Submit marks it done.

<!doctype html> <html></html>

Document

To view the HTML changes, please type the code within the editor