0% found this document useful (0 votes)
51 views5 pages

Worksheet # 2 Answering Key

The document discusses programming robots and single board computers like Raspberry Pi. It contains questions about servo motors, their uses and characteristics. It also discusses features of Raspberry Pi like GPIO pins, operating systems and programming languages used with it.

Uploaded by

skhizer127
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views5 pages

Worksheet # 2 Answering Key

The document discusses programming robots and single board computers like Raspberry Pi. It contains questions about servo motors, their uses and characteristics. It also discusses features of Raspberry Pi like GPIO pins, operating systems and programming languages used with it.

Uploaded by

skhizer127
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Worksheet # 2

The City School


Darakhshan Campus

Prep Section

Grade 8

Topic: Programming Robots and Single Board Computer

Q 1 For each question below there are four options A, B, C and D. Circle the best option.

I. What is a servo motor primarily used for?


a. Generating electrical power
b. Providing precise control of angular or linear position
c. Heating applications
d. Data storage.

II. Which of the following is a characteristic feature of a servo motor?


a. High torque and low precision
b. Low torque and high precision
c. Low torque and low precision
d. High torque and high precision.

III. Which of the following statements is true about servo motors?


a. They are generally inexpensive.
b. They require a constant power supply to maintain position.
c. They are widely used in applications where precise control of position is required.
d. They have limited speed control capabilities.

IV. What is the purpose of a servo motor controller?


a. To convert mechanical energy into electrical energy
b. To provide feedback to the motor
c. To regulate the speed of the motor
d. To interpret control signals and adjust the motor's position

V. Which parameter does pulse width modulation (PWM) control in a servo motor system?
a. Voltage
b. Current
c. Frequency
d. Duty cycle

VI. What happens if the load on a servo motor exceeds its torque rating?
a. The motor will stop working.
b. The motor will continue to operate, but with reduced precision.
c. The motor will overheat and potentially burn out.
d. The motor will automatically adjust to accommodate the load.
Worksheet # 2

VII. What is the significance of the term "servo" in "servo motor"?


a. It refers to the motor's ability to serve multiple functions simultaneously.
b. It indicates that the motor can be serviced easily.
c. It signifies the motor's ability to follow a control signal to maintain a specific position.
d. It represents the motor's ability to generate power from a servomechanism.

VIII. What is Raspberry Pi?


a. A type of fruit
b. A single-board computer
c. A variety of software
d. A type of microcontroller

IX. What is the primary purpose of Raspberry Pi?


a. Controlling household appliances
b. Running office productivity software
c. Teaching programming and electronics
d. Playing video games

X. Which operating system is commonly used with Raspberry Pi?


a. Windows 10
b. macOS
c. Linux-based distributions (e.g., Raspberry Pi OS)
d. Android

XI. What is the GPIO (General Purpose Input/Output) used for on Raspberry Pi?
a. Displaying graphics
b. Connecting external storage devices
c. Communicating with sensors and other peripherals
d. Playing audio files

XII. What is the form factor of Raspberry Pi boards?


a. Mini-ITX
b. ATX
c. SODIMM
d. Credit card-sized

XIII. Which programming language is often used for programming Raspberry Pi?
a. Python
b. Java
c. C#
d. Swift

XIV. What does the acronym "USB" stand for?


a. Universal Serial Bus
b. United States of Britain
c. Uniform System of Bytes
d. Ultra-Sensitive Boards
Worksheet # 2

XV. What is the purpose of the HDMI port on Raspberry Pi?


a. Connecting to the internet
b. Powering the device
c. Connecting to a monitor or TV
d. Connecting to external speakers

Q2. Fill in the blanks with an appropriate answer

I. In python counting starts from ______0_________

II. In python _____ Function__________is a group of related statements that perform a specific task.

III. ___Python___________is one of the official programming languages at Google and YouTube.

IV. List is just an ordered collection of items which can be of any data type.

V. del [ ] command is used to delete a list element from the list.

VI. append ( ) command is used to add an item in the list

VII. thislist =["apple", "banana", "cherry", "orange", "kiwi", "melon", "mango"]

a. find the number of elements from the above list. _____6_________

b. What will be the output of the given command?

print(thislist[3]) _orange___________

VIII. print command is used for the ___output / display result ____________in python.

IX. Gpio stands for General purpose input and output

X. SBC stands for Single board Computer

XI. SBC has GPIO pins.__40__________

XII. IOT ___Internet of things_____________


Worksheet # 2

Q3. State whether True or False

I. Gpio has 50 pins ____ False______


II. HDMI connector can be used to connect monitor or TV___ True_______
III. print command is used to display the result/message on the screen True
IV. Windows is the operating system of the Raspberry-pi___ False
V. Jumper wires are used to control the flow of current____ False__
VI. Python is the official language of Raspberry-pi_ True_______
VII. Variables contain data ____ True______
VIII. Syntax is the language rules___ True_ ______

Q4. Raspberry Pi is a single board computer. State advantages of using Raspberry Pi?
Does Many Things: You can use Raspberry Pi for lots of different stuff like making a computer, learning,
controlling your home, watching movies, and more.
Small and Light: Raspberry Pi is tiny and doesn't weigh much, so it's easy to carry around.
Connects to Other Stuff: You can plug in different things like cameras, screens, and gadgets to make it do
even more.
Relevant answers will be accepted

Q.5 Define loops. Enlist different types of loops.


Loops are programming constructs used to execute a block of code repeatedly based on a condition. They
help automate repetitive tasks and make code more efficient.
For Loop: A for loop is used to iterate over a sequence (such as a list, tuple, or range) for a predetermined
number of times. (That works for limited time period)
While Loop: A while loop executes a block of code repeatedly as long as a specified condition is true.
(That works for unlimited time)
Q6. Write a brief introduction about IoT.
The Internet of Things, commonly abbreviated as IoT, refers to the interconnected network of physical
devices, vehicles, home appliances, and other items embedded with sensors, software, and connectivity
Worksheet # 2

Q7. What is Raspberry Pi, and what is it used for?


Raspberry Pi is a series of small, affordable, single-board computers developed by the Raspberry Pi
Foundation, a UK-based charity. These credit card-sized computers are designed to promote the teaching
of basic computer science and programming skills.
• DIY Projects = Do it your self-projects like: Smart irrigation system
• Prototyping = A first or early model of a product that allows you to test assumptions before
developing a final version
• Home Automation = Security system, Fire alarm etc.
Relevant answers will be accepted

Q8. You want to use Raspberry Pie to connect a home security system that monitors your house and alerts
you if there is any suspicious activity. What hardware do you need to detect and report suspicious activity?
Sonar Sensor
Camera
Relevant answers will be accepted
Q9. What types of components can you interface with using GPIO pins, and what are some common
examples?
Sensors
LEDs
Servo Motors
Relevant answers will be accepted

Q10. You have a robotic arm that needs to move precisely to a specific position. which type of
component you are going to use?
Servo Motor because it rotates for 0 to 180 Degrees.
Relevant answers will be accepted
Q11.Group of students made a smart robotic car, but they want to make it run without LED, mouse and
keyboard. Explain why do they need a bootloader?
A bootloader is a small program that initializes the system hardware and loads the main operating system
(OS) or another program into memory for execution. It is typically the first piece of software that runs
when a computer or microcontroller system is powered on or reset.

You might also like