You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-multiple-choice-questions.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -439,7 +439,7 @@ h2 ~ p { color: teal; }
439
439
<b><a href="#">↥ back to top</a></b>
440
440
</div>
441
441
442
-
### Q22. A `transition` is set on an element but it doesn't animate. What is the MOST likely cause?
442
+
### Q22. A `transition` is set on an element but it doesn\'t animate. What is the MOST likely cause?
443
443
444
444
```css
445
445
.box {
@@ -473,7 +473,7 @@ h2 ~ p { color: teal; }
473
473
}
474
474
```
475
475
476
-
- A) Rotates, then translates, then scales — order doesn't matter
476
+
- A) Rotates, then translates, then scales — order doesn\'t matter
477
477
- B) Translates 50% right, rotates 15 degrees, and scales 1.2× — applied left-to-right
478
478
- C) Scales first, then rotates, then translates
479
479
- D) Only the last transform function applies
@@ -527,7 +527,7 @@ h2 ~ p { color: teal; }
527
527
528
528
**Answer: A) Styles apply when the page is printed or in print preview**
529
529
530
-
> The `print` media type targets the styles used when the document is sent to a printer or displayed in a browser's print preview.
530
+
> The `print` media type targets the styles used when the document is sent to a printer or displayed in a browser\'s print preview.
531
531
532
532
<divalign="right">
533
533
<b><a href="#">↥ back to top</a></b>
@@ -536,13 +536,13 @@ h2 ~ p { color: teal; }
536
536
### Q27. Which unit is most appropriate for media query breakpoints?
537
537
538
538
- A) `px` — fixed pixel values
539
-
- B) `em` — scales with the browser's base font size, respecting user preferences
539
+
- B) `em` — scales with the browser\'s base font size, respecting user preferences
540
540
- C) `vw` — viewport-based units
541
541
- D) `%` — percentage of the parent element
542
542
543
543
**Answer: B) `em`**
544
544
545
-
> `em`-based breakpoints respect the user's browser font-size settings, making responsive layouts more accessible. `px`-based queries do not scale when users change their default font size.
545
+
> `em`-based breakpoints respect the user\'s browser font-size settings, making responsive layouts more accessible. `px`-based queries do not scale when users change their default font size.
### Q31. A developer uses `line-height: 1.5` without a unit. What does this mean?
605
605
606
606
- A) 1.5 pixels
607
-
- B) 1.5 times the element's font size
607
+
- B) 1.5 times the element\'s font size
608
608
- C) 1.5em relative to the root font size
609
-
- D) 150% of the parent element's height
609
+
- D) 150% of the parent element\'s height
610
610
611
-
**Answer: B) 1.5 times the element's font size**
611
+
**Answer: B) 1.5 times the element\'s font size**
612
612
613
-
> A unitless `line-height` is a multiplier of the element's own `font-size`, which is the recommended approach as it scales correctly with inherited font sizes.
613
+
> A unitless `line-height` is a multiplier of the element\'s own `font-size`, which is the recommended approach as it scales correctly with inherited font sizes.
- C) Only when content overflows the element's boundaries
731
+
- C) Only when content overflows the element\'s boundaries
732
732
- D) Only on touch devices
733
733
734
-
**Answer: C) Only when content overflows the element's boundaries**
734
+
**Answer: C) Only when content overflows the element\'s boundaries**
735
735
736
736
> `overflow: auto` adds scrollbars only when the content is larger than the container, unlike `overflow: scroll` which always shows scrollbars.
737
737
@@ -824,7 +824,7 @@ nav {
824
824
825
825
**Answer: B) Reusable blocks of CSS that can be included in multiple selectors**
826
826
827
-
> Mixins define a reusable set of declarations. Using `@include` injects the mixin's styles into the selector, reducing duplication.
827
+
> Mixins define a reusable set of declarations. Using `@include` injects the mixin\'s styles into the selector, reducing duplication.
828
828
829
829
<divalign="right">
830
830
<b><a href="#">↥ back to top</a></b>
@@ -935,7 +935,7 @@ button:hover {
935
935
}
936
936
```
937
937
938
-
-A) Reduces the element's opacity by 10%
938
+
-A) Reduces the element\'s opacity by 10%
939
939
- B) Decreases the lightness of the color by 10% in HSL space
940
940
- C) Subtracts 10 from each RGB channel
941
941
- D) Converts the color to grayscale
@@ -1011,4 +1011,4 @@ body {
1011
1011
1012
1012
**Answer: C) `@use` and `@forward`**
1013
1013
1014
-
> The Dart Sass team deprecated `@import` in favor of `@use` (for consuming a module) and `@forward` (for re-exporting a module's members). These provide better encapsulation and namespacing.
1014
+
> The Dart Sass team deprecated `@import` in favor of `@use` (for consuming a module) and `@forward` (for re-exporting a module\'s members). These provide better encapsulation and namespacing.
0 commit comments