FreeRTOS priorities must be zero or positive integers; negative values are invalid.
Step 2: Validate other parameters
Task name can be reused, stack size 1000 is valid, and task function returns void as required.
Final Answer:
Priority cannot be negative -> Option A
Quick Check:
Priority >= 0 required [OK]
Hint: Priority must be zero or positive [OK]
Common Mistakes:
Using negative priority values
Thinking task names must be unique
Expecting task function to return int
5.
You have three tasks with priorities 1, 3, and 3. How should you assign priorities to ensure the most important task runs first and the least important runs last?
Choose the best priority assignment:
A: Task1=1, Task2=3, Task3=3
B: Task1=3, Task2=3, Task3=1
C: Task1=3, Task2=1, Task3=3
D: Task1=1, Task2=1, Task3=3
hard
A. Task1=1 (lowest), Task2=3, Task3=3 (highest)
B. Task1=3 (highest), Task2=3, Task3=1 (lowest)
C. Task1=3 (highest), Task2=1, Task3=3 (highest)
D. Task1=1, Task2=1, Task3=3 (highest)
Solution
Step 1: Identify importance order
The most important task should have highest priority (3), least important lowest (1).
Step 2: Match priorities to tasks
Task1=3 (highest), Task2=3, Task3=1 (lowest) assigns highest priority (3) to Task1 and Task2, and lowest (1) to Task3, ensuring important tasks run first.
Final Answer:
Task1=3 (highest), Task2=3, Task3=1 (lowest) -> Option B
Quick Check:
Highest priority = most important task [OK]
Hint: Assign highest number to most important task [OK]
Common Mistakes:
Assigning same priority to all tasks
Giving lowest priority to important tasks
Ignoring task importance order
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.