In Figma, you create a button component with a boolean variant property named Disabled. What happens when you set Disabled to true?
Think about how boolean variants usually toggle a state on or off.
Boolean variant properties toggle between two states, such as enabled or disabled. Setting Disabled to true applies the disabled style, making the button look inactive.
You have a component with an enum variant property called Size with options Small, Medium, and Large. What is the main advantage of using an enum variant over multiple boolean variants for size?
Consider how enum variants differ from boolean variants in exclusivity.
Enum variants let you pick exactly one option from a list, ensuring the component can't have conflicting sizes like both Small and Large at once.
You have a table of components with boolean variant properties IsPrimary and IsDisabled. Write a DAX measure to count how many components have IsPrimary set to true and IsDisabled set to false.
ActivePrimaryCount = CALCULATE(COUNTROWS(Components), Components[IsPrimary] = TRUE(), Components[IsDisabled] = FALSE())
Use CALCULATE with filter conditions to count rows matching both criteria.
CALCULATE with multiple filter conditions counts rows where both IsPrimary is true and IsDisabled is false. Option C uses this correctly.
You want to show how many components use each Size enum variant (Small, Medium, Large) in a dashboard. Which visualization type is best to clearly show the count per size?
Think about which chart type clearly compares categories side by side.
A bar chart is best for comparing counts across discrete categories like enum sizes. Pie charts can be less clear for exact counts, and line or scatter plots are less suitable here.
You have a data model with a table Components that includes a boolean variant property IsActive and an enum variant property Status with values Active, Inactive. You notice that some components have IsActive = FALSE but Status = 'Active'. What is the most likely cause?
Think about how two variant properties representing similar states can cause conflicts if not managed.
Boolean and enum variant properties represent states differently. If they are not kept in sync, components can have conflicting values like IsActive = FALSE but Status = 'Active'.