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 compares actual motion with the desired motion using several sensors
B. It always corrects positioning errors
C. It continuously measures its output
D. It operates without output feedback

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

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

3 What is feedback in a robot control system?

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

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

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

5 What does PID stand for in PID control?

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

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

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

7 What is the basic purpose of motion planning?

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

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

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

9 What is a variable in a robot program?

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

10 Which programming structure repeats a set of robot instructions?

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

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

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

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. Python
C. HTML
D. SQL

13 What is an embedded system?

Embedded programming basics Easy
A. A computer designed for a specific function
B. A website used to display robot images
C. A general-purpose office workstation
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. Charging every battery
B. Painting the frame
C. Creating a detailed mechanical drawing of the entire factory
D. Reading sensors

15 What is an Arduino board primarily based on?

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

16 How is a Raspberry Pi commonly classified?

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

17 What is ROS mainly used for?

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

18 What is a node in ROS?

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

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

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

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

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

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. Increase motor voltage at fixed time intervals
C. Apply a fixed motor voltage based on prior testing
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 always consumes more power than feedback control
C. It requires an encoder with extremely high resolution
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 sensor resolution has become higher
B. The reference signal has become smoother
C. The sampling rate has become slightly faster
D. The feedback sign has become positive

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 integral term
B. The derivative term
C. The feedforward term
D. The proportional 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. PID control
B. Edge detection
C. A* search
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 represents each possible state using joint variables
B. It converts every obstacle into a motor command
C. It guarantees the shortest path in all cases
D. It removes the need to model joint limits

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 finite-state machine
B. A static lookup table
C. A fixed arithmetic expression
D. A recursive sorting method

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. Use non-blocking tasks with periodic sensor checks
C. Place all commands inside one longer delay
D. Reduce the number of sensor readings stored

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. Assembly for prototyping and CSS for performance
D. SQL for prototyping and Python for performance

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

Programming languages used in robotics Medium
A. It guarantees that every program is free of errors
B. It eliminates the need for sensors and motor drivers
C. It provides efficient hardware access and predictable execution
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. Add a long delay after each motor command
B. Read the encoder only when motion has stopped
C. Use a hardware interrupt for each encoder pulse
D. Store a fixed pulse count before the robot moves

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 rotary encoder
B. A watchdog timer
C. A pull-up resistor
D. A voltage divider

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 handles pulses; Raspberry Pi handles images
B. Raspberry Pi performs both tasks without an interface
C. Raspberry Pi handles pulses; Arduino handles images
D. Arduino performs both tasks without extra hardware

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. Operating-system scheduling can introduce timing variation
B. Its programs cannot communicate with motor drivers
C. Its GPIO pins cannot represent digital states
D. Its processor cannot perform integer calculations

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. Store the images in a launch file
B. Place the images in one parameter
C. Request each image through a service
D. Publish the images on a topic

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 parameter
B. A launch argument
C. A topic
D. An action

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 clearly accessible emergency-stop control
B. A faster animation for status updates
C. A larger display for battery information
D. A longer menu for motion settings

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 operates without sensors or environmental data
B. It combines user intent with autonomous safety assistance
C. It removes all control decisions from the user
D. It guarantees successful travel in every environment

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. Use external pose estimation as position feedback
B. Increase the commanded wheel rotation proportionally
C. Increase the encoder-loop proportional gain
D. Add integral action to the wheel-speed loop

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. Reduce sensor sampling while retaining the same gains
C. Apply anti-windup using saturation-error back-calculation
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 violates only the wheel acceleration limits
D. The edge is feasible whenever collision checking succeeds

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. Declare both fields volatile and read them normally
B. Copy both fields inside a brief critical section
C. Disable interrupts for the entire control computation
D. Read each field twice and retain the larger value

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. Execute modules in random order to avoid starvation
B. Let each module write directly to the motor driver
C. Use one arbiter with priorities and command expirations
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 JavaScript for the current loop and C for visualization
C. Use shell scripts for planning and Python for current control
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 C++ and Python use the same loop syntax
B. Whether both nodes were written by the same compiler vendor
C. Serialization, copying, queueing, and runtime scheduling
D. Whether both source files use identical variable names

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. now - period >= last && now != 0
B. (uint32_t)(now - last) >= period
C. abs(now - last) >= period
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. A 16-bit read can be interrupted between byte accesses
B. The ISR automatically converts the counter to signed arithmetic
C. Volatile variables are always cached outside interrupt handlers
D. The compiler updates volatile variables only once per control cycle

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. Power the Pi GPIO rail from the Arduino output pin
B. Use a bidirectional level shifter and a shared ground
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 all tasks on the Pi using ordinary Linux scheduling
B. Run vision on the Pi and wheel control on the microcontroller
C. Run all tasks on the microcontroller using interrupt callbacks
D. Run wheel control on the Pi and vision on the microcontroller

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. An action with feedback, result, and cancellation
C. A parameter update polled by the navigation node
D. A latched topic containing only the destination

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. Switch automatically to maximum-speed autonomous navigation
C. Extrapolate joystick commands indefinitely from recent motion
D. Use a command-freshness watchdog that enters a safe stop

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. Silently discard the command and retain autonomous control indefinitely
B. Average human and autonomous commands without displaying the result
C. Always execute the operator command regardless of collision estimates
D. Enforce a safety envelope and visibly indicate command modification