Docsity

Zephyr Ambassador Practice Exam, Exams of Technology

Toggle sidebar
bg1
Zephyr Ambassador Practice Exam
**Question 1. Which governing body is primarily responsible for setting the technical direction
of the Zephyr Project?**
A) Linux Foundation Board of Directors
B) Technical Steering Committee (TSC)
C) Zephyr Ambassador Council
D) Open Source Initiative
Answer: B
Explanation: The Technical Steering Committee (TSC) guides technical decisions, roadmap, and
architecture for Zephyr.
**Question 2. Under the Apache 2.0 license, which of the following is NOT required when
redistributing Zephyr source code?**
A) Including a copy of the license
B) Providing attribution to original authors
C) Disclosing source code of derivative works under the same license
D) Not using trademarks in a misleading way
Answer: C
Explanation: Apache 2.0 is permissive; it does not require derivative works to be open‑source or
under the same license.
**Question 3. In Zephyr’s membership model, which tier is allowed to vote on the Technical
Steering Committee elections?**
A) Associate Member
B) Silver Member
C) Platinum Member
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d

Partial preview of the text

Download Zephyr Ambassador Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which governing body is primarily responsible for setting the technical direction of the Zephyr Project? A) Linux Foundation Board of Directors B) Technical Steering Committee (TSC) C) Zephyr Ambassador Council D) Open Source Initiative Answer: B Explanation: The Technical Steering Committee (TSC) guides technical decisions, roadmap, and architecture for Zephyr. Question 2. Under the Apache 2.0 license, which of the following is NOT required when redistributing Zephyr source code? A) Including a copy of the license B) Providing attribution to original authors C) Disclosing source code of derivative works under the same license D) Not using trademarks in a misleading way Answer: C Explanation: Apache 2.0 is permissive; it does not require derivative works to be open‑source or under the same license. Question 3. In Zephyr’s membership model, which tier is allowed to vote on the Technical Steering Committee elections? A) Associate Member B) Silver Member C) Platinum Member

D) All tiers have voting rights Answer: C Explanation: Only Platinum members have voting rights for TSC elections; other tiers have advisory roles. Question 4. Which West command initializes a new Zephyr workspace and clones required repositories? A) west update B) west init C) west build D) west flash Answer: B Explanation: west init creates the workspace directory and clones the manifest repository. Question 5. After running west update, what is the primary purpose of the generated west.yml file? A) Define compiler flags for the project B) List all source files for the build system C) Describe repository locations and versions for the workspace D) Configure Bluetooth Low Energy settings Answer: C Explanation: west.yml contains the manifest that maps each repository and its revision for the workspace.

Answer: B Explanation: The /include/ directive pulls in another DTSI file, allowing reuse of node definitions. Question 9. What is the purpose of a Device Tree overlay (.overlay) in Zephyr? A) Replace the entire base Device Tree at compile time B) Add or modify nodes without altering the original .dts file C) Convert Device Tree syntax to JSON D) Provide runtime configuration for peripherals Answer: B Explanation: Overlays are applied on top of the base DTS to adjust hardware description without editing the original file. Question 10. Which of the following best describes a Zephyr Kconfig “choice” construct? A) Allows selecting multiple mutually exclusive options B) Enforces that exactly one option among a set is enabled C) Provides a runtime menu for end users D) Automatically generates Device Tree bindings Answer: B Explanation: A choice block ensures only one of its contained symbols can be selected. Question 11. How does prj.conf differ from defconfig files in Zephyr builds? A) prj.conf is used only for debug builds, defconfig for release B) prj.conf overrides settings after the board’s default configuration

C) defconfig files are generated automatically by the compiler D) prj.conf defines hardware bindings, while defconfig defines kernel features Answer: B Explanation: prj.conf is a project‑specific configuration that can enable or disable options on top of the board’s default defconfig. Question 12. Which Zephyr thread scheduling policy allows a thread to be preempted only by higher‑priority threads? A) Cooperative scheduling B) Preemptive scheduling C) Round‑robin scheduling D) FIFO scheduling Answer: B Explanation: In preemptive scheduling, a running thread can be interrupted by any thread with a higher priority. Question 13. What is the default priority value for the Zephyr idle thread? A) 0 (highest) B) 5 C) 10 D) 255 (lowest) Answer: D Explanation: The idle thread runs at the lowest possible priority (255) so it only runs when no other thread is ready.

D) ISR_PRIORITY_SET

Answer: B Explanation: ISR_DIRECT_CONNECT registers a direct ISR that runs in interrupt context but can safely call kernel APIs that are ISR‑safe. Question 17. At which initialization level are drivers that require kernel services such as threading typically started? A) PRE_KERNEL_ B) PRE_KERNEL_ C) POST_KERNEL D) APPLICATION Answer: C Explanation: POST_KERNEL initialization occurs after the kernel is up, allowing drivers to use kernel services. Question 18. Which Zephyr API is used to read a digital input pin? A) gpio_pin_set() B) gpio_pin_get() C) gpio_port_enable_callback() D) gpio_pin_toggle() Answer: B Explanation: gpio_pin_get() returns the logical level of the specified GPIO pin. Question 19. The Zephyr sensor API returns data in which standardized structure?

A) struct sensor_value B) struct sensor_data C) struct sensor_reading D) struct sensor_result Answer: A Explanation: struct sensor_value holds a value split into integer and fractional parts, providing a uniform representation. Question 20. Which network protocol in Zephyr is specifically designed for constrained devices and uses UDP as its transport? A) HTTP B) CoAP C) FTP D) SSH Answer: B Explanation: CoAP (Constrained Application Protocol) runs over UDP and is optimized for low‑power, low‑bandwidth devices. Question 21. In Zephyr’s Bluetooth stack, which layer implements the Link Layer (LL) and is typically provided by the controller? A) Host B) L2CAP C) GATT D) HCI

A) ztest_test_suite() and ztest_test_case() B) twister_run() and twister_suite() C) unittest_define() and unittest_case() D) pytest_zephyr() Answer: A Explanation: ztest_test_suite() registers a suite, while ztest_test_case() defines individual test functions. Question 25. When running Zephyr code on QEMU, which command-line option selects the target board model? A) - M B) --board= C) - B D) --target= Answer: A Explanation: QEMU’s -M option specifies the machine (board) model to emulate. Question 26. Which Twister command runs all tests for the currently configured board in a CI pipeline? A) twister - p native_posix - T tests/kernel B) twister - vv - c - d builddir C) twister - x - b - p D) twister - p - T tests Answer: D

Explanation: twister - p <board> - T tests selects the board and runs the full test suite. Question 27. Which Zephyr communication channel is most appropriate for low‑latency, point‑to‑point data exchange between two threads? A) k_fifo B) k_lifo C) k_pipe D) k_msgq Answer: C Explanation: k_pipe provides a byte‑stream interface suitable for low‑latency, direct data transfer. Question 28. In the Zephyr device model, what does the macro DEVICE_DT_DEFINE accomplish? A) Declares a device instance based on a Device Tree node B) Generates a compile‑time checksum of the device firmware C) Registers a driver with the Linux kernel D) Creates a runtime configuration file Answer: A Explanation: DEVICE_DT_DEFINE creates a device object linked to a specific DT node, handling initialization and binding. Question 29. Which of the following is a valid Zephyr logging backend? A) LOG_BACKEND_UART B) LOG_BACKEND_CONSOLE

Question 32. In Zephyr, which macro is used to mark a function as a shell command? A) SHELL_CMD_REGISTER B) SHELL_CMD_DECLARE C) SHELL_CMD_DEFINE D) SHELL_CMD_ADD Answer: C Explanation: SHELL_CMD_DEFINE creates a command that can be invoked from the Zephyr shell. Question 33. Which of the following is NOT a valid Zephyr build system generator? A) Ninja B) Makefiles C) CMake D) Bazel Answer: D Explanation: Zephyr uses CMake and can generate Ninja or Makefile builds, but Bazel is not supported. Question 34. What does the CONFIG_PM option enable in Zephyr? A) Power management framework for runtime sleep states B) Peripheral mapping for GPIO pins C) Packet management for network stacks D) Process monitoring utilities Answer: A

Explanation: CONFIG_PM activates Zephyr’s power management subsystem, allowing devices to enter low‑power states. Question 35. Which Zephyr subsystem provides a unified API for handling multiple sensor types like temperature, humidity, and pressure? A) Sensor API B) ADC API C) PWM API D) DMA API Answer: A Explanation: The Sensor API abstracts diverse sensor hardware under a common interface. Question 36. In the context of Zephyr’s Bluetooth Mesh, what is a “publish address”? A) The address a node uses to send messages to the mesh network B) The address of the Bluetooth controller firmware C) The MAC address of the device’s BLE radio D) The IP address of the provisioning server Answer: A Explanation: A publish address designates where a node sends its outbound mesh messages. Question 37. Which Zephyr configuration option enables support for the CAN bus driver framework? A) CONFIG_CAN_BUS B) CONFIG_CAN C) CONFIG_CAN_DRIVER

B) The board definition to use for compilation C) The output directory for build artifacts D) The debugging level Answer: B Explanation: -DBOARD=<board_name> selects the board configuration files for the build. Question 41. Which of the following is a correct way to declare a static thread stack in Zephyr? A) K_THREAD_STACK_DEFINE(my_stack, 1024); B) static_stack_define(my_stack, 1024); C) THREAD_STACK(my_stack, 1024); D) DEFINE_STACK(my_stack, 1024); Answer: A Explanation: K_THREAD_STACK_DEFINE creates a stack object with the specified size. Question 42. What does the CONFIG_FILE_SYSTEM option enable? A) Support for mounting FAT and LittleFS filesystems B) Automatic generation of file headers for resources C) Integration with cloud storage services D) Real‑time file synchronization across nodes Answer: A Explanation: Enabling CONFIG_FILE_SYSTEM includes the VFS layer and filesystem drivers like FAT and LittleFS.

Question 43. Which Zephyr API is used to schedule a function to run after a delay without creating a dedicated thread? A) k_thread_create() B) k_work_submit_delay() C) k_timer_start() D) k_poll() Answer: B Explanation: k_work_submit_delay() queues a work item to be executed after the specified delay. Question 44. In Zephyr, what is the purpose of the CONFIG_LOG_DEFAULT_LEVEL setting? A) Sets the default log level for all backends at compile time B) Determines the maximum size of log buffers C) Enables or disables the logging subsystem completely D) Configures the log output format (JSON vs. plain text) Answer: A Explanation: CONFIG_LOG_DEFAULT_LEVEL defines the compile‑time default severity (e.g., INFO, DEBUG). Question 45. Which Zephyr command line option disables the generation of debug symbols to reduce binary size? A) - DCONFIG_DEBUG=n B) - DNO_DEBUG C) - DCONFIG_DEBUG=y D) - DCONFIG_DEBUG_OPTIMIZE=y

A) net_ipv6_nd.c B) net_icmpv6.c C) net_nbr.c D) net_mld.c Answer: A Explanation: net_ipv6_nd.c implements IPv6 Neighbor Discovery procedures. Question 49. Which Zephyr configuration option enables support for the Zephyr shell subsystem? A) CONFIG_SHELL B) CONFIG_CMD_SHELL C) CONFIG_ZEPHYR_SHELL D) CONFIG_SHELL_ENABLE Answer: A Explanation: CONFIG_SHELL activates the interactive shell framework. Question 50. Which of the following is a valid Zephyr build target to generate a binary for flashing via JTAG? A) zephyr.bin B) zephyr.hex C) zephyr.elf D) zephyr.img Answer: C

Explanation: The ELF file (zephyr.elf) contains symbol information required for JTAG flashing and debugging. Question 51. In Zephyr, which API is used to allocate memory from the kernel heap at runtime? A) k_malloc() B) sys_malloc() C) heap_alloc() D) kmalloc() Answer: A Explanation: k_malloc() allocates memory from the kernel’s dynamic heap. Question 52. Which Zephyr option enables the use of the POSIX pthread API on native simulations? A) CONFIG_POSIX_PTHREAD B) CONFIG_NATIVE_POSIX_PTHREAD C) CONFIG_PTHREAD D) CONFIG_POSIX_THREADS Answer: A Explanation: CONFIG_POSIX_PTHREAD provides a compatibility layer for POSIX threads. Question 53. Which Zephyr logging macro includes the function name automatically in the log output? A) LOG_INF_FUNC() B) LOG_DBG("%s", func)