Unit 8: Programming the Robot - Practice Quiz

ECE245 — Elements Of Robotics Laboratory 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main purpose of color identification programming in a robot?

Robot programming for color identification Easy
A. To detect different colors
B. To measure motor speed
C. To calculate battery voltage
D. To record sound levels

2 Which component commonly helps a robot identify colors?

Robot programming for color identification Easy
A. Motor driver
B. Wheel encoder
C. Color sensor
D. Buzzer

3 What does a robot usually do after detecting a specific color?

Robot programming for color identification Easy
A. Perform a programmed action
B. Disconnect the battery
C. Turn off every sensor
D. Erase its program

4 In a color identification program, what is a color condition used for?

Robot programming for color identification Easy
A. Charging the robot
B. Checking the detected color
C. Increasing wheel size
D. Changing the body shape

5 If the U-BOT is programmed to stop when it sees red, what happens when red is detected?

Robot programming for color identification Easy
A. The robot stops
B. The robot changes its program permanently
C. The robot speeds up
D. The robot plays a melody

6 Why should the color sensor be placed correctly during testing?

Robot programming for color identification Easy
A. To reduce the wheel diameter
B. To read the surface accurately
C. To make the robot heavier
D. To replace the control program

7 What is calibration in color identification?

Robot programming for color identification Easy
A. Replacing all robot wheels
B. Changing the robot's shape before every movement
C. Adjusting the sensor for reliable readings
D. Writing a music program for the buzzer

8 What is the purpose of shape identification programming?

Robot programming for shape identification Easy
A. To recognize object shapes
B. To control speaker volume
C. To calculate travel time
D. To measure battery charge

9 Which shape is commonly used as a basic example in shape identification?

Robot programming for shape identification Easy
A. Voltage
B. Distance
C. Temperature
D. Circle

10 What information can help a robot identify a shape?

Robot programming for shape identification Easy
A. Cable length
B. Edges and outlines
C. Battery brand
D. Motor color

11 What should a shape identification program do when it recognizes a square?

Robot programming for shape identification Easy
A. Delete the sensor settings
B. Stop receiving all input
C. Change every object into a square
D. Run the assigned square action

12 Why are different shapes used in a robot programming activity?

Robot programming for shape identification Easy
A. To remove the need for sensors
B. To improve speaker sound
C. To test recognition ability
D. To increase battery capacity

13 Which program structure is useful for responding to different shapes?

Robot programming for shape identification Easy
A. Battery charging
B. Wheel replacement
C. Cable winding
D. If-then conditions

14 What is one possible result of incorrect shape recognition?

Robot programming for shape identification Easy
A. The wheels become larger
B. The robot gains extra memory
C. The wrong action occurs
D. The program writes itself

15 What is the main goal of path tracking?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Easy
A. To follow a marked path
B. To identify battery type
C. To change object color
D. To measure sound frequency

16 Which sensor is commonly used for line or path tracking?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Easy
A. Colorless buzzer
B. Speaker unit
C. Battery switch
D. Infrared sensor

17 What does the U-BOT compare while tracking a line?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Easy
A. Names of its motors
B. Sensor readings from the path
C. Sizes of its batteries
D. Colors of its wires

18 How can a two-wheel robot correct its direction during path tracking?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Easy
A. By increasing the battery size only
B. By switching off the controller
C. By changing motor speeds
D. By removing its sensors

19 If the U-BOT moves away from the path to the left, what may the program do?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Easy
A. Stop all program instructions forever
B. Erase the path sensor values
C. Adjust the motors to turn right
D. Replace the tracking path with a different program

20 Why is testing important in U-BOT path tracking?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Easy
A. To change the robot's name
B. To check movement accuracy
C. To make the path invisible to the sensors
D. To remove the need for motors

21 U-BOT reads an RGB value of from an object. To reduce sensitivity to overall brightness, the program normalizes each channel by . What normalized RGB value is obtained?

Robot programming for color identification using Sierena's Utility Robot U-BOT Medium
A.
B.
C.
D.

22 A color-identification program works correctly indoors but misclassifies the same objects near a window. Which modification is most appropriate?

Robot programming for color identification using Sierena's Utility Robot U-BOT Medium
A. Calibrate reference colors under the operating illumination
B. Increase both motor speeds during color sampling
C. Replace RGB values with object distance readings
D. Reduce the number of stored color categories

23 U-BOT must distinguish a yellow marker from a white marker. Both produce high red and green readings. Which additional feature is most useful?

Robot programming for color identification using Sierena's Utility Robot U-BOT Medium
A. The saturation of the measured color
B. The ultrasonic distance to the marker
C. The duration of the previous movement
D. The total number of motor rotations

24 While U-BOT observes a stationary blue object, individual frames are classified as blue, blue, green, blue, and blue. Which decision method gives the most reliable result?

Robot programming for color identification using Sierena's Utility Robot U-BOT Medium
A. Use the classification from the first frame
B. Use a majority vote over the five frames
C. Use the classification from the middle frame
D. Alternate between blue and green outputs

25 A program checks if red is high before checking whether both red and green are high. Yellow objects are therefore reported as red. What is the best correction?

Robot programming for color identification using Sierena's Utility Robot U-BOT Medium
A. Check the red condition twice before yellow
B. Ignore the green channel during classification
C. Use only the largest raw RGB channel
D. Check the more specific yellow condition before red

26 A dark blue card produces very low readings in all three RGB channels, causing U-BOT to label it black. Which change would best improve identification?

Robot programming for color identification using Sierena's Utility Robot U-BOT Medium
A. Use controlled illumination and recalibrate dark colors
B. Increase wheel speed while reading the card
C. Classify every low reading as dark blue
D. Disable the blue channel below a threshold

27 U-BOT should stop when a red marker is detected, but sensor noise makes the measured value repeatedly cross the red threshold. Which programming technique best prevents rapid switching?

Robot programming for color identification using Sierena's Utility Robot U-BOT Medium
A. Increase the threshold after every sensor reading
B. Reset all sensor values after each reading
C. Reverse the motors whenever red is detected
D. Apply hysteresis with separate enter and exit thresholds

28 U-BOT calculates contour circularity using . For a contour with pixels and pixels, what is the approximate circularity?

Robot programming for shape identification using Sierena's Utility Robot U-BOT Medium
A.
B.
C.
D.

29 A detected object's axis-aligned bounding box is pixels wide and pixels high. If a square is expected to have an aspect ratio near , how should this object be classified?

Robot programming for shape identification using Sierena's Utility Robot U-BOT Medium
A. Likely triangular because its height is smaller
B. Likely square because its area is nonzero
C. Likely rectangular because its aspect ratio is
D. Likely circular because its width is larger

30 A binary image used by U-BOT contains many isolated foreground pixels around the actual shape. Which operation should be applied first to remove these small objects?

Robot programming for shape identification using Sierena's Utility Robot U-BOT Medium
A. Morphological opening
B. Horizontal image flipping
C. Morphological closing
D. Uniform image scaling

31 U-BOT expects a shape marker with an area near pixels. Detected contours have areas of , , and pixels. Which contour should be analyzed?

Robot programming for shape identification using Sierena's Utility Robot U-BOT Medium
A. The pixels contour
B. The pixels contour
C. The sum of all three contours
D. The pixels contour

32 The same triangle appears at different sizes as U-BOT moves toward it. Which feature is most suitable for maintaining the same classification?

Robot programming for shape identification using Sierena's Utility Robot U-BOT Medium
A. The contour's approximated vertex count
B. The bounding box width in pixels
C. The raw contour area in pixels
D. The distance from the image origin

33 A square is correctly recognized when upright but is classified as a different shape after being rotated by . Which improvement is most appropriate?

Robot programming for shape identification using Sierena's Utility Robot U-BOT Medium
A. Use rotation-invariant contour features
B. Use only the horizontal bounding width
C. Reject every contour containing diagonal edges
D. Rotate the robot instead of processing the image

34 Five line sensors have position weights . Their binary readings are , where indicates the line. Using the weighted average, what is the line error?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Medium
A.
B.
C.
D.

35 U-BOT uses for steering. A positive error means the path is to the robot's right. Which motor command turns the robot toward the path?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Medium
A. Set and
B. Set and
C. Set and
D. Set and

36 During line following, U-BOT repeatedly swings from one side of the path to the other while its forward speed remains fixed. What is the best initial controller adjustment?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Medium
A. Disable steering on straight sections
B. Set both sensor thresholds to zero
C. Reduce the proportional gain
D. Increase the proportional gain

37 On a sharp curve, all of U-BOT's line sensors briefly detect the background. Which recovery behavior is most effective?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Medium
A. Stop tracking and ignore later sensor data
B. Continue turning in the direction of the last error
C. Choose a random turn after every reading
D. Drive straight indefinitely at maximum speed

38 U-BOT must take the second left turn encountered on a path. Which program design is most reliable?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Medium
A. Measure only the total travel time
B. Count debounced junction events in a state machine
C. Count every control-loop cycle at a junction
D. Turn left whenever the center sensor is active

39 During calibration, a line sensor reads over a black path and over a white floor. Using the midpoint threshold, how should a reading of be classified?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Medium
A. As line, because
B. As line, because
C. As floor, because
D. As floor, because

40 A path-tracking loop pauses for ms whenever U-BOT performs color or shape recognition. The robot then leaves the path. Which software change best addresses the problem?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Medium
A. Disable line sensors while processing images
B. Update the motors only after recognition finishes
C. Increase every recognition delay to one second
D. Schedule recognition without blocking the tracking loop

41 A U-BOT must identify red, green, and blue objects under changing room illumination. Which programming strategy is most robust?

Robot programming for color identification Hard
A. Compare raw RGB values with fixed thresholds
B. Normalize RGB values and classify hue with tolerance bands
C. Classify the channel having the greatest intensity
D. Use the object brightness as its primary color label

42 A color sensor produces noisy readings near the boundary between yellow and green. Which modification most directly prevents rapid switching between labels?

Robot programming for color identification Hard
A. Reduce the number of color classes
B. Use temporal filtering and hysteresis
C. Increase the robot's forward speed
D. Replace hue thresholds with brightness thresholds

43 The U-BOT identifies a red object correctly in isolation but labels it as black when it is partially shadowed. Which decision rule is most appropriate?

Robot programming for color identification Hard
A. Use normalized chromaticity with a confidence test
B. Assign every low-brightness sample to red
C. Classify only from the red-channel magnitude
D. Reject every sample below a brightness threshold

44 A U-BOT scans an object five times and obtains the labels red, red, green, red, and red. Which action best balances noise rejection and response time?

Robot programming for color identification Hard
A. Choose the label with the highest brightness
B. Use the majority label over the sample window
C. Accept the first detected label
D. Wait indefinitely for identical readings

45 When calibrating the U-BOT for color identification, why should reference samples be collected at the same sensor distance and angle used during operation?

Robot programming for color identification Hard
A. It guarantees every color has equal brightness
B. It reduces motor power consumption
C. It makes the program independent of lighting
D. It matches the sensor's actual response conditions

46 A color-identification routine returns a valid label even when the sensor is pointed at the floor. Which safeguard is most important?

Robot programming for color identification Hard
A. Increase the sensor polling frequency only
B. Add an explicit unknown or invalid class
C. Increase the number of motor commands
D. Sort the color names alphabetically

47 The U-BOT detects the boundary of an object by moving its sensor laterally. Which feature is most useful for distinguishing a circle from a square when both have similar areas?

Robot programming for shape identification Hard
A. The average motor current
B. The object's detected color only
C. The sequence of boundary distances
D. The number of color samples

48 A rectangular object is rotated by before scanning. Which shape-recognition method is least affected by this rotation?

Robot programming for shape identification Hard
A. Compare the first edge with the robot's heading
B. Use the scan duration without normalization
C. Classify from the object's horizontal width
D. Use rotation-invariant geometric descriptors

49 Two objects have identical perimeter measurements, but one is a circle and the other is a square. Which additional measurement provides the strongest discrimination?

Robot programming for shape identification Hard
A. The color sensor's sample rate
B. The object's estimated area
C. The number of wheel rotations during startup
D. The robot's battery voltage

50 During a shape scan, the U-BOT misses one corner because of a noisy sensor reading. Which algorithmic change best preserves recognition accuracy?

Robot programming for shape identification Hard
A. Discard the scan whenever one sample is missing
B. Label the object according to its dominant color
C. Use a tolerance-based corner-count estimate
D. Require every expected corner to be detected

51 A U-BOT must distinguish triangles from squares using a one-dimensional edge scan. Which scan interpretation is most defensible?

Robot programming for shape identification Hard
A. Measure only the first detected edge
B. Assume every closed object has four corners
C. Use the total scan time as the shape label
D. Count stable direction changes after filtering

52 A shape classifier performs well on large objects but fails on smaller versions of the same shapes. Which correction is most appropriate?

Robot programming for shape identification Hard
A. Remove all size-related measurements
B. Normalize measurements by object scale
C. Increase the robot's turning radius
D. Use absolute pixel or distance thresholds

53 While following a dark line, the U-BOT oscillates across the path at high speed. Which control adjustment most directly reduces the oscillation?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Hard
A. Increase the difference between wheel speeds
B. Disable all sensor sampling
C. Reduce proportional gain or add damping
D. Increase proportional gain substantially

54 For a two-sensor line-following program, both sensors detect white after a sharp turn. What should the recovery behavior use first?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Hard
A. Drive straight at the previous speed
B. Choose a random turning direction
C. Turn toward the last known line direction
D. Stop permanently and report success

55 A line-tracking controller uses error . Which motor response is consistent with correcting a positive error while moving forward?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Hard
A. Stop the sensor and preserve both wheel speeds
B. Increase both wheel speeds equally
C. Reduce the left wheel and increase the right wheel
D. Increase the left wheel and reduce the right wheel

56 The line width varies along the course, causing a binary sensor pair to produce inconsistent states. Which design is most robust?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Hard
A. Increase speed whenever the line widens
B. Use only the left sensor state
C. Treat every two-sensor state as a junction
D. Add calibrated thresholds and intermediate states

57 At a path intersection, the U-BOT must turn left only when a junction is detected. Which software structure best prevents accidental turns caused by a brief sensor spike?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Hard
A. Turn immediately on one high reading
B. Increase forward speed through every intersection
C. Ignore all readings after the first junction
D. Require persistent detection and apply a turn state

58 A U-BOT tracks a line accurately at low speed but loses it on curves at high speed. Which combined change is most justified?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Hard
A. Reduce speed and increase steering responsiveness
B. Disable correction during curved segments
C. Increase speed and reduce sampling
D. Use a fixed wheel speed for every segment

59 The U-BOT repeatedly overshoots a left turn, although its sensors are calibrated correctly. Which diagnosis is most likely?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Hard
A. The battery indicator is displayed incorrectly
B. The robot has too many valid sensor states
C. The controller applies correction too late
D. The line has become a different color

60 A path-tracking program must resume after a temporary sensor failure. Which implementation best maintains predictable behavior?

Robot programming for path tracking using Sierena's Utility Robot U-BOT Hard
A. Reset the entire robot after every missed sample
B. Set both motors to unrelated random values
C. Use the last valid error for a bounded interval
D. Ignore the failure and continue indefinitely