Skip to content

Commit bece883

Browse files
Update css-multiple-choice-questions.md
1 parent 3fb9a3b commit bece883

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

css-multiple-choice-questions.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ h2 ~ p { color: teal; }
439439
<b><a href="#">↥ back to top</a></b>
440440
</div>
441441

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?
443443

444444
```css
445445
.box {
@@ -473,7 +473,7 @@ h2 ~ p { color: teal; }
473473
}
474474
```
475475

476-
- A) Rotates, then translates, then scales — order doesn't matter
476+
- A) Rotates, then translates, then scales — order doesn\'t matter
477477
- B) Translates 50% right, rotates 15 degrees, and scales 1.2× — applied left-to-right
478478
- C) Scales first, then rotates, then translates
479479
- D) Only the last transform function applies
@@ -527,7 +527,7 @@ h2 ~ p { color: teal; }
527527

528528
**Answer: A) Styles apply when the page is printed or in print preview**
529529

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.
531531
532532
<div align="right">
533533
<b><a href="#">↥ back to top</a></b>
@@ -536,13 +536,13 @@ h2 ~ p { color: teal; }
536536
### Q27. Which unit is most appropriate for media query breakpoints?
537537

538538
- 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
540540
- C) `vw` — viewport-based units
541541
- D) `%` — percentage of the parent element
542542

543543
**Answer: B) `em`**
544544

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.
546546
547547
<div align="right">
548548
<b><a href="#">↥ back to top</a></b>
@@ -604,13 +604,13 @@ color: var(--missing-color, navy);
604604
### Q31. A developer uses `line-height: 1.5` without a unit. What does this mean?
605605

606606
- A) 1.5 pixels
607-
- B) 1.5 times the element's font size
607+
- B) 1.5 times the element\'s font size
608608
- 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
610610

611-
**Answer: B) 1.5 times the element's font size**
611+
**Answer: B) 1.5 times the element\'s font size**
612612

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.
614614
615615
<div align="right">
616616
<b><a href="#">↥ back to top</a></b>
@@ -728,10 +728,10 @@ background: linear-gradient(to right, #ff0000, #0000ff);
728728

729729
- A) Always, regardless of content size
730730
- B) Never — `auto` disables scrollbars
731-
- C) Only when content overflows the element's boundaries
731+
- C) Only when content overflows the element\'s boundaries
732732
- D) Only on touch devices
733733

734-
**Answer: C) Only when content overflows the element's boundaries**
734+
**Answer: C) Only when content overflows the element\'s boundaries**
735735

736736
> `overflow: auto` adds scrollbars only when the content is larger than the container, unlike `overflow: scroll` which always shows scrollbars.
737737
@@ -824,7 +824,7 @@ nav {
824824

825825
**Answer: B) Reusable blocks of CSS that can be included in multiple selectors**
826826

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.
828828
829829
<div align="right">
830830
<b><a href="#">↥ back to top</a></b>
@@ -935,7 +935,7 @@ button:hover {
935935
}
936936
```
937937

938-
- A) Reduces the element's opacity by 10%
938+
- A) Reduces the element\'s opacity by 10%
939939
- B) Decreases the lightness of the color by 10% in HSL space
940940
- C) Subtracts 10 from each RGB channel
941941
- D) Converts the color to grayscale
@@ -1011,4 +1011,4 @@ body {
10111011
10121012
**Answer: C) `@use` and `@forward`**
10131013
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

Comments
 (0)