Docsity

Speaker Embedded Linux Conference 2021 Practice Exam, Exams of Technology

Toggle sidebar
bg1
Speaker Embedded Linux Conference 2021
Practice Exam
**Question 1. Which directory in the Linux kernel source tree contains the architecture‑specific
code for ARM?**
A) arch/arm64
B) arch/arm
C) arch/x86
D) drivers/arm
Answer: B
Explanation: The `arch/arm` directory holds all ARM‑specific kernel code, while `arch/arm64` is
for AArch64.
**Question 2. In the kernel configuration process, which command is used to interactively
select options?**
A) make menuconfig
B) make defconfig
C) make oldconfig
D) make xconfig
Answer: A
Explanation: `make menuconfig` launches a terminal‑based UI for selecting kernel options.
**Question 3. What is the primary purpose of the Device Tree (DT) in embedded Linux?**
A) Provide a runtime scheduler
B) Describe hardware layout to the kernel
C) Manage user‑space processes
D) Compile kernel modules
Answer: B
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

Partial preview of the text

Download Speaker Embedded Linux Conference 2021 Practice Exam and more Exams Technology in PDF only on Docsity!

Practice Exam

Question 1. Which directory in the Linux kernel source tree contains the architecture‑specific code for ARM? A) arch/arm B) arch/arm C) arch/x D) drivers/arm Answer: B Explanation: The arch/arm directory holds all ARM‑specific kernel code, while arch/arm64 is for AArch64. Question 2. In the kernel configuration process, which command is used to interactively select options? A) make menuconfig B) make defconfig C) make oldconfig D) make xconfig Answer: A Explanation: make menuconfig launches a terminal‑based UI for selecting kernel options. Question 3. What is the primary purpose of the Device Tree (DT) in embedded Linux? A) Provide a runtime scheduler B) Describe hardware layout to the kernel C) Manage user‑space processes D) Compile kernel modules Answer: B

Practice Exam

Explanation: The DT blob tells the kernel what peripherals exist, their addresses, and configuration. Question 4. Which tool compiles a .dts source file into a binary DTB? A) dtc B) ld C) objdump D) mkimage Answer: A Explanation: The Device Tree Compiler (dtc) converts DTS source into a DTB binary. Question 5. In a DT binding file, the property compatible is used to: A) Define the CPU architecture B) Match the node with a driver C) Set the memory size D) Enable power management Answer: B Explanation: The compatible string links a device node to the appropriate driver. Question 6. Which subsystem handles pin multiplexing in the Linux kernel? A) gpio B) pinctrl C) i2c D) spi Answer: B

Practice Exam

Explanation: Kernel 5.10 was designated an LTS release, receiving extended maintenance. Question 10. In the kernel development workflow, after creating a patch, the next step is to: A) Commit directly to master B) Submit to the relevant subsystem maintainer for review C) Delete the patch D) Merge into the stable branch without review Answer: B Explanation: Patches are sent to maintainers via mailing lists for review before upstreaming. Question 11. Which command creates a minimal Yocto build environment? A) bitbake core-image-minimal B) yocto-create build‑env C) source oe-init-build-env D) yocto-build minimal Answer: C Explanation: source oe-init-build-env sets up the build directory and environment variables. Question 12. In Yocto, a .bb file is called a: A) BitBake recipe b) Layer definition c) Configuration file d) Patch file Answer: A

Practice Exam

Explanation: .bb files define how to fetch, configure, compile, and package software. Question 13. Which Yocto layer typically contains the reference distribution (Poky)? A) meta‑openembedded B) meta‑yocto c) meta‑poky d) meta‑recipes-core Answer: C Explanation: meta-poky holds the reference distribution, including default configurations. Question 14. To add a new recipe for a custom application, you should place it in: A) meta‑custom/recipes‑myapp b) meta‑poky/recipes‑myapp c) meta‑layers/recipes‑myapp d) meta‑openembedded/recipes‑myapp Answer: A Explanation: Custom layers (meta-custom) keep user‑added recipes separate from upstream. Question 15. Which tool is commonly used for remote debugging of an embedded Linux target over JTAG? A) strace b) gdbserver c) kgdb d) perf Answer: C

Practice Exam

d) Built‑in security features only Answer: B Explanation: RISC‑V is an open ISA, enabling vendors to add custom instructions without licensing fees. Question 19. Which bootloader is most commonly used in Yocto‑based embedded systems? A) GRUB b) U‑Boot c) LILO d) syslinux Answer: B Explanation: U‑Boot provides flexible board initialization and is well integrated with Yocto. Question 20. During the boot sequence, which component loads the Device Tree Blob into memory? A) ROM b) Bootloader (U‑Boot) c) Kernel initramfs d) Systemd Answer: B Explanation: The bootloader passes the DTB address to the kernel as part of the boot parameters. Question 21. Which Linux subsystem provides the V4L2 API for video capture devices? A) media

Practice Exam

b) videobuf c) video4linux d) drm Answer: C Explanation: The Video4Linux2 (V4L2) API resides in the video4linux subsystem. Question 22. In the videobuf2 framework, what does the term “buffer pool” refer to? A) A set of pre‑allocated memory buffers for video frames b) A network packet queue c) A CPU scheduler queue d) A filesystem cache Answer: A Explanation: Buffer pools reduce allocation overhead by reusing memory for video frames. Question 23. Which kernel configuration option enables the PREEMPT_RT patch set features? A) CONFIG_PREEMPT_RT_FULL b) CONFIG_PREEMPT_NONE c) CONFIG_PREEMPT_VOLUNTARY d) CONFIG_PREEMPT_DESKTOP Answer: A Explanation: CONFIG_PREEMPT_RT_FULL activates the full real‑time preemptible kernel. Question 24. What is the purpose of the phylib in Linux networking drivers? A) Provide a generic PHY management API for Ethernet drivers

Practice Exam

A) IMAGE_ROOTFS_SIZE

b) ROOTFS_SIZE c) IMAGE_OVERHEAD_FACTOR d) ROOTFS_MAXSIZE Answer: A Explanation: IMAGE_ROOTFS_SIZE defines the target size for the rootfs image. Question 28. Which of the following is a key benefit of using the Distributed Switch Architecture (DSA) framework? A) Centralized management of multiple physical switches as a single logical device b) Automatic firmware updates for switches c) Built‑in wireless support d) Encryption of all Ethernet frames Answer: A Explanation: DSA allows a Linux host to control several external switch chips as one logical network interface. Question 29. In ROS2, which middleware is used for DDS‑based communication? A) MQTT b) ZeroMQ c) Fast‑RTPS (FastDDS) d) AMQP Answer: C Explanation: ROS2 relies on DDS implementations such as Fast‑RTPS for publish/subscribe messaging.

Practice Exam

Question 30. Which command in U‑Boot displays the current boot arguments? A) printenv bootargs b) show bootargs c) env list bootargs d) display bootargs Answer: A Explanation: printenv bootargs prints the environment variable containing kernel command‑line parameters. Question 31. What is the main function of the pinctrl driver’s pinmux operation? A) Set the direction of a GPIO line b) Select the alternate function for a pin c) Enable power to the pin d) Read the pin voltage Answer: B Explanation: pinmux configures which peripheral function a physical pin should perform. Question 32. Which kernel subsystem provides support for hardware timestamping on network interfaces? A) netfilter b) ptp (Precision Time Protocol) c) skb timestamping d) netdev Answer: B Explanation: The ptp subsystem enables hardware timestamping for accurate packet timing.

Practice Exam

Explanation: RTOSes are designed for constrained resources; unlimited memory usage is unrealistic. Question 36. What does the CONFIG_ARM_PSCI kernel option enable? A) Power State Coordination Interface for ARM CPUs b) PCIe support on ARM boards c) Audio subsystem on ARM platforms d) USB host controller on ARM Answer: A Explanation: PSCI standardizes power management operations across ARM platforms. Question 37. In Yocto, what is the purpose of a bbappend file? A) To append additional patches to an existing recipe b) To define a new layer c) To create a new image type d) To set global configuration variables Answer: A Explanation: bbappend files modify or extend existing .bb recipes without altering the original. Question 38. Which command can be used to list all loaded kernel modules? A) lsmod b) modprobe - l c) insmod --list d) cat /proc/moduleslist

Practice Exam

Answer: A Explanation: lsmod reads /proc/modules and displays currently loaded modules. Question 39. Which of the following is a typical use case for the CONFIG_ARM64_ERRATUM_1463225 option? A) Workaround for a known ARM64 CPU bug b) Enabling 64‑bit USB support c) Adding support for ARM64 virtualization d) Enabling high‑resolution timers Answer: A Explanation: Erratum options provide workarounds for specific processor bugs. Question 40. What is the role of systemd in an embedded Linux distribution? A) Provide a bootloader b) Manage system services and initialization c) Compile kernel modules d) Perform hardware diagnostics Answer: B Explanation: systemd is the init system that starts and supervises services. Question 41. Which kernel feature allows userspace to request a high‑resolution timer? A) POSIX timers b) hrtimers c) tickless kernel (CONFIG_NO_HZ) d) watchdog timers

Practice Exam

d) all of the above Answer: D Explanation: All listed tools can report CPU usage; top provides a real‑time view. Question 45. In Linux networking, which socket option enables packet timestamping in software? A) SO_TIMESTAMP b) SO_RCVBUF c) SO_PRIORITY d) SO_REUSEADDR Answer: A Explanation: SO_TIMESTAMP requests that the kernel attach a timestamp to received packets. Question 46. What is the primary function of the ubootenv partition in many embedded devices? A) Store the bootloader binary b) Hold environment variables for U‑Boot c) Contain the kernel image d) Provide a root filesystem Answer: B Explanation: ubootenv stores persistent U‑Boot environment variables such as boot arguments. Question 47. Which kernel subsystem implements the gpio‑chip abstraction? A) pinctrl b) gpiolib

Practice Exam

c) i2c‑core d) spi‑core Answer: B Explanation: gpiolib provides a generic API for GPIO controllers (gpio‑chip). Question 48. In the context of security, what does “supply‑chain attack” refer to? A) Direct hacking of the running device b) Compromise of code or binaries before they reach the device c) Physical tampering of hardware d) Network‑level denial of service Answer: B Explanation: Supply‑chain attacks target the development or distribution process to inject malicious code. Question 49. Which of the following is a recommended practice for reducing the footprint of an embedded Linux image? A) Include all available kernel modules b) Use CONFIG_DEBUG_KERNEL c) Enable CONFIG_MODULES and load modules on demand d) Disable CONFIG_IKCONFIG and strip unused binaries Answer: D Explanation: Stripping debug info and unused components reduces image size. Question 50. Which command in the Linux kernel source can be used to generate a list of all exported symbols? A) make modules_symvers

Practice Exam

A) Managing network interfaces b) Isolating resource usage (CPU, memory) per process group c) Providing hardware abstraction for GPIO d) Bootloader configuration Answer: B Explanation: Control groups allow the kernel to limit and monitor resources for groups of processes. Question 54. Which kernel configuration option enables the CONFIG_PREEMPT_RT full patch set? A) CONFIG_PREEMPT_RT_FULL b) CONFIG_PREEMPT_NONE c) CONFIG_PREEMPT_VOLUNTARY d) CONFIG_PREEMPT_DESKTOP Answer: A Explanation: This option activates the full real‑time preemptible kernel. Question 55. What is the purpose of the systemd-networkd daemon? A) Provide a DHCP server only b) Manage network interfaces and configurations declaratively c) Replace the kernel’s networking stack d) Perform packet filtering Answer: B Explanation: systemd-networkd reads .network files and configures interfaces accordingly.

Practice Exam

Question 56. In the context of machine learning on the edge, which hardware component is most commonly used for inference acceleration? A) General‑purpose CPU only b) Dedicated GPU or NPU (Neural Processing Unit) c) Hard disk drive d) Ethernet controller Answer: B Explanation: GPUs, NPUs, or DSPs provide the parallel compute needed for fast inference. Question 57. Which of the following is a key benefit of using Kconfig files in the kernel source? A) They compile the kernel automatically b) They define configurable options and dependencies for make menuconfig c) They store runtime logs d) They generate device tree blobs Answer: B Explanation: Kconfig files describe configuration symbols and their relationships. Question 58. Which Yocto class provides support for creating a bootable image with a U‑Boot SPL? A) bootloader b) bootloader-u-boot-spl c) image-bootloader d) uboot-spl Answer: B Explanation: The bootloader-u-boot-spl class handles SPL generation for boards that need it.