Quiz: Grade 8 Coding and Robotics — 33 questions

Detailed questions and answers

1. What does voltage represent in an electrical circuit?

The opposition to electron flow
The number of instructions in a program
The electrical pressure between two points
The flow of electrons through a circuit

The electrical pressure between two points

Explanation

Voltage is the electrical potential difference, or pressure, between two points and is measured in volts. Unlike current, voltage does not flow by itself.

2. Which quantity describes the flow of electrons through a circuit?

Resistance
Voltage
Current
Potential difference

Current

Explanation

Current is the flow of electrons through a circuit and is measured in amperes or milliamperes. Voltage instead describes electrical pressure between two points.

3. A circuit has a voltage of 12 V and a current of 3 A. What is its resistance?

0.25 ohms
9 ohms
36 ohms
4 ohms

4 ohms

Explanation

Using Ohm’s Law rearranged as R = V/I, the resistance is 12/3 = 4 ohms.

4. What does resistance measure in an electrical circuit?

The number of electrical states available
A material’s opposition to current flow
The rate at which electrons flow
The pressure between two electrical points

A material’s opposition to current flow

Explanation

Resistance is a material’s opposition to the flow of current and is measured in ohms.

5. What best defines an embedded system?

A processor that requires separate memory and I/O controllers
A program statement that controls electrical current
A general-purpose computer running many types of software
Specialised circuitry designed for one dedicated job

Specialised circuitry designed for one dedicated job

Explanation

An embedded system combines specialised circuitry and purpose-tailored software to perform a specific dedicated job. This distinguishes it from a general-purpose computer.

6. Which statement correctly distinguishes a microprocessor from a microcontroller?

A microprocessor needs separate supporting components, while a microcontroller integrates them on one chip
A microprocessor operates only at 5 V, while a microcontroller accepts 7–12 V input
A microprocessor is used only for dedicated jobs, while a microcontroller runs general-purpose software
A microprocessor includes memory and I/O ports on one chip, while a microcontroller does not

A microprocessor needs separate supporting components, while a microcontroller integrates them on one chip

Explanation

A microprocessor is primarily a processing brain and needs separate memory, motherboard, and I/O controllers. A microcontroller integrates the processor, memory, and I/O ports on one self-contained chip.

7. Which input voltage range is recommended for an Arduino Uno through its barrel jack?

16–24 V
7–12 V
2–5 V
0–5 V

7–12 V

Explanation

The Arduino Uno operates at 5 V and accepts a recommended input voltage of 7–12 V through its barrel jack.

8. What sequence describes the IPO cycle while a powered microcontroller is operating?

It processes outputs, stores them in memory, and reads inputs afterward
It sends outputs, receives inputs, and then shuts down
It reads inputs, processes them with a program, and sends outputs
It reads inputs once, processes them, and stops when output is sent

It reads inputs, processes them with a program, and sends outputs

Explanation

The IPO cycle continuously reads environmental inputs, processes them with a program, and sends outputs to devices for as long as the microcontroller has power.

9. What is the key difference between digital and analog ports?

Digital ports represent two states, while analog ports handle a range of values
Digital ports require a program, while analog ports operate without software
Digital ports use current, while analog ports use resistance
Digital ports measure the environment, while analog ports take physical action

Digital ports represent two states, while analog ports handle a range of values

Explanation

Digital ports use HIGH (5 V) or LOW (0 V), giving two states. Analog ports can handle a wider range of values.

10. Why must an LED be connected in series with a current-limiting resistor when driven by an Arduino pin?

The LED requires a resistor to increase its forward voltage
The resistor makes the LED emit three separate colors
The LED’s low internal resistance could allow excessive current
The resistor converts the digital signal into an analog signal

The LED’s low internal resistance could allow excessive current

Explanation

An LED has low internal resistance, so connecting it directly could permit excessive current and damage the LED or Arduino pin. A current-limiting resistor prevents this.

11. What resistor value is needed for a 5 V Arduino pin driving a 2 V LED at a target current of 20 mA?

250 Ω
100 Ω
50 Ω
150 Ω

150 Ω

Explanation

Using Ohm’s law, R = (5 V − 2 V) / 0.02 A = 150 Ω. The resistor accounts for the remaining 3 V after the LED’s 2 V drop.

12. What sequence does the Blinky program repeat to make an LED flash?

Turn HIGH, wait 1 second, turn LOW, wait 1 second
Turn LOW, wait 1 second, turn HIGH, wait 1 second
Turn HIGH and LOW immediately without pauses
Turn HIGH, wait 2 seconds, turn LOW, wait 2 seconds

Turn HIGH, wait 1 second, turn LOW, wait 1 second

Explanation

The Blinky program repeatedly sets the LED HIGH, waits one second, sets it LOW, and waits another second.

13. What is a floating digital input?

A pin firmly connected to HIGH
A pin firmly connected to LOW
A pin configured to produce an analog voltage
A pin connected firmly to neither HIGH nor LOW

A pin connected firmly to neither HIGH nor LOW

Explanation

A floating input is connected firmly to neither HIGH nor LOW, so its reading can be unreliable. A pull-down input, in contrast, is held at a definite LOW.

14. What digital level does a pushbutton input use a 10 kΩ pull-down resistor to produce when the button is unpressed and pressed, respectively?

LOW when unpressed and HIGH when pressed
HIGH in both states
HIGH when unpressed and LOW when pressed
LOW in both states

LOW when unpressed and HIGH when pressed

Explanation

The pull-down resistor holds the unpressed input at LOW. Pressing the button connects the input to 5 V, making it HIGH.

15. How does the pushbutton program control the LED connected to pin 13?

It reads pin 2 and sets pin 13 HIGH only when the reading is HIGH
It sets pin 13 HIGH whenever pin 2 reads LOW
It reads the analog value of pin 2 and gradually varies pin 13
It reads pin 13 and copies its state to pin 2

It reads pin 2 and sets pin 13 HIGH only when the reading is HIGH

Explanation

The program reads digital pin 2 into PB2_state, then sets pin 13 HIGH when that state is HIGH and LOW otherwise.

16. What does a voltage divider produce when two resistors are connected in series?

A fixed 5 V output regardless of the input
A digital reading without an analog-to-digital converter
A proportional voltage at the midpoint
A current-free connection between the resistors

A proportional voltage at the midpoint

Explanation

Two series resistors divide the total voltage, producing a proportional voltage that can be measured at their midpoint. A single resistor does not create this divider arrangement.

17. How does an Arduino Uno represent an analog voltage between 0 V and 5 V on an analog input?

As a binary HIGH or LOW value only
As a value from 0 to 5 on digital pins 0–5
As a value from 0 to 255 on pins A0–A5
As a value from 0 to 1023 on pins A0–A5

As a value from 0 to 1023 on pins A0–A5

Explanation

The Arduino Uno converts 0–5 V analog input into readings from 0 to 1023 on its six analog inputs, A0 through A5.

18. What conversion is generally needed before using an Arduino analog input to control output brightness?

Add 1023 to the input so the output reaches 255
Map the input range 0–255 to the output range 0–1023
Convert the input directly into a HIGH or LOW state
Map the input range 0–1023 to the output range 0–255

Map the input range 0–1023 to the output range 0–255

Explanation

Arduino analog input readings range from 0 to 1023, while brightness control commonly uses an output range of 0 to 255. Dividing the input by four is one simple mapping method.

19. What is the primary purpose of a FreeCAD workbench?

To organize tools for a particular type of design task
To store all features belonging to one designed part
To display only the active sketch in two dimensions
To convert every sketch into a finished solid automatically

To organize tools for a particular type of design task

Explanation

A workbench is a collection of FreeCAD tools organized for a specific job, such as sketching or part design. The Sketcher and Part Design workbenches serve different purposes within that organization.

20. Which FreeCAD object serves as the main container for the three-dimensional features of one designed part?

A Body
A Workbench
A Sketch
A Tasks tab

A Body

Explanation

A Body holds the 3D features that make up one designed part. A sketch is instead a flat 2D drawing used to begin creating that part.

21. What is the role of a sketch in a typical FreeCAD modeling workflow?

It provides a flat 2D starting drawing for a 3D shape
It displays instructions for the currently active tool
It groups all workbenches used in a project
It stores the finished solid features of a part

It provides a flat 2D starting drawing for a 3D shape

Explanation

A sketch is a flat 2D drawing made on a chosen plane and serves as the starting point for a 3D shape. A Body stores the resulting 3D features, while the Tasks tab provides tool instructions and settings.

22. Why would a designer use a construction line in a sketch?

To guide planning and measurement without adding geometry to the final solid
To replace every normal line used in the sketch
To connect separate sketches into a single workbench
To create a solid edge that remains in the finished model

To guide planning and measurement without adding geometry to the final solid

Explanation

A construction line is a planning and measurement guide that is excluded from the final solid model and appears blue in construction mode. Normal geometry lines, by contrast, contribute to the model.

23. To locate the centre of a 60 mm wide object using construction geometry, what guide should be drawn from the origin?

A 120 mm construction line
A 15 mm construction line
A 30 mm construction line
A 60 mm construction line

A 30 mm construction line

Explanation

The centre lies halfway across the 60 mm width, so the guide from the origin should be 30 mm long. A perpendicular construction line then marks the other centre direction.

24. What distinguishes a polyline from drawing separate line segments?

A polyline creates regular polygons with a chosen number of sides
A polyline creates a single curved segment with adjustable control points
A polyline creates connected straight segments in one continuous action
A polyline produces a rounded opening for a bolt or pin

A polyline creates connected straight segments in one continuous action

Explanation

A polyline creates a connected chain of straight-line segments without repeatedly selecting the line tool. Separate line operations require selecting the line tool again for each segment.

25. What is the intended function of a slot in a mechanical sketch?

To provide a smooth freeform curve controlled by draggable points
To let a bolt or pin slide along an oblong rounded opening
To represent a stretched circular outline without an opening
To create a regular shape with a fixed number of straight sides

To let a bolt or pin slide along an oblong rounded opening

Explanation

A slot is an oblong, rounded opening that allows a bolt or pin to slide rather than remain in one round hole. Polygons and ellipses describe different types of geometry.

26. What do degrees of freedom represent in a sketch?

The number of geometric constraints applied to a shape
The total number of lines and curves in a sketch
The dimensions required to manufacture the shape
The independent ways a shape can still move, stretch, or rotate

The independent ways a shape can still move, stretch, or rotate

Explanation

Degrees of freedom are the independent ways a shape can still move, stretch, or rotate before it is fixed. Constraints remove these remaining movements.

27. How many degrees of freedom does a freely drawn single line have?

Five
Two
Four
Three

Four

Explanation

A freely drawn single line has four degrees of freedom: vertical position, horizontal position, length, and angle.

28. Which sequence fully constrains a single line?

Set its color, thickness, midpoint, and endpoint
Make it parallel, equal, symmetric, and tangent to another line
Fix its vertical position, horizontal position, length, and angle
Set its radius, diameter, area, and perimeter

Fix its vertical position, horizontal position, length, and angle

Explanation

A single line can be fully constrained by fixing its vertical and horizontal positions, setting its length, and fixing its angle.

29. What does a green fully constrained sketch indicate in FreeCAD?

The sketch is ready to be exported as an image
The sketch contains only construction geometry
The sketch has zero degrees of freedom and cannot move accidentally
The sketch contains no geometric elements

The sketch has zero degrees of freedom and cannot move accidentally

Explanation

A fully constrained FreeCAD sketch has zero degrees of freedom and turns green, indicating that it cannot move accidentally.

30. What is the primary purpose of a fillet in a model?

To increase the thickness of an entire solid
To create a reference surface for a new sketch
To round a sharp edge and make the model smoother and safer
To position a sketch at a different angle

To round a sharp edge and make the model smoother and safer

Explanation

A fillet rounds an existing sharp edge, making the model smoother, safer, and more professional. A datum plane, by contrast, creates a reference surface for sketching.

31. What is a datum plane used for?

Automatically constraining every element in a sketch
Creating a rounded edge on an existing solid
Setting the radius of a selected edge
Providing a reference surface for a sketch from a different angle or position

Providing a reference surface for a sketch from a different angle or position

Explanation

A datum plane is a reference surface created on a model so that a new sketch can be made from a different angle or position.

32. Which sequence best represents the mounting-bracket workflow?

Draw the hole first, create the slot on the XY plane, then add an unconstrained L-shaped profile
Create a Body, draw a rectangle, apply a 6 mm slot, add a 50 mm fillet, and export the model
Create a Body and XY-plane Sketch, build and constrain an L-shaped profile, add a 5 mm fillet and an 8 mm by 20 mm slot, create a 6 mm diameter hole on a datum plane, and save
Create a datum plane, add a 5 mm diameter hole, draw a circular profile, and apply a 20 mm fillet

Create a Body and XY-plane Sketch, build and constrain an L-shaped profile, add a 5 mm fillet and an 8 mm by 20 mm slot, create a 6 mm diameter hole on a datum plane, and save

Explanation

The workflow begins with a Body and XY-plane Sketch, then creates and constrains an L-shaped polyline, adds the specified fillet and slot, creates the hole on a datum plane, and saves the project.

33. What are the mounting bracket’s base length and raised-arm height, respectively?

50 mm and 80 mm
80 mm and 10 mm
10 mm and 50 mm
80 mm and 50 mm

80 mm and 50 mm

Explanation

The bracket’s base is 80 mm long, while its raised arm is 50 mm tall. Both sections are 10 mm thick.

Review with flashcards

Memorize the answers with 78 flashcards on Grade 8 Coding and Robotics.

What is voltage in electrical terms?

Voltage is the electrical potential difference between two points.

How is current defined in an electrical circuit?

Current is the flow of electrons through a circuit.

What does resistance measure in a material?

Resistance measures a material’s opposition to current flow.

See flashcards →

Read the study sheet

Read the complete study sheet on Grade 8 Coding and Robotics.

See study sheet →

Similar courses

Create your own quizzes

Import your course and AI generates quizzes with corrections in 30 seconds.

Quiz generator