Zed-King Institute

    Arduino Practice Questions

    New question every time · Checked instantly

    Write the Arduino sketch the question asks for and press Check — the pins, functions and values are checked instantly. Want to see it run? Open the simulator and paste your sketch.

    Solved 0 / 0 Streak 0
    1

    Read the question

    easySound

    Beep a buzzer

    A buzzer is on pin 12. Make it play a 1000 Hz tone for 500 ms, stay silent for 500 ms, and repeat.

    Wiring: Buzzer + → pin 12; buzzer − → GND.

    2

    Write your answer

    See it explained
    3

    Try your sketch in the simulator

    How: press the blue + to add parts → drag from pin to pin to wire → paste your code in sketch.ino → press the green ▶.

    How This Practice Works

    1. Read the question. Choose Easy, Medium or Hard if you want a particular level.
    2. Write your answer in the editor.
    3. Press Check answer. Every requirement is tested and you see exactly which ones passed.
    4. Press Next question for a new one. Each question is generated with new values, so you do not get the same one twice.
    5. Your score and streak are kept on this device. A question counts as solved only if you solve it before opening the solution.

    Frequently Asked Questions

    How is my Arduino sketch checked?

    The sketch is read for the things the question asks for — the right pin modes, digitalWrite/analogWrite/analogRead calls, delays, library includes and values. Pins may be written as numbers or as variables.

    Can I run my sketch?

    Yes. Open the free Arduino simulator, add the parts listed under Wiring, paste your sketch and press play to watch it work.

    Which topics are covered?

    Digital output and input, PWM fading, analog sensors, the Serial Monitor, buzzers, ultrasonic distance, LCD displays, servo motors and temperature sensors — the NIELIT O Level M4-R5.1 and PR-4 syllabus.

    Is it free?

    Yes, free and without login. Your score and streak are saved on this device.