B. The width and height must be strings with units.
C. The top and left properties cannot be used with relative position.
D. The style has two position properties; the last one overrides the first.
Solution
Step 1: Check for duplicate properties
The style object has two 'position' keys; the second 'relative' overrides the first 'absolute'.
Step 2: Understand effect of duplicate keys
Only the last 'position' value is used, so the box is positioned relative, not absolute as intended.
Final Answer:
The style has two position properties; the last one overrides the first. -> Option D
Quick Check:
Duplicate keys overwrite earlier ones [OK]
Hint: Avoid duplicate keys; last one wins [OK]
Common Mistakes:
Thinking both position values apply
Using units like '100px' instead of numbers
Assuming backgroundColor case matters
5. You want to place a small badge at the top-right corner of a profile picture in React Native. The profile picture is 100x100. Which style for the badge will correctly position it overlapping the top-right corner inside the picture?