Quiz-Test Your Knowledge: Embedded Systems and MCU- Free Embedded Course Online

🚀 Learn BLE on Linux (BlueZ) – Programming Part 1

Hands-on Bluetooth Low Energy course. Special price: ₹399

Enroll Now on Udemy →
💬 Need help or career guidance? Ask us!Contact Us →

MODULE 1 – LESSON 1.1 – QUIZ

Test Your Knowledge: Embedded Systems and MCU

Multiple choice questions, fill-in-the-blank exercises, true/false, and interview preparation questions covering all Module 1 concepts.

20
MCQ Questions
10
Fill in Blanks
15
Interview Q&A
10
True / False

Score Tracker

0
Correct
0
Wrong
0
Attempted

Section 1: Multiple Choice Questions

1. Which of the following best describes an embedded system?

2. What is the base address of the Flash memory on STM32F407?

3. Why is the volatile keyword required for hardware peripheral register pointers?

4. What is the size of uint32_t on ARM Cortex-M4?

5. To SET bit 3 of a 32-bit register variable reg, which operation is correct?

6. What is the main difference between a Microcontroller (MCU) and a Microprocessor (MPU)?

7. Which C header file provides uint8_t, uint16_t, and uint32_t?

8. What does the startup file do before calling main() on an STM32?

9. To CLEAR bit 7 of register reg, which operation is correct?

10. The STM32F407 has how much Flash memory?

11. What is the ARM Cortex-M4 CPU core clock speed of the STM32F407?

12. Where in memory are uninitialized global variables stored on an MCU?

13. Which bus does GPIOA connect to on STM32F407?

14. What does const uint32_t * const ptr mean?

15. Which GCC optimization flag disables all optimizations (best for debugging)?

Section 2: Fill in the Blanks

Type your answer and click Check to reveal the correct answer.

1. The base address of SRAM1 on STM32F407 is

2. To toggle bit 4 of a register, use: reg ____= (1U << 4);

3. The keyword that prevents compiler optimization of a hardware register variable is:

4. The startup code zeros the section in SRAM before calling main().

5. RCC_AHB1ENR register address on STM32F407 is

6. An MCU integrates CPU, , SRAM, and peripherals on a single chip.

7. GPIOA Mode Register (MODER) offset from GPIOA base address is

8. To read bit 2 of register reg, use: (reg >> ___) & 1U

9. The C standard header that provides fixed-width types is <.h>

10. On ARM Cortex-M4, a pointer variable itself is bytes wide.

Section 3: True or False

1. On ARM Cortex-M4, the long data type is always 8 bytes.

2. A peripheral register on STM32F407 must be accessed through a volatile pointer to prevent compiler optimizations.

3. The GPIOA Output Data Register (ODR) is at offset 0x14 from the GPIOA base address.

4. In embedded C, main() should return when the application is done.

5. uint8_t is always exactly 1 byte on every platform.

6. Before accessing a GPIO peripheral on STM32F407, its clock must be enabled in RCC.

7. An embedded system can have more than one microcontroller.

8. Dynamic memory allocation with malloc() is the recommended practice in embedded C.

9. The Cortex-M4 processor has a built-in floating-point unit (FPU).

10. C code is the preferred language for embedded systems because it compiles to efficient machine code and gives direct hardware access.

Section 4: Interview Questions and Answers

Click “Show Answer” to reveal a detailed model answer. Practice articulating these out loud.

Q1: What is the difference between an MCU and an MPU? When would you choose one over the other? +
Q2: Why do we use fixed-width types like uint32_t instead of unsigned int in embedded C? +
Q3: Explain what volatile does and give three real use cases in embedded C. +
Q4: How do you set, clear, toggle, and read a specific bit in a hardware register? +
Q5: What is the STM32F407 memory map? Name the three main regions. +
Q6: Why should embedded C programs avoid dynamic memory allocation (malloc)? +
Q7: What is the role of the startup file in an STM32 project? +
Q8: What is the difference between const uint32_t *p and uint32_t * const p? +
Q9: Why do we need to enable the peripheral clock before using a GPIO on STM32? +
Q10: How do you write a struct that maps to a hardware peripheral’s registers? +
Q11: What is the difference between .data and .bss memory sections? +
Q12: What does the suffix U mean in 1U << 5 and why is it important? +
Q13: Name five characteristics of embedded systems. +
Q14: What is CMSIS and why is it useful? +
Q15: Walk me through the complete sequence of what happens when you power on an STM32F407. +

Lesson 1.1 Complete!

You have finished the quiz for Module 1 Lesson 1.1. Move on to Lesson 1.2 to set up STM32CubeIDE and flash your first program to the board.

💬 Need help or career guidance? Ask us!Contact Us →

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

×

🚀 BLE on Linux (BlueZ)

Hands-on course. Only ₹399

Enroll Now →