Dbms Lab QUIZ
Dbms Lab QUIZ
11. How many PWM pins are available on the Arduino Uno?
A) 4
B) 6
C) 8
D) 10
Answer: B) 6
12. What is the maximum current that can be sourced from a digital pin?
A) 20 mA
B) 30 mA
C) 40 mA
D) 50 mA
Answer: C) 40 mA
13. What is the function of the AREF pin on the Arduino Uno?
A) To reset the board
B) To provide an external reference voltage for analog inputs
C) To supply power
D) To ground the circuit
Answer: B) To provide an external reference voltage for analog inputs
14. How many analog input pins are on the Arduino Uno?
A) 4
B) 6
C) 8
D) 10
Answer: B) 6
15. Which pin is used for hardware serial communication on the Arduino Uno?
A) Pins 1 and 2
B) Pins 0 and 1
C) Pins 2 and 3
D) Pins 13 and A0
Answer: B) Pins 0 and 1
16. What is the default resolution of the analog-to-digital converter (ADC) in Arduino
Uno?
A) 8-bit
B) 10-bit
C) 12-bit
D) 16-bit
Answer: B) 10-bit
17. Which pin is used to reset the Arduino Uno?
A) Pin 0
B) Pin 7
C) Reset pin
D) GND pin
Answer: C) Reset pin
18. What is the purpose of the Vin pin?
A) To power external devices
B) To input voltage to power the Arduino board
C) For analog output
D) For serial communication
Answer: B) To input voltage to power the Arduino board
19. Which pins can be used for I2C communication on the Arduino Uno?
A) A0 and A1
B) A4 and A5
C) D4 and D5
D) D10 and D11
Answer: B) A4 and A5
20. What is the purpose of the GND pin on Arduino Uno?
A) To provide power
B) To act as a ground connection
C) For analog input
D) For serial communication
Answer: B) To act as a ground connection
Would you like to continue with more advanced questions or a specific section of Arduino?
4o
You said:
yes
ChatGPT said:
ChatGPT
11. What is the function of the IN1 and IN2 pins in the L298N module?
A) To set motor speed
B) To set motor direction
C) To provide power
D) To enable motor operation
Answer: B) To set motor direction
12. Which pin is used to supply power to the motors connected to L298N?
A) 5V pin
B) Ground pin
C) VMS pin
D) IN1 pin
Answer: C) VMS pin
13. What does the OUT1 pin on the L298N module do?
A) Sends control signals to the motor
B) Acts as a power supply
C) Outputs motor drive current
D) Reads motor status
Answer: C) Outputs motor drive current
14. What is the purpose of the onboard 5V regulator in the L298N module?
A) To regulate motor speed
B) To provide 5V logic power when VMS is above 7V
C) To increase the motor voltage
D) To disable the motor
Answer: B) To provide 5V logic power when VMS is above 7V
15. How many input pins are there for each motor channel on the L298N module?
A) 1
B) 2
C) 3
D) 4
Answer: B) 2
16. Which pins are connected to the motor for Motor A?
A) IN1 and IN2
B) OUT1 and OUT2
C) ENA and ENB
D) VMS and Ground
Answer: B) OUT1 and OUT2
17. What is the function of the ENA pin in the L298N module?
A) To set motor direction
B) To control Motor A's speed via PWM
C) To power Motor B
D) To enable Motor A's logic circuit
Answer: B) To control Motor A's speed via PWM
18. What is the recommended logic voltage range for the L298N?
A) 3.3V–5V
B) 5V–12V
C) 12V–24V
D) 24V–30V
Answer: A) 3.3V–5V
19. What does the onboard jumper on the L298N module’s 5V pin do?
A) Enables the onboard voltage regulator
B) Disables the onboard voltage regulator
C) Powers the motor
D) Inverts the motor direction
Answer: A) Enables the onboard voltage regulator
20. What happens if the motor current exceeds the L298N's capacity?
A) The motor speed increases
B) The module heats up
C) The module shuts down automatically
D) The motor switches direction
Answer: B) The module heats up
11. What happens if you connect a passive buzzer directly to a power source?
A) It will produce a continuous tone
B) It will not produce sound
C) It will get damaged
D) It will produce random tones
Answer: B) It will not produce sound
12. What is required to drive a passive buzzer in a circuit?
A) Continuous DC voltage
B) Oscillating signal or PWM
C) High current source
D) Diode
Answer: B) Oscillating signal or PWM
13. How can the tone of a buzzer be changed?
A) By changing the voltage
B) By adjusting the frequency of the input signal
C) By increasing the current
D) By adding a resistor
Answer: B) By adjusting the frequency of the input signal
14. Which electronic component can be used to switch a buzzer on and off in a circuit?
A) Diode
B) Transistor
C) Capacitor
D) Inductor
Answer: B) Transistor
15. What is the advantage of an active buzzer over a passive buzzer?
A) It is louder
B) It is cheaper
C) It requires no external signal
D) It consumes less power
Answer: C) It requires no external signal
16. What happens if an active buzzer is connected to a PWM pin?
A) It produces a varying tone
B) It produces a constant tone
C) It gets damaged
D) It stops functioning
Answer: B) It produces a constant tone
17. What does the term "piezoelectric" mean in buzzers?
A) Electricity produces heat
B) Pressure generates electricity
C) Electricity generates sound
D) Sound generates pressure
Answer: B) Pressure generates electricity
18. Which Arduino pin function is commonly used to control a buzzer?
A) analogRead()
B) digitalWrite()
C) Serial.print()
D) tone()
Answer: D) tone()
19. How can you stop a tone generated by the tone() function in Arduino?
A) noTone()
B) stopTone()
C) toneOff()
D) disableTone()
Answer: A) noTone()
20. Which of the following is a drawback of an electromagnetic buzzer?
A) High cost
B) Limited frequency range
C) Complex circuit
D) High power consumption
Answer: B) Limited frequency range
21-30: Applications
21-30: Applications
11. What is the resistance of the wiper terminal when set in the middle of a
potentiometer?
A) Zero
B) Half of the total resistance
C) Maximum resistance
D) Infinite
Answer: B) Half of the total resistance
12. What is a logarithmic potentiometer used for?
A) Controlling volume
B) Measuring distance
C) Generating power
D) Stabilizing voltage
Answer: A) Controlling volume
13. What is the power rating of a potentiometer?
A) The maximum power it can dissipate
B) The voltage it can handle
C) The current it can pass
D) The resistance it offers
Answer: A) The maximum power it can dissipate
14. What determines the resolution of a digital potentiometer?
A) Number of turns
B) Number of resistive steps
C) Maximum resistance
D) Input voltage
Answer: B) Number of resistive steps
15. What happens if the wiper terminal of a potentiometer is disconnected?
A) Resistance becomes zero
B) No output voltage is produced
C) The potentiometer stops functioning
D) The total resistance remains unaffected
Answer: B) No output voltage is produced
16. Which material is commonly used for the resistive track in a potentiometer?
A) Silicon
B) Carbon
C) Copper
D) Aluminum
Answer: B) Carbon
17. What is the advantage of a multi-turn potentiometer?
A) Increased precision
B) Higher resistance
C) Reduced power consumption
D) Larger size
Answer: A) Increased precision
18. What is the typical lifespan of a potentiometer in terms of cycles?
A) 1,000–10,000 cycles
B) 10,000–1,000,000 cycles
C) 1,000,000–10,000,000 cycles
D) Unlimited
Answer: B) 10,000–1,000,000 cycles
19. How is a potentiometer connected in a voltage divider configuration?
A) All terminals in parallel
B) Fixed terminals to power and ground, wiper as output
C) Fixed terminals to input and output, wiper to ground
D) Wiper and one fixed terminal to power, the other fixed terminal floating
Answer: B) Fixed terminals to power and ground, wiper as output
20. What is the maximum current through a potentiometer determined by?
A) Voltage applied
B) Total resistance of the potentiometer
C) Power rating of the potentiometer
D) Wiper position
Answer: C) Power rating of the potentiometer
21-30: Applications
21-30: Applications
21. What is one advantage of using a motor driver shield over manually wiring an H-
Bridge?
A) Reduced cost
B) Simplified motor control with built-in features
C) Easier connection to motors
D) No need for a microcontroller
Answer: B) Simplified motor control with built-in features
22. Which of the following does a motor driver shield NOT typically provide for DC
motors?
A) Speed control
B) Direction control
C) Current regulation
D) Motor lubrication
Answer: D) Motor lubrication
23. How do motor driver shields typically handle different motor voltages?
A) They use a step-up converter
B) They include a voltage regulator
C) They require a separate power supply for motors
D) They convert AC to DC
Answer: C) They require a separate power supply for motors
24. What is one common issue when using motor driver shields with large motors?
A) Limited speed control range
B) Insufficient current capability
C) Too much power consumption
D) Too many control pins required
Answer: B) Insufficient current capability
25. Which type of control method is used for precise speed and position control in
motors with a motor driver shield?
A) Open-loop control
B) Closed-loop control with feedback
C) Proportional control
D) Differential control
Answer: B) Closed-loop control with feedback
26. What is the role of a heat sink on a motor driver shield?
A) To increase the current flow
B) To provide a secure mounting surface
C) To cool down the driver components during heavy load
D) To act as a capacitor
Answer: C) To cool down the driver components during heavy load
27. Which of the following is true about the use of an H-Bridge in motor driver shields?
A) It only works for stepper motors
B) It allows for both forward and reverse motor rotation
C) It increases the resistance of the motor windings
D) It is used to convert AC power to DC power
Answer: B) It allows for both forward and reverse motor rotation
28. What does the term "microstepping" refer to in stepper motor control?
A) Running the motor in full steps only
B) Dividing each full step into smaller steps for finer resolution
C) Using only two phases of a stepper motor
D) Running the motor continuously without control
Answer: B) Dividing each full step into smaller steps for finer resolution
29. Which of the following is NOT typically a feature provided by a motor driver
shield?
A) Stepper motor support
B) Speed regulation using PWM
C) Battery charging capabilities
D) Direction control for motors
Answer: C) Battery charging capabilities
30. What happens if a motor driver shield receives an excessive control signal?
A) The motor runs faster
B) The motor may overheat or the shield may be damaged
C) The motor will stop completely
D) The motor driver will automatically adjust the signal
Answer: B) The motor may overheat or the shield may be damaged
11. Which of the following is a common type of gear motor used in robotics?
A) Brushless DC gear motor
B) AC gear motor
C) Stepper gear motor
D) Hydraulic gear motor
Answer: A) Brushless DC gear motor
12. What is the main difference between a DC motor and a gear motor?
A) DC motors operate at high speeds, while gear motors operate at low speeds
B) DC motors can produce more torque
C) Gear motors have a higher operating voltage
D) Gear motors lack a gearbox
Answer: A) DC motors operate at high speeds, while gear motors operate at low speeds
13. What is the typical application of a planetary gear motor?
A) To provide high-speed rotation
B) To provide a compact, high-torque solution
C) To control alternating current
D) To measure motor speed
Answer: B) To provide a compact, high-torque solution
14. Which type of gear motor is ideal for applications requiring precise, consistent
motion?
A) AC gear motors
B) Stepper gear motors
C) Brushless DC gear motors
D) Hydraulic gear motors
Answer: B) Stepper gear motors
15. In a gear motor, what does a "planetary" gear system typically consist of?
A) A single gear connected to a shaft
B) Multiple gears orbiting a central gear
C) A set of gears mounted on the same axis
D) A rotating shaft connected to a load
Answer: B) Multiple gears orbiting a central gear
16. Which of the following gear motor types is best suited for high-torque, low-speed
applications?
A) DC motor with a worm gear
B) Stepper motor with planetary gear
C) AC motor with a helical gear
D) Brushless DC motor with a spur gear
Answer: A) DC motor with a worm gear
17. What is a common use case for a worm gear motor?
A) To increase motor speed
B) To provide high efficiency in large industrial machines
C) To prevent back-driving and provide high torque at low speed
D) To transmit motion at right angles
Answer: C) To prevent back-driving and provide high torque at low speed
18. What is a benefit of using a helical gear in gear motors?
A) Higher efficiency due to smoother engagement
B) Ability to handle higher torque with lower power consumption
C) Lower noise levels compared to spur gears
D) All of the above
Answer: D) All of the above
19. Which gear motor is typically used in small hobby projects like RC cars and robots?
A) AC gear motors
B) Stepper gear motors
C) DC gear motors
D) Hydraulic gear motors
Answer: C) DC gear motors
20. What is the main advantage of using a brushless DC (BLDC) gear motor?
A) Low cost
B) High efficiency and longer lifespan
C) High torque at low speed
D) Simple design with fewer components
Answer: B) High efficiency and longer lifespan
21. How does the torque of a gear motor compare to a direct-drive motor?
A) The gear motor has less torque
B) The gear motor has more torque
C) The torque is the same
D) It depends on the type of motor used
Answer: B) The gear motor has more torque
22. What is the typical efficiency range of a gear motor?
A) 10% - 30%
B) 40% - 60%
C) 70% - 90%
D) 95% - 100%
Answer: C) 70% - 90%
23. How does increasing the load on a gear motor affect its speed?
A) Speed increases
B) Speed decreases
C) Speed remains constant
D) Speed fluctuates randomly
Answer: B) Speed decreases
24. What is the effect of gear motor backlash?
A) Increased torque output
B) Decreased efficiency
C) Noise and slippage between gears
D) Faster motor rotation
Answer: C) Noise and slippage between gears
25. Which of the following factors affects the performance of a gear motor?
A) Gear ratio
B) Motor type
C) Efficiency of the gearbox
D) All of the above
Answer: D) All of the above
26. What is the relationship between gear ratio and torque in a gear motor?
A) Higher gear ratio decreases torque
B) Higher gear ratio increases torque
C) Gear ratio does not affect torque
D) Gear ratio decreases speed without affecting torque
Answer: B) Higher gear ratio increases torque
27. How does the gear motor’s speed vary with different load conditions?
A) It increases with higher load
B) It remains unaffected by load
C) It decreases with higher load
D) It oscillates between speeds
Answer: C) It decreases with higher load
28. Which type of gear motor would you use for an application requiring high efficiency
and minimal noise?
A) Planetary gear motor
B) Worm gear motor
C) Spur gear motor
D) Helical gear motor
Answer: A) Planetary gear motor
29. What does the "duty cycle" of a gear motor refer to?
A) The motor’s operating time vs. rest time
B) The torque output of the motor
C) The maximum speed of the motor
D) The number of gears in the gearbox
Answer: A) The motor’s operating time vs. rest time
30. What can happen if a gear motor is operated continuously beyond its rated duty
cycle?
A) The motor will overheat
B) The motor will increase its efficiency
C) The motor’s torque will decrease
D) Nothing will happen
Answer: A) The motor will overheat