IOT
Unit 1
1. What does IoT stand for?
A. Internet of Technology
B. Internet of Things
C. Internet of Tomorrow
D. Internet of Tools
Answer: B. Internet of Things
2. Which of the following best defines the Internet of Things (IoT)?
A. A network of physical devices that use the internet to interact, collect, and exchange data
B. A new type of internet exclusively for smart devices
C. A technology for connecting computers to the internet
D. A software tool for managing network devices
Answer: A. A network of physical devices that use the internet to interact, collect, and exchange data
3. What are the main layers in a typical IoT system architecture?
A. Hardware, Software, Network
B. Perception, Network, Application
C. Input, Output, Processing
D. Client, Server, Database
Answer: B. Perception, Network, Application
4. Which of the following is NOT a component of IoT?
A. Sensors
B. Actuators
C. Cloud Services
D. Word Processor
Answer: D. Word Processor
5. Which layer of IoT architecture is responsible for data collection from the environment?
A. Network Layer
B. Perception Layer
C. Application Layer
D. Security Layer
Answer: B. Perception Layer
6. What role do sensors play in an IoT system?
A. They act as data processors
B. They connect devices to the internet
C. They gather data from the environment
D. They visualize data
Answer: C. They gather data from the environment
7. Which of the following is a common application of IoT?
A. Online shopping
B. Remote health monitoring
C. Desktop publishing
D. File compression
Answer: B. Remote health monitoring
8. What is a significant challenge of IoT implementation?
A. High-speed internet
B. Device compatibility
C. Data privacy and security
D. Lack of software updates
Answer: C. Data privacy and security
9. Which IoT component is used to take action based on data collected?
A. Sensors
B. Actuators
C. Cloud Services
D. Routers
Answer: B. Actuators
10. In an IoT system, what is the primary function of the application layer?
A. To handle physical connections
B. To manage data communication
C. To process and interpret data for user-specific applications
D. To secure data transmission
Answer: C. To process and interpret data for user-specific applications
11. What technology is commonly used in IoT devices to communicate with each other?
A. Bluetooth
B. Wi-Fi
C. Zigbee
D. All of the above
Answer: D. All of the above
12. Which of the following is NOT a challenge associated with IoT?
A. Interoperability
B. Limited connectivity
C. High power consumption
D. Unlimited storage
Answer: D. Unlimited storage
13. What is the primary purpose of the network layer in an IoT architecture?
A. To sense environmental data
B. To provide a user interface
C. To transfer data to and from the internet
D. To analyze data
Answer: C. To transfer data to and from the internet
14. Which of the following is a security concern in IoT?
A. Over-the-air updates
B. Weak encryption
C. Low-cost sensors
D. High-speed processors
Answer: B. Weak encryption
15. Which communication protocol is NOT typically used in IoT?
A. HTTP
B. MQTT
C. TCP/IP
D. MS-DOS
Answer: D. MS-DOS
16. In the context of IoT, what does "edge computing" refer to?
A. Data processing at centralized servers
B. Data processing close to the data source
C. Enhancing data visualization tools
D. Storing data in the cloud
Answer: B. Data processing close to the data source
17. Which IoT application is crucial for optimizing energy usage in smart homes?
A. Smart thermostats
B. Fitness trackers
C. Digital assistants
D. Online banking apps
Answer: A. Smart thermostats
18. What type of sensor is commonly used in smart agricultural IoT applications?
A. Pressure sensor
B. Moisture sensor
C. Temperature sensor
D. Gyroscope
Answer: B. Moisture sensor
19. Which IoT device is commonly used for tracking physical activity?
A. Smart thermostat
B. Fitness tracker
C. Smart refrigerator
D. Smart speaker
Answer: B. Fitness tracker
20. In IoT, what does the term "interoperability" mean?
A. The ability of devices to operate without power
B. The ability of devices to work seamlessly with other devices and systems
C. The ability to connect to the internet
D. The ability to upgrade automatically
Answer: B. The ability of devices to work seamlessly with other devices and systems
Some advanced
21. Which of the following IoT components is used for data storage and processing?
A. Sensors
B. Actuators
C. Cloud services
D. Power supply
Answer: C. Cloud services
22. What is the role of actuators in an IoT system?
A. They collect data from the environment.
B. They process and analyze data.
C. They take actions based on processed data.
D. They store data in the cloud.
Answer: C. They take actions based on processed data.
23. Which of the following is a benefit of IoT in healthcare?
A. Real-time patient monitoring
B. Manual data entry
C. Increased paper records
D. Longer response times
Answer: A. Real-time patient monitoring
24. In the IoT architecture, which layer ensures secure communication and data integrity?
A. Perception layer
B. Network layer
C. Middleware layer
D. Security layer
Answer: D. Security layer
25. Which protocol is known for its lightweight messaging suitable for IoT applications?
A. FTP
B. MQTT
C. HTTPS
D. SMTP
Answer: B. MQTT
26. What does LPWAN stand for in the context of IoT connectivity?
A. Low-Power Wide-Area Network
B. Local Personal Wireless Access Network
C. Long-Range Private Wireless Area Network
D. Low Performance Wireless Access Network
Answer: A. Low-Power Wide-Area Network
27. What is a primary challenge of IoT device deployment in remote areas?
A. High costs of devices
B. Lack of technical expertise
C. Limited power supply and connectivity
D. Over-reliance on cloud storage
Answer: C. Limited power supply and connectivity
28. Which of the following best describes "IoT Gateway"?
A. A device that connects to multiple sensors and acts as a bridge between devices and the cloud
B. A physical barrier protecting IoT devices
C. An application used for controlling IoT devices
D. A cloud-based server for storing IoT data
Answer: A. A device that connects to multiple sensors and acts as a bridge between devices and the
cloud
29. Which application is NOT typically associated with IoT technology?
A. Smart cities
B. Virtual reality gaming
C. Industrial automation
D. Environmental monitoring
Answer: B. Virtual reality gaming
30. Which characteristic is essential for IoT devices to function effectively?
A. High memory capacity
B. Low latency in data transmission
C. High-frequency data updates
D. Continuous human intervention
Answer: B. Low latency in data transmission
31. In an IoT network, what is the purpose of edge devices?
A. To provide user interfaces
B. To filter and process data locally before sending it to the cloud
C. To manage connectivity across the network
D. To encrypt data for security
Answer: B. To filter and process data locally before sending it to the cloud
32. Which of the following is an example of a machine-to-machine (M2M) communication in IoT?
A. A smartphone sending messages to a server
B. A smart thermostat adjusting the temperature based on sensor data
C. A person manually entering data into a device
D. A cloud service updating its software
Answer: B. A smart thermostat adjusting the temperature based on sensor data
33. Which IoT application is widely used for predictive maintenance in industries?
A. Smart home automation
B. Wearable fitness trackers
C. Connected manufacturing equipment
D. Digital marketing tools
Answer: C. Connected manufacturing equipment
34. What is the purpose of using RFID in IoT systems?
A. To encrypt data for secure transmission
B. To identify and track objects wirelessly using radio waves
C. To provide internet access to remote areas
D. To enhance the battery life of IoT devices
Answer: B. To identify and track objects wirelessly using radio waves
35. Which factor is crucial for ensuring the scalability of IoT systems?
A. The size of the physical devices
B. The ability to support numerous devices and data streams
C. The number of sensors used
D. The type of user interface
Answer: B. The ability to support numerous devices and data streams
Unit 2
1. What is a Raspberry Pi?
A. A type of fruit
B. A single-board computer
C. A gaming console
D. A home appliance
Answer: B. A single-board computer
2. Which of the following operating systems is commonly used with Raspberry Pi?
A. macOS
B. Windows 10
C. Raspberry Pi OS (formerly Raspbian)
D. Android
Answer: C. Raspberry Pi OS (formerly Raspbian)
3. What is the first step in setting up a Raspberry Pi?
A. Connect to a wireless network
B. Insert the microSD card with the operating system
C. Install Python
D. Attach a heat sink
Answer: B. Insert the microSD card with the operating system
4. Which component is necessary to power a Raspberry Pi?
A. AAA batteries
B. 5V micro-USB or USB-C power supply
C. Solar panel
D. 12V DC adapter
Answer: B. 5V micro-USB or USB-C power supply
5. What is the default desktop environment for Raspberry Pi OS?
A. GNOME
B. LXDE (Pixel)
C. KDE Plasma
D. Unity
Answer: B. LXDE (Pixel)
6. Which command is used in Linux to list the contents of a directory on the Raspberry Pi?
A. dir
B. list
C. ls
D. show
Answer: C. ls
7. What programming language comes pre-installed on Raspberry Pi and is commonly used for
coding on it?
A. C++
B. Java
C. Python
D. Ruby
Answer: C. Python
8. Which GPIO pin on the Raspberry Pi provides a 3.3V power supply?
A. Pin 1
B. Pin 2
C. Pin 3
D. Pin 4
Answer: A. Pin 1
9. What is the purpose of the `sudo` command in Linux?
A. To switch to a different user
B. To open a text editor
C. To execute commands with superuser privileges
D. To display directory contents
Answer: C. To execute commands with superuser privileges
10. Which file extension is used for Python scripts?
A. .exe
B. .txt
C. .py
D. .doc
Answer: C. .py
11. How do you update the package list on Raspberry Pi OS?
A. sudo update
B. apt-get refresh
C. sudo apt-get update
D. update-packages
Answer: C. sudo apt-get update
12. What is the purpose of the Raspberry Pi's GPIO pins?
A. To connect HDMI displays
B. To connect USB devices
C. To interface with electronic components and sensors
D. To provide internet access
Answer: C. To interface with electronic components and sensors
13. Which Python library is commonly used to control GPIO pins on the Raspberry Pi?
A. NumPy
B. GPIO Zero
C. SciPy
D. Matplotlib
Answer: B. GPIO Zero
14. What command is used to create a new directory in Linux on the Raspberry Pi?
A. mkdir
B. newdir
C. create-dir
D. dircreate
Answer: A. mkdir
15. When first starting a Raspberry Pi, which tool is often used to configure settings like localization
and SSH?
A. PiConfig
B. raspi-config
C. setup-wizard
D. PiSetup
Answer: B. raspi-config
16. Which command is used to run a Python script named `[Link]` in the terminal on a
Raspberry Pi?
A. python3 [Link]
B. run [Link]
C. execute [Link]
D. py [Link]
Answer: A. python3 [Link]
17. What is the default username for a new installation of Raspberry Pi OS?
A. admin
B. user
C. root
D. pi
Answer: D. pi
18. To safely shut down a Raspberry Pi from the terminal, which command should be used?
A. shutdown now
B. sudo shutdown -h now
C. halt
D. stop
Answer: B. sudo shutdown -h now
19. Which programming environment on Raspberry Pi is designed specifically for beginners?
A. Thonny Python IDE
B. PyCharm
C. Visual Studio Code
D. Atom
Answer: A. Thonny Python IDE
20. What is the purpose of the `chmod` command in Linux?
A. To change the file owner
B. To modify file permissions
C. To delete files
D. To copy files
Answer: B. To modify file permissions
21. Which of the following tools can be used to write a Raspberry Pi OS image onto a microSD card?
A. Microsoft Word
B. Balena Etcher
C. WinRAR
D. Adobe Photoshop
Answer: B. Balena Etcher
22. What is the primary function of the `ifconfig` command in Linux on a Raspberry Pi?
A. To format the microSD card
B. To display or configure network interfaces
C. To install software packages
D. To manage GPIO pins
Answer: B. To display or configure network interfaces
23. What software is typically used for remote desktop access to the Raspberry Pi from another
computer?
A. Notepad++
B. VNC Viewer
C. Spotify
D. VLC Media Player
Answer: B. VNC Viewer
24. Which command in Linux is used to change the current directory?
A. cd
B. mv
C. cp
D. ls
Answer: A. cd
25. What type of USB ports are typically found on the Raspberry Pi 4 Model B?
A. USB 1.1
B. USB 2.0 and USB 3.0
C. USB 3.1
D. USB 4.0
Answer: B. USB 2.0 and USB 3.0
26. Which application on the Raspberry Pi can be used to write Python scripts?
A. Microsoft Excel
B. Scratch
C. Thonny Python IDE
D. MS Paint
Answer: C. Thonny Python IDE
27. Which command is used to view the manual for a command in Linux?
A. help
B. manual
C. doc
D. man
Answer: D. man
28. What is the primary purpose of the Raspberry Pi's HDMI port?
A. To connect audio devices
B. To provide power to the Raspberry Pi
C. To connect to a monitor or TV for display output
D. To connect to a mouse
Answer: C. To connect to a monitor or TV for display output
29. How can you enable SSH on a Raspberry Pi without accessing the GUI?
A. By installing a special SSH application
B. By creating an empty file named "ssh" in the boot directory of the microSD card
C. By connecting a special keyboard
D. By installing a new OS
Answer: B. By creating an empty file named "ssh" in the boot directory of the microSD card
30. Which command is used to copy files in Linux on the Raspberry Pi?
A. mv
B. cp
C. rm
D. cpy
Answer: B. cp
31. What does GPIO stand for in the context of Raspberry Pi?
A. General Power Input/Output
B. General Purpose Input/Output
C. Graphics Processing Interface Output
D. General Processor Interface Operation
Answer: B. General Purpose Input/Output
32. Which programming language is ideal for beginners to learn on a Raspberry Pi, aside from
Python?
A. JavaScript
B. C++
C. Scratch
D. Perl
Answer: C. Scratch
33. What does the `df -h` command display in Linux on the Raspberry Pi?
A. Current date and time
B. Disk space usage in a human-readable format
C. Network configuration details
D. List of all installed packages
Answer: B. Disk space usage in a human-readable format
34. Which command in Linux on the Raspberry Pi is used to remove a directory?
A. delete
B. rm -r
C. rmdir
D. remove
Answer: C. rmdir
35. What does the Python `print()` function do?
A. Deletes a file
B. Displays output to the screen
C. Runs a script in the background
D. Installs Python packages
Answer: B. Displays output to the screen
36. What is the recommended way to safely eject a USB drive from a Raspberry Pi?
A. Just pull it out
B. Use the `sudo umount` command
C. Shutdown the Raspberry Pi
D. Use a hammer
Answer: B. Use the `sudo umount` command
37. How can you install new software packages on a Raspberry Pi running Raspberry Pi OS?
A. Use the `sudo apt-get install` command
B. Download from the internet and double-click
C. Use the Pi's built-in app store
D. Burn a CD with the software
Answer: A. Use the `sudo apt-get install` command
38. Which of the following commands is used to display the contents of a text file in Linux on the
Raspberry Pi?
A. read
B. open
C. cat
D. view
Answer: C. cat
39. What should you do if your Raspberry Pi freezes or becomes unresponsive?
A. Unplug the power supply immediately
B. Restart it using the command `sudo reboot`
C. Wait for it to shut down automatically
D. Press the reset button
Answer: B. Restart it using the command `sudo reboot`
40. Which command is used to terminate a running process in Linux on the Raspberry Pi?
A. start
B. halt
C. kill
D. stop
Answer: C. kill
41. Which of the following is NOT a standard model of Raspberry Pi?
A. Raspberry Pi 3 Model B
B. Raspberry Pi Zero
C. Raspberry Pi Nano
D. Raspberry Pi 4 Model B
Answer: C. Raspberry Pi Nano
42. Which port on the Raspberry Pi allows you to connect an external monitor or TV?
A. USB
B. Ethernet
C. HDMI
D. GPIO
Answer: C. HDMI
43. Which Python library can be used to control LED lights connected to GPIO pins on a Raspberry Pi?
A. PyGame
B. [Link]
C. NumPy
D. Pandas
Answer: B. [Link]
44. Which command is used to check the current directory you are in on the Raspberry Pi?
A. pwd
B. cd
C. ls
D. dir
Answer: A. pwd
Unit 3
1. What is a sensor used for in an IoT system?
A. To process data
B. To convert physical phenomena into electrical signals
C. To display data
D. To store data
Answer: B. To convert physical phenomena into electrical signals
2. Which of the following is an example of an actuator?
A. Temperature sensor
B. Light sensor
C. Servo motor
D. Pressure sensor
Answer: C. Servo motor
3. How does a Raspberry Pi interface with sensors and actuators?
A. Using GPIO pins
B. Using HDMI ports
C. Using USB ports
D. Using audio jacks
Answer: A. Using GPIO pins
4. What is the function of a relay in an actuator system?
A. To measure temperature
B. To control high-current devices using a low-current signal
C. To read light levels
D. To monitor humidity
Answer: B. To control high-current devices using a low-current signal
5. Which protocol is commonly used for communication between sensors and Raspberry Pi over
short distances?
A. UART
B. I2C
C. SPI
D. RS-232
Answer: B. I2C
6. How is analog sensor data typically read on a Raspberry Pi, given it has digital-only GPIO pins?
A. Directly through GPIO pins
B. By using an Analog-to-Digital Converter (ADC)
C. By using a digital sensor
D. By using a USB interface
Answer: B. By using an Analog-to-Digital Converter (ADC)
7. Which library is commonly used in Python to interface with GPIO pins on the Raspberry Pi?
A. NumPy
B. GPIO Zero
C. Pandas
D. OpenCV
Answer: B. GPIO Zero
8. What does the `[Link](pin, [Link])` command do in Python?
A. Sets the GPIO pin to input mode
B. Sets the GPIO pin to output mode
C. Reads the value from the GPIO pin
D. Configures the pin for PWM
Answer: B. Sets the GPIO pin to output mode
9. Which sensor would you use to measure temperature?
A. DHT11
B. BMP180
C. HC-SR04
D. MQ-2
Answer: A. DHT11
10. What is the primary function of the `read()` method when working with sensors in Python?
A. To configure sensor settings
B. To initialize the sensor
C. To retrieve data from the sensor
D. To calibrate the sensor
Answer: C. To retrieve data from the sensor
11. What type of data does a photoresistor (LDR) sensor provide?
A. Temperature
B. Light intensity
C. Pressure
D. Humidity
Answer: B. Light intensity
12. How do you typically connect a digital sensor to the Raspberry Pi?
A. Using a relay
B. Using an ADC
C. Directly to the GPIO pins
D. Using a USB cable
Answer: C. Directly to the GPIO pins
13. In the context of Raspberry Pi and sensors, what does ADC stand for?
A. Analog-to-Digital Converter
B. Advanced Digital Controller
C. Analog Data Collector
D. Automated Data Channel
Answer: A. Analog-to-Digital Converter
14. What is the purpose of the `[Link](pin, [Link])` command in Python?
A. To read the value from the GPIO pin
B. To set the GPIO pin to a high voltage level
C. To initialize the GPIO pin
D. To configure the GPIO pin as input
Answer: B. To set the GPIO pin to a high voltage level
15. Which actuator is used to control the position of objects in a precise manner?
A. Servo motor
B. Stepper motor
C. Solenoid
D. Relay
Answer: A. Servo motor
16. What type of signal does a digital sensor output?
A. Analog voltage
B. Frequency
C. Digital voltage (high or low)
D. Current
Answer: C. Digital voltage (high or low)
17. What type of communication is commonly used for interfacing with multiple sensors on the
same bus?
A. I2C
B. UART
C. SPI
D. RS-485
Answer: A. I2C
18. Which Python library is commonly used for reading data from a DHT11 temperature and
humidity sensor?
A. Adafruit_DHT
B. [Link]
C. PySerial
D. PyGame
Answer: A. Adafruit_DHT
19. How would you typically power a Raspberry Pi when connecting sensors and actuators?
A. Through the USB port
B. Through the GPIO pins
C. Through an external power supply
D. Through the HDMI port
Answer: C. Through an external power supply
20. What is the main advantage of using I2C for sensor communication?
A. It supports high-speed data transfer
B. It allows for communication over long distances
C. It supports multiple devices on the same bus with only two wires
D. It is compatible with only analog sensors
Answer: C. It supports multiple devices on the same bus with only two wires
21. What type of sensor is an HC-SR04 commonly known as?
A. Temperature sensor
B. Ultrasonic sensor
C. Light sensor
D. Humidity sensor
Answer: B. Ultrasonic sensor
22. Which of the following sensors can detect motion?
A. LDR
B. DHT22
C. PIR (Passive Infrared) sensor
D. BMP280
Answer: C. PIR (Passive Infrared) sensor
23. What is the primary purpose of a pull-up resistor when connecting a sensor to a Raspberry Pi?
A. To protect the GPIO pins from high voltage
B. To ensure a default voltage level on an input pin
C. To reduce noise in the circuit
D. To increase the sensor's sensitivity
Answer: B. To ensure a default voltage level on an input pin
24. When interfacing a servo motor with a Raspberry Pi, which signal is typically used to control its
position?
A. Digital HIGH/LOW signal
B. Pulse Width Modulation (PWM) signal
C. Analog voltage
D. Frequency modulation
Answer: B. Pulse Width Modulation (PWM) signal
25. Which of the following is NOT an example of an actuator?
A. Servo motor
B. Stepper motor
C. Temperature sensor
D. Relay
Answer: C. Temperature sensor
26. How does a Raspberry Pi read analog sensor data using an MCP3008 ADC?
A. Directly through GPIO pins
B. By using an I2C interface
C. By converting the analog signal to digital using SPI
D. By using a USB adapter
Answer: C. By converting the analog signal to digital using SPI
27. What is the typical range of output values for a digital sensor?
A. 0 to 1023
B. 0 to 5V
C. HIGH (1) or LOW (0)
D. 0 to 255
Answer: C. HIGH (1) or LOW (0)
28. Which command in Python’s `[Link]` library is used to clean up all GPIO pin states?
A. [Link]()
B. [Link]()
C. [Link]()
D. [Link]()
Answer: A. [Link]()
29. In Python, what does the `[Link](1)` function do when reading data from a sensor?
A. Turns off the sensor
B. Waits for 1 second before continuing
C. Reads sensor data continuously
D. Increases the data read speed
Answer: B. Waits for 1 second before continuing
30. Which component is commonly used to interface a high-current motor with a Raspberry Pi?
A. Resistor
B. Capacitor
C. Transistor or relay
D. LED
Answer: C. Transistor or relay
31. What does SPI stand for in the context of sensor communication?
A. Serial Port Interface
B. Serial Peripheral Interface
C. Signal Processing Interface
D. Sensor Protocol Interface
Answer: B. Serial Peripheral Interface
32. When using a temperature sensor with a Raspberry Pi, what unit is the temperature typically
measured in?
A. Fahrenheit only
B. Celsius only
C. Kelvin only
D. Celsius or Fahrenheit
Answer: D. Celsius or Fahrenheit
33. Which of the following sensors is typically used to detect smoke or gas?
A. BMP180
B. MQ-2
C. LDR
D. DS18B20
Answer: B. MQ-2
34. What does the Python command `[Link](pin)` do?
A. Sets a pin as input
B. Reads the digital value from the specified GPIO pin
C. Writes a value to the specified GPIO pin
D. Configures a pin for PWM output
Answer: B. Reads the digital value from the specified GPIO pin
35. What is the role of a capacitor in a circuit with a sensor?
A. To regulate voltage
B. To store electrical energy temporarily
C. To increase current flow
D. To amplify the signal
Answer: B. To store electrical energy temporarily
36. What is the key difference between a digital and an analog sensor?
A. Digital sensors measure only temperature, while analog sensors measure voltage.
B. Digital sensors output binary signals, while analog sensors output continuous voltage signals.
C. Digital sensors are more accurate than analog sensors.
D. Digital sensors are used for output, while analog sensors are used for input.
Answer: B. Digital sensors output binary signals, while analog sensors output continuous voltage
signals.
37. What does the function `[Link](pin, frequency)` initialize in Python?
A. An analog sensor read function
B. A digital sensor write function
C. A PWM instance on the specified GPIO pin at the given frequency
D. A signal processing unit
Answer: C. A PWM instance on the specified GPIO pin at the given frequency
38. Which sensor would you use to measure atmospheric pressure?
A. PIR sensor
B. BMP280
C. LDR
D. DHT11
Answer: B. BMP280
39. How do you typically read multiple sensor values at once on a Raspberry Pi?
A. Sequentially by writing separate code blocks for each sensor
B. Using a multiplexer
C. Using a single GPIO pin
D. Using a loop to read each sensor in a sequence
Answer: D. Using a loop to read each sensor in a sequence
40. Which function is commonly used in Python to repeatedly execute a code block for reading
sensor data?
A. repeat()
B. loop()
C. while()
D. execute()
Answer: C. while()