Skip to main content

Quiz 1: ROS 2 Architecture Fundamentals

Instructions​

This quiz assesses your understanding of ROS 2 architecture fundamentals covered in Weeks 1-2. Choose the best answer for each question. You may refer to the course materials during this open-book quiz.

Questions​

Question 1: What does DDS stand for in the context of ROS 2?​

A) Data Definition System B) Data Distribution Service C) Dynamic Discovery System D) Distributed Data Service

Question 2: Which of the following is NOT a basic communication primitive in ROS 2?​

A) Topics B) Services C) Parameters D) Databases

Question 3: What is the primary purpose of a ROS 2 node?​

A) To store data persistently B) To provide a graphical user interface C) The basic unit of execution that performs computation D) To manage network connections

Question 4: In ROS 2, what is a publisher-subscriber relationship?​

A) A system where nodes request data from a server B) A one-to-many communication pattern where one node sends messages to many listeners C) A method for storing configuration data D) A security mechanism for authenticating nodes

Question 5: Which command would you use to list all active ROS 2 nodes?​

A) ros2 list nodes B) ros2 show nodes C) ros2 node list D) ros2 get nodes

Question 6: What does "DDS" provide in ROS 2 architecture?​

A) A database system for robot data B) A middleware that handles message passing between nodes C) A visualization tool for debugging D) An Integrated Development Environment (IDE)

Question 7: What is a Quality of Service (QoS) policy in ROS 2?​

A) A security protocol for protecting robot data B) A set of rules that define how messages are delivered in terms of reliability, durability, etc. C) A performance measurement tool D) A coding standard for ROS 2 packages

Question 8: In the publisher-subscriber pattern, what is the role of the publisher?​

A) To request data from other nodes B) To send messages to a topic that subscribers can receive C) To coordinate multiple nodes D) To store data in a database

Question 9: Which of the following describes the relationship between a ROS 2 client library (RCL) and DDS?​

A) RCL is an alternative to DDS B) RCL is the same as DDS C) RCL provides the abstraction layer between ROS 2 and the DDS middleware D) DDS provides the abstraction layer between ROS 2 and the RCL

Question 10: What is a ROS 2 package?​

A) A compressed file containing robot software B) A collection of nodes that work together C) The basic building block that contains software nodes, libraries, and other resources D) A command-line tool for managing ROS 2

Rubric​

  • Questions 1-10: 1 point each
  • Total: 10 points
  • Passing score: 7/10 (70%)

Additional Resources​

For more information, review:

  • Week 1-2 content on ROS 2 architecture
  • ROS 2 documentation on DDS and QoS
  • Lab Exercise 1 for practical implementation