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 measure motor speed
B. To detect different colors
C. To record sound levels
D. To calculate battery voltage

2 Which component commonly helps a robot identify colors?

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

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

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

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

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

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 plays a melody
B. The robot changes its program permanently
C. The robot speeds up
D. The robot stops

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

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

7 What is calibration in color identification?

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

8 What is the purpose of shape identification programming?

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

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

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

10 What information can help a robot identify a shape?

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

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. Run the assigned square action
C. Change every object into a square
D. Stop receiving all input

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

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

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

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

14 What is one possible result of incorrect shape recognition?

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

15 What is the main goal of path tracking?

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

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. Battery switch
B. Colorless buzzer
C. Speaker unit
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. Colors of its wires
B. Sizes of its batteries
C. Sensor readings from the path
D. Names of its motors

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 changing motor speeds
B. By removing its sensors
C. By switching off the controller
D. By increasing the battery size only

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. Replace the tracking path with a different program
B. Adjust the motors to turn right
C. Stop all program instructions forever
D. Erase the path sensor values

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 make the path invisible to the sensors
B. To change the robot's name
C. To remove the need for motors
D. To check movement accuracy

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. Reduce the number of stored color categories
C. Increase both motor speeds during color sampling
D. Replace RGB values with object distance readings

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 total number of motor rotations
D. The duration of the previous movement

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. Alternate between blue and green outputs
C. Use a majority vote over the five frames
D. Use the classification from the middle frame

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 more specific yellow condition before red
B. Check the red condition twice before yellow
C. Ignore the green channel during classification
D. Use only the largest raw RGB channel

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. Increase wheel speed while reading the card
B. Classify every low reading as dark blue
C. Disable the blue channel below a threshold
D. Use controlled illumination and recalibrate dark colors

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. Apply hysteresis with separate enter and exit thresholds
D. Reverse the motors whenever red is detected

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 square because its area is nonzero
B. Likely circular because its width is larger
C. Likely rectangular because its aspect ratio is
D. Likely triangular because its height is smaller

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 closing
B. Uniform image scaling
C. Morphological opening
D. Horizontal image flipping

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 pixels contour
D. The sum of all three contours

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 distance from the image origin
B. The bounding box width in pixels
C. The contour's approximated vertex count
D. The raw contour area in pixels

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. Reject every contour containing diagonal edges
B. Use rotation-invariant contour features
C. Use only the horizontal bounding width
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. Increase the proportional gain
B. Set both sensor thresholds to zero
C. Disable steering on straight sections
D. Reduce 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. Drive straight indefinitely at maximum speed
B. Stop tracking and ignore later sensor data
C. Continue turning in the direction of the last error
D. Choose a random turn after every reading

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. Count every control-loop cycle at a junction
B. Count debounced junction events in a state machine
C. Measure only the total travel time
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 floor, because
C. As line, 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. Update the motors only after recognition finishes
B. Schedule recognition without blocking the tracking loop
C. Increase every recognition delay to one second
D. Disable line sensors while processing images

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. Normalize RGB values and classify hue with tolerance bands
B. Compare raw RGB values with fixed thresholds
C. Use the object brightness as its primary color label
D. Classify the channel having the greatest intensity

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. Increase the robot's forward speed
B. Use temporal filtering and hysteresis
C. Reduce the number of color classes
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. Accept the first detected label
B. Choose the label with the highest brightness
C. Wait indefinitely for identical readings
D. Use the majority label over the sample window

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 matches the sensor's actual response conditions
B. It guarantees every color has equal brightness
C. It makes the program independent of lighting
D. It reduces motor power consumption

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. Sort the color names alphabetically
B. Add an explicit unknown or invalid class
C. Increase the number of motor commands
D. Increase the sensor polling frequency only

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 object's detected color only
B. The number of color samples
C. The sequence of boundary distances
D. The average motor current

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. Use rotation-invariant geometric descriptors
B. Compare the first edge with the robot's heading
C. Use the scan duration without normalization
D. Classify from the object's horizontal width

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. Use a tolerance-based corner-count estimate
B. Discard the scan whenever one sample is missing
C. Label the object according to its dominant color
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. Assume every closed object has four corners
B. Use the total scan time as the shape label
C. Count stable direction changes after filtering
D. Measure only the first detected edge

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. Increase the robot's turning radius
B. Use absolute pixel or distance thresholds
C. Remove all size-related measurements
D. Normalize measurements by object scale

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. Disable all sensor sampling
B. Increase proportional gain substantially
C. Increase the difference between wheel speeds
D. Reduce proportional gain or add damping

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. Turn toward the last known line direction
B. Drive straight at the previous speed
C. Choose a random turning 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. Increase the left wheel and reduce the right wheel
B. Stop the sensor and preserve both wheel speeds
C. Increase both wheel speeds equally
D. Reduce the left wheel and increase 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. Add calibrated thresholds and intermediate states
D. Treat every two-sensor state as a junction

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. Require persistent detection and apply a turn state
B. Ignore all readings after the first junction
C. Increase forward speed through every intersection
D. Turn immediately on one high reading

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. Use a fixed wheel speed for every segment
B. Increase speed and reduce sampling
C. Reduce speed and increase steering responsiveness
D. Disable correction during curved segments

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 controller applies correction too late
C. The robot has too many valid sensor states
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. Use the last valid error for a bounded interval
C. Ignore the failure and continue indefinitely
D. Set both motors to unrelated random values