Python
Arduino
Access
Arduino
Python
100

What is the purpose of an if statement in Python?

It executes instructions only when a condition is true.

100

What does IoT stand for?

Internet of Things.

100

What is a database?


An organized collection of related data.

100

Which programming structure can be used to repeat the blinking of an LED?

A loop.

100

Which Python library is used to draw shapes?

The turtle library.

200

A program displays “Pass” if a mark is at least 50 and “Fail” otherwise. Which structure is needed?

An if–else structure.

200

What is the main idea of IoT?

Connecting physical devices so they can collect, exchange, or respond to data.

200

A school wants to manage student names, grades, and marks efficiently. Why is a database suitable?


It organizes the information and allows quick searching, updating, and reporting.

200

What is the Serial Monitor used for?

Displaying information and sensor readings from Arduino.

200

How can a turtle draw a square using fewer instructions?

By using a loop that repeats moving forward and turning 90 degrees four times.

300

What is a loop used for in Python?

Repeating a group of instructions.

300

Why is a resistor used with an LED?

To limit the current and protect the LED.

300

Why is choosing the correct data type important?


It ensures that data is stored and handled correctly.

300

Which sensor can measure distance in an Arduino circuit?

The ultrasonic sensor.

300

Which Python library is used for mathematical operations?

The math library

400

Which loop is useful when the number of repetitions is known?


The for loop

400

What is the purpose of a breadboard?

It allows components to be connected and tested without soldering.

400

What is a query?

A request used to retrieve specific information from a database.

400

How does an ultrasonic sensor measure distance?

It sends sound waves and measures the returning echo.

400

What is the purpose of a function in Python?

It groups instructions that perform a specific task.

500

How many times does this loop execute?

for i in range(5):

    print(i)

Five times.

500

A circuit contains an LED, resistor, and breadboard. What must be checked if the LED does not light?

The wiring, LED polarity, resistor connection, power, and program.

500

What does a condition in a query do?


It limits the records shown according to a rule.

500

Create a simple parking-assistance system using Arduino.

Use an ultrasonic sensor to measure distance and a buzzer to warn when a car is too close.

500

A function calculates the area of a rectangle using its length and width. What should the function receive as parameters?

The length and the width.