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: src/questions/index.js
+47-42Lines changed: 47 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ const questions = [
12
12
id: 2,
13
13
question: "What does LVHA mean in CSS?",
14
14
answer:
15
-
"LVHA is the order of link-related pseudo-classes precendence, :link, :visited, :hover, and :active. For selectors that have equal specificity, some rules will be overridden unless you follow the LVHA order.",
15
+
"LVHA is the order of link-related pseudo-classes precedence, :link, :visited, :hover, and :active. For selectors that have equal specificity, some rules will be overridden unless you follow the LVHA order.",
16
16
position: 2,
17
17
tags: ["specificity"]
18
18
},
@@ -44,11 +44,11 @@ const questions = [
44
44
},
45
45
{
46
46
id: 6,
47
-
question: "Can you add ::before or ::after to an <img>?",
47
+
question: "Can you add ::before or ::after to an <img> element?",
48
48
answer:
49
49
"No, both of these pseudo elements are contained by the element's formatting box and thus a replaced element like <img> will not have ::before and ::after",
50
50
position: 6,
51
-
tags: ["psuedo elements","replaced elements"]
51
+
tags: ["pseudo elements","replaced elements"]
52
52
},
53
53
{
54
54
id: 7,
@@ -96,7 +96,7 @@ const questions = [
96
96
question:
97
97
"What happens to the vertical margin on a non-floated element when clear: both is applied?",
98
98
answer:
99
-
"The vertical margins are collapsed and the element is moved below the edge of the associated floated elements, ignoring it's own margin.",
99
+
"The vertical margins are collapsed and the element is moved below the edge of the associated floated elements, ignoring its own margin.",
100
100
position: 12,
101
101
tags: ["float"]
102
102
},
@@ -190,7 +190,8 @@ const questions = [
190
190
},
191
191
{
192
192
id: 23,
193
-
question: "What two properties does “all” not affect?",
193
+
question:
194
+
"'All' resets all properties on an element except what two properties?",
194
195
answer: "unicode-bidi and direction",
195
196
position: 23,
196
197
tags: ["other"]
@@ -213,17 +214,17 @@ const questions = [
213
214
},
214
215
{
215
216
id: 26,
216
-
question: "What is required for z-index to take effect?",
217
+
question: "What position is required for z-index to take effect?",
217
218
answer:
218
-
"Elements must be positioned (relative, absolute, etc). If it has position: static, z-index will not have an effect.",
219
+
"Relative, Absolute, Fixed, Sticky but not static. If it has position: static, z-index will not have an effect.",
219
220
position: 26,
220
221
tags: ["stacking"]
221
222
},
222
223
223
224
{
224
225
id: 27,
225
226
question:
226
-
"What are the common numeric values given to for each level of specificity. ",
227
+
"What are the common numeric values given for each level of specificity. ",
227
228
answer: `Inline styles = 1000
228
229
Id = 100
229
230
Class,attribute, pseudo selector = 10
@@ -251,7 +252,7 @@ const questions = [
251
252
{
252
253
id: 30,
253
254
question: "What are the possible keyword values for border-width?",
254
-
answer: "thin | medium | thick",
255
+
answer: "thin | medium | thick | inherit | initial",
255
256
position: 30,
256
257
tags: ["property values"]
257
258
},
@@ -363,7 +364,7 @@ const questions = [
363
364
{
364
365
id: 44,
365
366
question:
366
-
"What happens when the preferred value of the clamp() function is less than the minium value?",
367
+
"What happens when the preferred value of the clamp() function is less than the minimum value?",
367
368
answer: "The minimum value will become the default then.",
368
369
position: 44,
369
370
tags: ["functions"]
@@ -403,7 +404,7 @@ const questions = [
403
404
id: 49,
404
405
question: "When are styles not inherited?",
405
406
answer:
406
-
"Styles are not inherited when that particular property is explicity declared on the child element either by the user or as a browswer default. For example, <em> does not inherit borders because border-style is set to none by default.",
407
+
"Styles are not inherited when that particular property is explicity declared on the child element either by the user or as a browser default. For example, <em> does not inherit borders because border-style is set to none by default.",
407
408
position: 49,
408
409
tags: ["inheritance"]
409
410
},
@@ -461,7 +462,7 @@ const questions = [
461
462
question: "What are the 4 ways you can define background-size?",
462
463
answer: "cover, contain, width, width and height",
463
464
position: 55,
464
-
tags: ["propety values"]
465
+
tags: ["property values"]
465
466
},
466
467
{
467
468
id: 57,
@@ -563,15 +564,16 @@ const questions = [
563
564
id: 69,
564
565
question: "What determines the position of a floated element?",
565
566
answer:
566
-
"A floated element moves to the left or right of it's contianing element or to the next floated element in it's way.",
567
+
"A floated element moves to the left or right of it's containing element or to the next floated element in it's way.",
567
568
position: 69,
568
569
tags: ["float"]
569
570
},
570
571
571
572
{
572
573
id: 70,
573
-
question: "What elements does the :indetermine apply to?",
574
-
answer: "Radio, checked, and progress",
574
+
question: "What elements does the :indeterminate apply to?",
575
+
answer:
576
+
"<input type='radio' />, <input type='checkbox' />, and <progress />",
575
577
position: 70,
576
578
tags: ["pseudo class"]
577
579
},
@@ -587,7 +589,8 @@ const questions = [
587
589
id: 72,
588
590
question:
589
591
"If an object's aspect ratio does not match its container's and it has object-fit: cover, what happens to the object?",
590
-
answer: "It will take up the container and be clipped to fit aspect ratio.",
592
+
answer:
593
+
"It will take up the container and be clipped to fit the aspect ratio.",
591
594
position: 72,
592
595
tags: ["other"]
593
596
},
@@ -667,13 +670,13 @@ const questions = [
667
670
id: 82,
668
671
question:
669
672
"If you do not set animation-fill-mode, what will happen at the end of the animation?",
670
-
answer: "The element will go back to it's default properties",
673
+
answer: "The element will go back to its default properties",
671
674
position: 82,
672
675
tags: ["animation"]
673
676
},
674
677
{
675
678
id: 83,
676
-
question: "What elements does the :checked psuedo class apply to?",
679
+
question: "What elements does the :checked pseudo class apply to?",
677
680
answer: "input radio, input checkbox, option",
678
681
position: 83,
679
682
tags: ["pseudo class"]
@@ -688,8 +691,9 @@ const questions = [
688
691
689
692
{
690
693
id: 85,
691
-
question: "What are the some of the ways you can indicate a color in CSS?",
692
-
answer: "hex, rgb, rgba, hsl, hsla, transparent, or color keyword",
694
+
question: "What are the different ways you can define a color value",
695
+
answer:
696
+
"hex, 8 digit hex, rgb, rgba, hsl, hsla, transparent, or color keyword, currentColor",
693
697
position: 85,
694
698
tags: ["color"]
695
699
},
@@ -712,17 +716,17 @@ const questions = [
712
716
id: 88,
713
717
question:
714
718
"If an element has a background-image and background-color will background color still be rendered?",
715
-
answer: "Yes, it will show on any transparet parts of the image.",
719
+
answer: "Yes, it will show on any transparent parts of the image.",
716
720
position: 88,
717
721
tags: ["background"]
718
722
},
719
723
720
724
{
721
725
id: 89,
722
726
question:
723
-
"What happens to border-spacing and when you set border-collapse to collapse?",
727
+
"What does border-spacing do when border-collapse: collapse is set?",
724
728
answer:
725
-
"It doesn't apply to anything because it only works with border-collapse: separate",
729
+
"border-spacing doesn't apply anything because it only works with border-collapse: separate",
726
730
position: 89,
727
731
tags: ["border"]
728
732
},
@@ -744,7 +748,7 @@ const questions = [
744
748
},
745
749
{
746
750
id: 92,
747
-
question: "How do you set an element's currentColor?",
751
+
question: "What determines an element's currentColor value?",
748
752
answer: "Current color is defined by the 'color' property",
749
753
position: 92,
750
754
tags: ["font"]
@@ -785,7 +789,7 @@ const questions = [
785
789
786
790
{
787
791
id: 97,
788
-
question: "What types of selectors do animation properties apply to?",
792
+
question: "What types of elements do animation properties apply to?",
789
793
answer: "all elements, ::before and ::after pseudo-elements",
790
794
position: 97,
791
795
tags: ["animation"]
@@ -816,7 +820,8 @@ const questions = [
816
820
{
817
821
id: 101,
818
822
question: "Can :first-child effect more than one element?",
819
-
answer: "Yes it effects each group that matches the selector",
823
+
answer:
824
+
"Yes it affects each dependent child. For example ul li:first-child will match the first ul li and the nested ul li ul li",
820
825
position: 101,
821
826
tags: ["pseudo class"]
822
827
},
@@ -825,11 +830,11 @@ const questions = [
825
830
question: "What elements does :link apply to?",
826
831
answer: "<a>, <area>, or <link>",
827
832
position: 102,
828
-
tags: ["psuedo class"]
833
+
tags: ["pseudo class"]
829
834
},
830
835
{
831
836
id: 103,
832
-
question: "How many default values are there for the cursor property?",
837
+
question: "How many possible values for cursor are there?",
833
838
answer: "36",
834
839
position: 103,
835
840
tags: ["other"]
@@ -869,7 +874,7 @@ const questions = [
869
874
{
870
875
id: 108,
871
876
question:
872
-
"What is the difference between descendent selector and child selector?",
877
+
"What is the difference between a descendent selector (ul li) and child selector (ul > li)?",
873
878
answer: "Child selector only selects immediate children",
874
879
position: 108,
875
880
tags: ["selectors"]
@@ -900,8 +905,8 @@ const questions = [
900
905
{
901
906
id: 112,
902
907
question:
903
-
"For overflow to have an affect it must either have a set height or what?",
904
-
answer: "white-space set to nowrap.",
908
+
"For overflow to have an effect it must either have either a set height, set width, or what?",
909
+
answer: "white-space set to nowrap",
905
910
position: 112,
906
911
tags: ["overflow"]
907
912
},
@@ -921,9 +926,9 @@ const questions = [
921
926
},
922
927
{
923
928
id: 115,
924
-
question: "When dos text-overflow take effect?",
929
+
question: "When does text-overflow take effect?",
925
930
answer:
926
-
"Only when text is overflowing in the inline direction, for example, overflow: hidden white-space: nowrap; forces text on one line and overflows inline",
931
+
"Only when text is overflowing on one line, not text overflowing at the bottom of a box. This can be accomplished by applying overflow: hidden and white-space: nowrap, which forces text on one line and hides overflow.",
927
932
position: 115,
928
933
tags: ["overflow"]
929
934
},
@@ -948,9 +953,9 @@ const questions = [
948
953
{
949
954
id: 118,
950
955
question:
951
-
"If sibling element's have different flex-grow values, how are size's determined?",
956
+
"If sibling elements have different flex-grow values, how are sizes determined?",
952
957
answer:
953
-
"As a ratio between the two values, for example 2 and 1 will be 66% and 33% respectiably",
958
+
"As a ratio between the two values, for example 2 and 1 will be 66% and 33% respectively",
954
959
position: 118,
955
960
tags: ["flex"]
956
961
},
@@ -981,7 +986,7 @@ const questions = [
981
986
id: 122,
982
987
question: "Can list-style apply to elements besides <li>s?",
983
988
answer:
984
-
"Yes, it applies to any element with the poperty display set to list-item",
989
+
"Yes, it applies to any element with the property display set to list-item",
0 commit comments