Day 30: How did you do?

Here is a 100-question quiz based on the lessons and Python concepts from the Adventure Kit: Cosmic Guild. Each question has four options (A, B, C, D), and the correct answers are provided in the answer key at the end.

Quiz: Adventure Kit: The Last Cosmic Guild

**Chapter 1: Welcome Aboard the Nebula Raider**

1. What is the primary microcontroller used in these projects?
– A) Arduino Uno
– B) Raspberry Pi Pico WH
– C) ESP8266
– D) BeagleBone Black

2. What is the purpose of the resistors in the circuit?
– A) To increase current
– B) To decrease voltage
– C) To control current
– D) To store charge

3. Which sensor is used to measure temperature and humidity?
– A) DHT11
– B) HC-SR04
– C) LDR
– D) MPU-6050

4. What is the role of the Raspberry Pi Pico WH in the food automation system?
– A) To power the system
– B) To control the servo motor and LCD display
– C) To store data
– D) To provide internet connectivity

5. What type of component is the SG90 used in the food automation system?
– A) LED
– B) Servo motor
– C) Sensor
– D) Resistor

**Chapter 2: The First Mission**

6. What does LCD1602 refer to in the context of these projects?
– A) A type of microcontroller
– B) A type of display
– C) A type of sensor
– D) A type of motor

7. How is the communication system in Chapter 2 powered?
– A) By a battery
– B) By a solar panel
– C) By the Raspberry Pi Pico WH
– D) By an external power supply

8. What function does the 5V Active Buzzer serve in the security system?
– A) To provide visual alerts
– B) To store data
– C) To produce sound alerts
– D) To measure distance

9. Which component is used to read and display temperature and humidity data in the environmental sensor project?
– A) OLED display
– B) LCD1602 display
– C) LED
– D) 7-segment display

10. What does the ‘Pin’ module in MicroPython control?
– A) Sensor readings
– B) GPIO pins
– C) Data storage
– D) Internet connectivity

**Chapter 3: Sensor Trouble**

11. Which sensor is used to detect motion?
– A) DHT11
– B) HC-SR501
– C) LDR
– D) MPU-6050

12. What is the purpose of the 10uf 50v Electrolytic Capacitors in the projects?
– A) To measure temperature
– B) To store electrical energy
– C) To control motor speed
– D) To provide sound alerts

13. How does the Raspberry Pi Pico communicate with the I2C display?
– A) Through GPIO pins
– B) Through PWM signals
– C) Through UART
– D) Through I2C protocol

14. What type of sensor is the LDR?
– A) Temperature sensor
– B) Light sensor
– C) Motion sensor
– D) Humidity sensor

15. In the context of the food automation system, what does the servo motor control?
– A) The LCD display
– B) The buzzer
– C) The food dispenser mechanism
– D) The temperature sensor

**Chapter 4: Security Breach**

16. What does the Reed Switch detect?
– A) Motion
– B) Temperature
– C) Magnetic field
– D) Light intensity

17. How is the security system activated when unauthorized access is detected?
– A) By turning on LEDs
– B) By activating the buzzer
– C) By displaying a message on the screen
– D) By sending an email alert

18. Which component is used to create an alert system in the security project?
– A) Resistor
– B) Capacitor
– C) 5V Active Buzzer
– D) Servo motor

19. What is the role of the 74HC595N 8-Bit Shift Register in the weapon systems?
– A) To control multiple LEDs with fewer GPIO pins
– B) To measure humidity
– C) To store data
– D) To provide sound alerts

20. What does the MPU-6050 sensor measure?
– A) Temperature and humidity
– B) Light intensity
– C) Motion and orientation
– D) Distance

**Chapter 5: Engine Malfunction**

21. What is the primary use of the Thermistor Temperature Sensor NTC MF52-103 in these projects?
– A) To measure humidity
– B) To detect motion
– C) To measure temperature
– D) To measure light intensity

22. How does the Raspberry Pi Pico control the servo motor?
– A) Using ADC
– B) Using PWM signals
– C) Using UART
– D) Using I2C

23. What is the purpose of the SRD-05VDC-SL-C Power Relay in the power management system?
– A) To control high-voltage devices
– B) To measure temperature
– C) To provide sound alerts
– D) To store data

24. Which sensor is used to detect vibrations?
– A) HC-SR04
– B) MPU-6050
– C) SW-520D
– D) LDR

25. What component is used to smooth out voltage in the battery management system?
– A) Resistor
– B) Capacitor
– C) LED
– D) Servo motor

**Chapter 6: Power Struggle**

26. What is the function of the 104pf/0.1uf/100nf 50V Ceramic Disc Capacitors in the power management project?
– A) To store electrical energy
– B) To measure temperature
– C) To control motor speed
– D) To provide sound alerts

27. How is the power management system controlled?
– A) Using an ADC
– B) Using a microcontroller
– C) Using a relay
– D) Using a sensor

28. What does the 10uf 50v Electrolytic Capacitor do in the power management system?
– A) Smooth out voltage fluctuations
– B) Measure temperature
– C) Control motor speed
– D) Provide sound alerts

29. What is the purpose of the 5mm 5528 LDR in the treasure hunt project?
– A) To measure temperature
– B) To detect light
– C) To measure humidity
– D) To detect motion

30. Which component is used to navigate through traps and puzzles in the treasure hunt project?
– A) Servo motor
– B) LCD display
– C) HC-SR04 Ultrasonic Sensor
– D) Resistor

**Chapter 7: Treasure Hunt**

31. What type of component is the Infrared wireless remote controller?
– A) Sensor
– B) Actuator
– C) Microcontroller
– D) Resistor

32. How does the HC-SR04 Ultrasonic Sensor work?
– A) It measures temperature
– B) It detects motion
– C) It measures distance using sound waves
– D) It detects light

33. What does the LED RGB 5mm 4 Pins CC component do?
– A) Measure temperature
– B) Provide multi-color lighting
– C) Measure humidity
– D) Control motor speed

34. What is the purpose of the 8-bit WS2812 5050 RGB LED in the final battle project?
– A) To measure light intensity
– B) To provide multi-color lighting
– C) To measure temperature
– D) To control motor speed

35. What is the main use of the 3V DC Motor with Wire in the engine malfunction project?
– A) To measure temperature
– B) To provide sound alerts
– C) To drive mechanical components
– D) To store data

**Chapter 8: The Final Battle**

36. What is the role of the 74HC595N 8-Bit Shift Register in the weapon systems project?
– A) To control multiple LEDs with fewer GPIO pins
– B) To measure humidity
– C) To store data
– D) To provide sound alerts

37. How does the LED RGB 5mm 4 Pins CC component work?
– A) By measuring temperature
– B) By providing multi-color lighting
– C) By measuring humidity
– D) By controlling motor speed

38. What is the primary use of the 8-bit WS2812 5050 RGB LED in the projects?
– A) To measure light intensity
– B) To provide multi-color lighting

– C) To measure temperature
– D) To control motor speed

39. How does the 3V DC Motor with Wire function in the engine malfunction project?
– A) By measuring temperature
– B) By providing sound alerts
– C) By driving mechanical components
– D) By storing data

40. What is the main use of the Servo SG90 9g 180 Degree in the food automation system?
– A) To measure temperature
– B) To provide sound alerts
– C) To control the food dispenser mechanism
– D) To store data

**Chapter 9: Victory and Beyond**

41. What is the role of the 4*4 Membrane Switch Matrix Keypad in the security system?
– A) To measure temperature
– B) To provide sound alerts
– C) To control access
– D) To store data

42. How is the 830 Points Solderless Breadboard used in the projects?
– A) For permanent connections
– B) For temporary circuit connections
– C) For measuring temperature
– D) For providing sound alerts

43. What does the 20Pin 24AWG Male to Female Dupont Line do?
– A) Measure temperature
– B) Provide power
– C) Connect components
– D) Store data

44. What is the purpose of the 140pcs U Shape Shield Breadboard Jumper Wires?
– A) Measure temperature
– B) Provide power
– C) Connect components
– D) Store data

45. How is the 1.64FT Micro USB Cable used in the projects?
– A) To measure temperature
– B) To provide power and data transfer
– C) To connect components
– D) To store data

**Chapter 10: AI-Driven Cosmic Navigation**

46. What is the function of the HC-SR04 Ultrasonic Sensor in the AI navigation system?
– A) Measure temperature
– B) Detect light
– C) Measure distance using sound waves
– D) Provide power

47. How does the MPU-6050 sensor contribute to the AI navigation system?
– A) Measure temperature
– B) Detect light
– C) Measure motion and orientation
– D) Provide power

48. What does the I2C interface connect in the AI navigation system?
– A) Sensors and microcontroller
– B) LED and resistors
– C) Power supply and sensors
– D) Motors and sensors

49. How does the OLED display show data in the AI navigation system?
– A) By measuring temperature
– B) By displaying sensor readings
– C) By providing sound alerts
– D) By controlling motors

50. What is the main role of the Raspberry Pi Pico in the AI navigation system?
– A) Measure temperature
– B) Display sensor readings
– C) Control the navigation system
– D) Provide power

#### **Chapter 11: Automated Food Delivery System**
51. What is the purpose of the SG90 Servo Motor in the food automation system?
– A) To measure temperature
– B) To provide sound alerts
– C) To control the food dispenser mechanism
– D) To store data

52. How is the LCD1602 I2C Display used in the food automation system?
– A) Measure temperature
– B) Display meal times
– C) Provide power
– D) Control the servo motor

53. What role does the Raspberry Pi Pico play in the food automation system?
– A) Measure temperature
– B) Control the servo motor and LCD display
– C) Provide sound alerts
– D) Store data

54. How does the system ensure food is dispensed at the right time?
– A) Using a temperature sensor
– B) Using a timer in the Raspberry Pi Pico
– C) Using a motion sensor
– D) Using a light sensor

55. What type of project is the automated food delivery system?
– A) Data storage
– B) Sound alerts
– C) Automation and timing
– D) Temperature measurement

#### **General Python Concepts**
56. What is the primary purpose of a microcontroller in embedded systems?
– A) To measure temperature
– B) To provide internet connectivity
– C) To control electronic components
– D) To store data

57. Which Python module is commonly used to control GPIO pins on the Raspberry Pi Pico?
– A) machine
– B) time
– C) random
– D) math

58. How is an LED turned on using MicroPython?
– A) Setting the GPIO pin to high
– B) Setting the GPIO pin to low
– C) Using PWM signals
– D) Using ADC

59. What does the `utime.sleep()` function do in MicroPython?
– A) Measure temperature
– B) Control GPIO pins
– C) Pause the program for a specified time
– D) Provide internet connectivity

60. Which Python data type is used to store multiple values in a single variable?
– A) int
– B) str
– C) list
– D) bool

61. How do you create a function in Python?
– A) `def function_name():`
– B) `function function_name():`
– C) `create function_name():`
– D) `init function_name():`

62. What does the `while True:` loop do in Python?
– A) Execute a block of code a fixed number of times
– B) Execute a block of code indefinitely
– C) Execute a block of code conditionally
– D) Execute a block of code once

63. How is a list indexed in Python?
– A) Using parentheses
– B) Using square brackets
– C) Using curly braces
– D) Using angle brackets

64. What does the `print()` function do in Python?
– A) Measure temperature
– B) Display output to the screen
– C) Store data
– D) Control GPIO pins

65. How do you import a module in Python?
– A) `import module_name`
– B) `include module_name`
– C) `require module_name`
– D) `load module_name`

#### **General MicroPython Concepts**
66. What is the purpose of the `machine.Pin` class in MicroPython?
– A) Measure temperature
– B) Control GPIO pins
– C) Provide sound alerts
– D) Store data

67. How do you read an analog value in MicroPython?
– A) Using `machine.ADC()`
– B) Using `machine.PWM()`
– C) Using `machine.UART()`
– D) Using `machine.I2C()`

68. What does PWM stand for?
– A) Pulse Width Measurement
– B) Pulse Width Modulation
– C) Power Width Measurement
– D) Power Width Modulation

69. How is a PWM signal generated in MicroPython?
– A) Using `machine.ADC()`
– B) Using `machine.PWM()`
– C) Using `machine.UART()`
– D) Using `machine.I2C()`

70. What is the function of the `machine.I2C` class in MicroPython?
– A) Measure temperature
– B) Control GPIO pins
– C) Provide internet connectivity
– D) Communicate with I2C devices

71. How do you initiate an I2C communication in MicroPython?
– A) `i2c = machine.I2C()`
– B) `i2c = machine.GPIO()`
– C) `i2c = machine.UART()`
– D) `i2c = machine.SPI()`

72. What is the purpose of the `ssd1306` library in MicroPython?
– A) Measure temperature
– B) Control LEDs
– C) Interface with OLED displays
– D) Provide sound alerts

73. How do you clear an OLED display using the `ssd1306` library?
– A) `oled.fill(1)`
– B) `oled.clear()`
– C) `oled.fill(0)`
– D) `oled.clear_display()`

74. What does the `utime.sleep_ms()` function do?
– A) Pause the program for a specified number of seconds
– B) Pause the program for a specified number of milliseconds
– C) Pause the program for a specified number of minutes
– D) Pause the program indefinitely

75. How do you write text to an OLED display in MicroPython?
– A) `oled.text(“text”, x, y)`
– B) `oled.print(“text”, x, y)`
– C) `oled.write(“text”, x, y)`
– D) `oled.show_text(“text”, x, y)`

#### **Advanced Python Concepts**
76. What is the purpose of a `try` block in Python?
– A) To test a block of code for errors
– B) To measure temperature
– C) To provide sound alerts
– D) To store data

77. How

do you handle exceptions in Python?
– A) Using `catch` block
– B) Using `finally` block
– C) Using `try-except` block
– D) Using `handle` block

78. What is the purpose of a `class` in Python?
– A) To define a new data type
– B) To measure temperature
– C) To control GPIO pins
– D) To provide sound alerts

79. How do you create an instance of a class in Python?
– A) `object = ClassName()`
– B) `object = ClassName`
– C) `object = new ClassName()`
– D) `object = create ClassName()`

80. What is inheritance in Python?
– A) Creating a new class from an existing class
– B) Creating a new function from an existing function
– C) Creating a new variable from an existing variable
– D) Creating a new module from an existing module

81. What does the `super()` function do in Python?
– A) Measure temperature
– B) Access methods from a parent class
– C) Provide sound alerts
– D) Store data

82. How do you define a method in a Python class?
– A) `def method_name():`
– B) `function method_name():`
– C) `create method_name():`
– D) `init method_name():`

83. What is the purpose of the `__init__()` method in Python classes?
– A) To initialize class attributes
– B) To measure temperature
– C) To control GPIO pins
– D) To provide sound alerts

84. How do you call a method from an instance of a class in Python?
– A) `object.method_name()`
– B) `object.method_name`
– C) `object->method_name()`
– D) `object.method_name[]`

85. What does the term ‘encapsulation’ refer to in Python?
– A) Hiding the internal state and requiring all interaction to be performed through an object’s methods
– B) Measuring temperature
– C) Controlling GPIO pins
– D) Providing sound alerts

#### **General Concepts**
86. What is the primary use of an ultrasonic sensor in these projects?
– A) Measure temperature
– B) Detect light
– C) Measure distance using sound waves
– D) Provide power

87. How does the accelerometer in the MPU-6050 work?
– A) Measure temperature
– B) Detect light
– C) Measure acceleration
– D) Provide power

88. What is the function of the gyroscope in the MPU-6050?
– A) Measure temperature
– B) Measure angular velocity
– C) Detect light
– D) Provide power

89. How do you measure voltage using the Raspberry Pi Pico?
– A) Using `machine.PWM()`
– B) Using `machine.ADC()`
– C) Using `machine.UART()`
– D) Using `machine.I2C()`

90. What is the purpose of a voltage divider in electronic circuits?
– A) Increase current
– B) Decrease voltage
– C) Store charge
– D) Measure temperature

91. How do you control multiple LEDs using fewer GPIO pins?
– A) Using `machine.PWM()`
– B) Using `machine.UART()`
– C) Using `74HC595N 8-Bit Shift Register`
– D) Using `machine.I2C()`

92. What does the `machine.ADC()` function do in MicroPython?
– A) Measure digital values
– B) Measure analog values
– C) Control GPIO pins
– D) Provide internet connectivity

93. How is a servo motor controlled in MicroPython?
– A) Using `machine.PWM()`
– B) Using `machine.ADC()`
– C) Using `machine.UART()`
– D) Using `machine.I2C()`

94. What is the role of a capacitor in electronic circuits?
– A) Measure temperature
– B) Provide sound alerts
– C) Store and release electrical energy
– D) Control motor speed

95. How do you create a list of values in Python?
– A) `list = {1, 2, 3}`
– B) `list = (1, 2, 3)`
– C) `list = [1, 2, 3]`
– D) `list = <1, 2, 3>`

#### **Project-Specific Concepts**
96. What is the purpose of the `machine.PWM` class in controlling the servo motor?
– A) Measure temperature
– B) Provide sound alerts
– C) Generate PWM signals
– D) Store data

97. How is the `utime` module used in these projects?
– A) Measure temperature
– B) Control GPIO pins
– C) Provide time-related functions
– D) Store data

98. What does the `import` statement do in Python?
– A) Measure temperature
– B) Include external libraries
– C) Provide sound alerts
– D) Control GPIO pins

99. How do you display text on an OLED display using MicroPython?
– A) `oled.text(“text”, x, y)`
– B) `oled.print(“text”, x, y)`
– C) `oled.write(“text”, x, y)`
– D) `oled.show_text(“text”, x, y)`

100. What is the main use of the Raspberry Pi Pico in these projects?
– A) Measure temperature
– B) Control electronic components
– C) Provide sound alerts
– D) Store data

### Answer Key

1. B
2. C
3. A
4. B
5. B
6. B
7. C
8. C
9. B
10. B
11. B
12. B
13. D
14. B
15. C
16. C
17. B
18. C
19. A
20. C
21. C
22. B
23. A
24. C
25. B
26. A
27. B
28. A
29. B
30. C
31. B
32. C
33. B
34. B
35. C
36. A
37. B
38. B
39. C
40. C
41. C
42. B
43. C
44. C
45. B
46. C
47. C
48. A
49. B
50. C
51. C
52. B
53. B
54. B
55. C
56. C
57. A
58. A
59. C
60. C
61. A
62. B
63. B
64. B
65. A
66. B
67. A
68. B
69. B
70. D
71. A
72. C
73. C
74. B
75. A
76. A
77. C
78. A
79. A
80. A
81. B
82. A
83. A
84. A
85. A
86. C
87. C
88. B
89. B
90. B
91. C
92. B
93. A
94. C
95. C
96. C
97. C
98. B
99. A
100. B

Post a comment

Leave a Comment

Your email address will not be published. Required fields are marked *