Unit 5: Control and Programming Elements - Practice Quiz

ECE244 — Elements Of Robotics 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is a main characteristic of an open-loop control system?

Open-loop and closed-loop control Easy
A. It operates without output feedback
B. It continuously measures its output
C. It always corrects positioning errors
D. It compares actual motion with the desired motion using several sensors

2 How does a closed-loop robot controller respond to an error?

Open-loop and closed-loop control Easy
A. It ignores the error
B. It repeats a fixed command without checking the resulting motion
C. It adjusts the control input
D. It disconnects all sensors

3 What is feedback in a robot control system?

Feedback systems Easy
A. A signal describing the actual output
B. A program used only to design the robot's physical frame
C. A fixed mechanical connection
D. A list of future robot tasks

4 Which component commonly provides feedback about a robot's position?

Feedback systems Easy
A. Power switch
B. Structural frame
C. Position sensor
D. Battery charger with an external power cable

5 What does PID stand for in PID control?

PID control (Introduction) Easy
A. Proportional, Integral, Derivative
B. Power, Instruction, Data
C. Position, Input, Direction
D. Program, Interface, Device

6 Which PID term responds to the accumulated error over time?

PID control (Introduction) Easy
A. Proportional term
B. Integral term
C. Derivative term
D. Mechanical term that directly changes the dimensions of the robot

7 What is the basic purpose of motion planning?

Motion planning basics Easy
A. To select a path toward a goal
B. To increase the battery voltage
C. To replace the robot controller
D. To determine the color and external appearance of every robot part

8 What should a mobile robot's planned path normally avoid?

Motion planning basics Easy
A. Commands
B. Obstacles
C. All locations that can be reached safely by the robot
D. Sensors

9 What is a variable in a robot program?

Robot programming concepts Easy
A. A type of electrical motor
B. A complete physical model containing every component of the robot
C. A named place for storing data
D. A permanent mechanical joint

10 Which programming structure repeats a set of robot instructions?

Robot programming concepts Easy
A. Comment
B. Input connector
C. Loop
D. Variable

11 Which language is commonly used for robotics and ROS development?

Programming languages used in robotics Easy
A. CSS
B. A markup format designed only for arranging content on web pages
C. HTML
D. C++

12 Which programming language is popular in robotics because of its readable syntax and extensive libraries?

Programming languages used in robotics Easy
A. XML
B. SQL
C. Python
D. HTML

13 What is an embedded system?

Embedded programming basics Easy
A. A computer designed for a specific function
B. A general-purpose office workstation
C. A website used to display robot images
D. A mechanical system that operates without any electronic processing components

14 Which task is commonly performed by an embedded robot controller?

Embedded programming basics Easy
A. Reading sensors
B. Painting the frame
C. Charging every battery
D. Creating a detailed mechanical drawing of the entire factory

15 What is an Arduino board primarily based on?

Arduino and Raspberry Pi overview Easy
A. A microcontroller
B. A mechanical gearbox
C. A desktop processor requiring a full-sized computer motherboard
D. A hydraulic pump

16 How is a Raspberry Pi commonly classified?

Arduino and Raspberry Pi overview Easy
A. Analog position sensor
B. Industrial robot arm
C. Simple motor driver without an operating system or general computing features
D. Single-board computer

17 What is ROS mainly used for?

Introduction to ROS (Robot Operating System) Easy
A. Increasing a motor's supply voltage
B. Developing connected robot software
C. Replacing every sensor and actuator with one physical control component
D. Manufacturing mechanical bearings

18 What is a node in ROS?

Introduction to ROS (Robot Operating System) Easy
A. A complete operating system that must control every robot component alone
B. A type of rechargeable battery
C. A physical joint in a robot
D. A program that performs a task

19 What is the purpose of a Human–Robot Interface?

Human–Robot Interface basics Easy
A. To prevent human users from observing or controlling the robot
B. To replace all robot actuators
C. To increase the robot's physical weight
D. To support communication between people and robots

20 Which device can be part of a Human–Robot Interface?

Human–Robot Interface basics Easy
A. Wheel axle
B. Structural bracket
C. Touchscreen
D. Gear train

21 A mobile robot must maintain a constant wheel speed while moving from a smooth floor onto a carpet. Which control approach is most suitable?

Open-loop and closed-loop control Medium
A. Adjust motor voltage using measured wheel speed
B. Apply a fixed motor voltage based on prior testing
C. Increase motor voltage at fixed time intervals
D. Set the motor voltage once before movement

22 A robot arm uses a timer to run its motor for two seconds whenever it must rotate approximately . What is the main limitation of this open-loop method?

Open-loop and closed-loop control Medium
A. It cannot compensate for changes in load or friction
B. It requires an encoder with extremely high resolution
C. It always consumes more power than feedback control
D. It continuously corrects errors caused by disturbances

23 In a negative-feedback position controller, the reference angle is and the measured angle is . If error is defined as reference minus measurement, what error should be supplied to the controller?

Feedback systems Medium
A.
B.
C.
D.

24 After replacing a robot's position sensor, the motor moves farther away from the target whenever an error occurs. What is the most likely cause?

Feedback systems Medium
A. The sampling rate has become slightly faster
B. The reference signal has become smoother
C. The feedback sign has become positive
D. The sensor resolution has become higher

25 A proportional controller leaves a small constant position error when a robot joint holds a load. Which PID term is commonly added to reduce this steady-state error?

PID control (Introduction) Medium
A. The proportional term
B. The feedforward term
C. The integral term
D. The derivative term

26 A PID controller uses . If , , , , , and , what is ?

PID control (Introduction) Medium
A.
B.
C.
D.

27 A wheeled robot has an occupancy grid and must find a low-cost collision-free route to a known goal. Which algorithm is most appropriate?

Motion planning basics Medium
A. A* search
B. PID control
C. Edge detection
D. Signal filtering

28 Why is configuration space useful when planning the motion of a multi-joint robot arm?

Motion planning basics Medium
A. It removes the need to model joint limits
B. It guarantees the shortest path in all cases
C. It converts every obstacle into a motor command
D. It represents each possible state using joint variables

29 A service robot must switch among the behaviors Idle, Navigate, Deliver, and Recharge based on events. Which programming structure best organizes this behavior?

Robot programming concepts Medium
A. A recursive sorting method
B. A finite-state machine
C. A fixed arithmetic expression
D. A static lookup table

30 A robot's obstacle sensor is checked only after a long arm movement function finishes. Which design change would most improve responsiveness?

Robot programming concepts Medium
A. Replace conditions with fixed movement sequences
B. Reduce the number of sensor readings stored
C. Use non-blocking tasks with periodic sensor checks
D. Place all commands inside one longer delay

31 A robotics team needs fast prototyping for computer-vision experiments and later requires high-performance motor-control code. Which language pairing is most appropriate?

Programming languages used in robotics Medium
A. Python for prototyping and C++ for performance
B. C++ for prototyping and HTML for performance
C. SQL for prototyping and Python for performance
D. Assembly for prototyping and CSS for performance

32 Why is C or C++ commonly used to program microcontrollers in robots?

Programming languages used in robotics Medium
A. It provides efficient hardware access and predictable execution
B. It guarantees that every program is free of errors
C. It eliminates the need for sensors and motor drivers
D. It automatically creates mechanical designs for robot links

33 A wheel encoder generates brief pulses that must be counted even while the processor performs other calculations. Which embedded technique is most suitable?

Embedded programming basics Medium
A. Use a hardware interrupt for each encoder pulse
B. Store a fixed pulse count before the robot moves
C. Read the encoder only when motion has stopped
D. Add a long delay after each motor command

34 A robot controller may occasionally freeze because of unexpected software faults. Which embedded feature can automatically reset it if normal execution stops?

Embedded programming basics Medium
A. A voltage divider
B. A rotary encoder
C. A pull-up resistor
D. A watchdog timer

35 A robot needs precise microsecond-level pulse generation for a servo and high-level image processing. Which division of work is most appropriate?

Arduino and Raspberry Pi overview Medium
A. Arduino performs both tasks without extra hardware
B. Raspberry Pi handles pulses; Arduino handles images
C. Raspberry Pi performs both tasks without an interface
D. Arduino handles pulses; Raspberry Pi handles images

36 Why might a Raspberry Pi running a standard Linux system be less suitable than an Arduino for directly generating strict real-time motor pulses?

Arduino and Raspberry Pi overview Medium
A. Its programs cannot communicate with motor drivers
B. Operating-system scheduling can introduce timing variation
C. Its processor cannot perform integer calculations
D. Its GPIO pins cannot represent digital states

37 In ROS, a camera node continuously sends images that several processing nodes need to receive independently. Which communication mechanism should be used?

Introduction to ROS (Robot Operating System) Medium
A. Place the images in one parameter
B. Publish the images on a topic
C. Store the images in a launch file
D. Request each image through a service

38 A ROS navigation command may take a minute, should report progress, and must support cancellation. Which ROS communication pattern is most suitable?

Introduction to ROS (Robot Operating System) Medium
A. A topic
B. An action
C. A parameter
D. A launch argument

39 An operator remotely controls a robot near people. Which interface feature most directly improves safety during unexpected motion?

Human–Robot Interface basics Medium
A. A longer menu for motion settings
B. A faster animation for status updates
C. A clearly accessible emergency-stop control
D. A larger display for battery information

40 In a shared-control wheelchair, the user chooses the general direction while the robot avoids nearby obstacles. What is the main benefit of this interface?

Human–Robot Interface basics Medium
A. It guarantees successful travel in every environment
B. It combines user intent with autonomous safety assistance
C. It operates without sensors or environmental data
D. It removes all control decisions from the user

41 A robot joint has plant transfer function and controller in unity negative feedback. A disturbance is added directly to the plant output. What is the closed-loop transfer function from to the measured output ?

Open-loop and closed-loop control Hard
A.
B.
C.
D.

42 A mobile robot uses wheel-encoder feedback to move exactly . On a slippery surface, its wheels rotate by the expected amount while the chassis travels only . Which modification most directly closes the loop around the actual controlled quantity?

Open-loop and closed-loop control Hard
A. Add integral action to the wheel-speed loop
B. Use external pose estimation as position feedback
C. Increase the commanded wheel rotation proportionally
D. Increase the encoder-loop proportional gain

43 A discrete integrator satisfies . Because of a one-sample delay, the feedback law is . For constant , which range of makes the error dynamics asymptotically stable?

Feedback systems Hard
A.
B.
C.
D.

44 A stable closed-loop position system contains integral action and measures , where is an unknown constant sensor bias. If the reference is constant and the actuator does not saturate, what steady-state true output should be expected?

Feedback systems Hard
A.
B.
C.
D.

45 For unity feedback, let and , with all three gains positive. Which additional condition is necessary and sufficient for asymptotic closed-loop stability?

PID control (Introduction) Hard
A.
B.
C.
D.

46 A PID-controlled robot arm is commanded far beyond its reachable angle, so the actuator remains saturated for several seconds. When the reference returns to a reachable value, the arm overshoots severely. Which modification most directly addresses the cause?

PID control (Introduction) Hard
A. Increase derivative gain without filtering the measurement
B. Apply anti-windup using saturation-error back-calculation
C. Reduce sensor sampling while retaining the same gains
D. Add reference feedforward without limiting the integrator

47 An A* planner uses path cost equal to terrain cost plus a nonnegative turning penalty. Every translational path segment costs at least units per meter. Which heuristic is guaranteed to be admissible and consistent when is Euclidean distance to the goal?

Motion planning basics Hard
A.
B.
C.
D.

48 A differential-drive robot is planned by linearly interpolating between configurations . One interpolated edge translates the robot sideways while holding constant. What is the fundamental issue?

Motion planning basics Hard
A. The edge is infeasible only when both wheels reverse
B. The edge violates the robot's nonholonomic velocity constraint
C. The edge is feasible whenever collision checking succeeds
D. The edge violates only the wheel acceleration limits

49 An interrupt updates a multiword encoder count and its timestamp, while the main control loop reads both values. Rarely, the loop obtains a new count with an old timestamp. Which design best guarantees a coherent pair on a small MCU?

Robot programming concepts Hard
A. Copy both fields inside a brief critical section
B. Read each field twice and retain the larger value
C. Disable interrupts for the entire control computation
D. Declare both fields volatile and read them normally

50 Navigation, teleoperation, and collision avoidance can each publish motor commands asynchronously. Which software architecture most reliably prevents stale or conflicting commands from reaching the actuators?

Robot programming concepts Hard
A. Let each module write directly to the motor driver
B. Use one arbiter with priorities and command expirations
C. Execute modules in random order to avoid starvation
D. Average all commands received during each control cycle

51 A robot performs vision-based planning and also runs a motor-current loop with a strict deadline. Which language allocation is generally the most defensible?

Programming languages used in robotics Hard
A. Use Python for both loops with additional worker threads
B. Use shell scripts for planning and Python for current control
C. Use JavaScript for the current loop and C for visualization
D. Use Python for vision and C or C++ for the current loop

52 A C++ perception node sends data to a Python planning node through a generated message interface. The planner occasionally misses its deadline even though both algorithms are fast. Which cross-language factor must be investigated first?

Programming languages used in robotics Hard
A. Whether both source files use identical variable names
B. Serialization, copying, queueing, and runtime scheduling
C. Whether C++ and Python use the same loop syntax
D. Whether both nodes were written by the same compiler vendor

53 A 32-bit millisecond timer wraps around, and both now and last are unsigned 32-bit values. Which condition correctly tests whether at least period milliseconds have elapsed, provided `period < 2^{31}$?

Embedded programming basics Hard
A. abs(now - last) >= period
B. (uint32_t)(now - last) >= period
C. now - period >= last && now != 0
D. now >= last + period && now > last

54 On an 8-bit microcontroller, an ISR increments a 16-bit counter while the main loop reads it. The counter is declared volatile, but occasional corrupted values still occur. Why?

Embedded programming basics Hard
A. Volatile variables are always cached outside interrupt handlers
B. The compiler updates volatile variables only once per control cycle
C. The ISR automatically converts the counter to signed arithmetic
D. A 16-bit read can be interrupted between byte accesses

55 An Arduino board uses logic while a Raspberry Pi uses non--tolerant GPIO. What is the safest general method for a bidirectional digital connection?

Arduino and Raspberry Pi overview Hard
A. Use a bidirectional level shifter and a shared ground
B. Power the Pi GPIO rail from the Arduino output pin
C. Connect both GPIO pins directly without a shared ground
D. Use one series resistor while keeping separate grounds

56 A robot requires image processing, network communication, and a deterministic wheel-control loop. Which partition best matches the typical strengths of a Raspberry Pi and an Arduino-class microcontroller?

Arduino and Raspberry Pi overview Hard
A. Run wheel control on the Pi and vision on the microcontroller
B. Run vision on the Pi and wheel control on the microcontroller
C. Run all tasks on the Pi using ordinary Linux scheduling
D. Run all tasks on the microcontroller using interrupt callbacks

57 A ROS-based navigation request may run for a minute, should report progress, and must be cancellable when an obstacle appears. Which communication abstraction is the best fit?

Introduction to ROS (Robot Operating System) Hard
A. A synchronous service held open until completion
B. A parameter update polled by the navigation node
C. A latched topic containing only the destination
D. An action with feedback, result, and cancellation

58 A camera observes point at time on a moving robot. With transform notation mapping coordinates from frame to frame , which expression correctly obtains the map-frame point?

Introduction to ROS (Robot Operating System) Hard
A.
B.
C.
D.

59 A robot is teleoperated over an unreliable wireless link. If control packets stop arriving, which interface behavior best satisfies fail-safe design?

Human–Robot Interface basics Hard
A. Continue the last command until a replacement packet arrives
B. Extrapolate joystick commands indefinitely from recent motion
C. Use a command-freshness watchdog that enters a safe stop
D. Switch automatically to maximum-speed autonomous navigation

60 In shared autonomy, an operator commands forward motion while the autonomy detects an imminent collision. Which design best balances operator authority, safety, and mode awareness?

Human–Robot Interface basics Hard
A. Average human and autonomous commands without displaying the result
B. Always execute the operator command regardless of collision estimates
C. Enforce a safety envelope and visibly indicate command modification
D. Silently discard the command and retain autonomous control indefinitely