Skip to content

Commit 6c4df03

Browse files
committed
Reword some questions, fix typos
1 parent 9fdde50 commit 6c4df03

File tree

1 file changed

+47
-42
lines changed

1 file changed

+47
-42
lines changed

src/questions/index.js

Lines changed: 47 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const questions = [
1212
id: 2,
1313
question: "What does LVHA mean in CSS?",
1414
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.",
1616
position: 2,
1717
tags: ["specificity"]
1818
},
@@ -44,11 +44,11 @@ const questions = [
4444
},
4545
{
4646
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?",
4848
answer:
4949
"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",
5050
position: 6,
51-
tags: ["psuedo elements", "replaced elements"]
51+
tags: ["pseudo elements", "replaced elements"]
5252
},
5353
{
5454
id: 7,
@@ -96,7 +96,7 @@ const questions = [
9696
question:
9797
"What happens to the vertical margin on a non-floated element when clear: both is applied?",
9898
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.",
100100
position: 12,
101101
tags: ["float"]
102102
},
@@ -190,7 +190,8 @@ const questions = [
190190
},
191191
{
192192
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?",
194195
answer: "unicode-bidi and direction",
195196
position: 23,
196197
tags: ["other"]
@@ -213,17 +214,17 @@ const questions = [
213214
},
214215
{
215216
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?",
217218
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.",
219220
position: 26,
220221
tags: ["stacking"]
221222
},
222223

223224
{
224225
id: 27,
225226
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. ",
227228
answer: `Inline styles = 1000
228229
Id = 100
229230
Class,attribute, pseudo selector = 10
@@ -251,7 +252,7 @@ const questions = [
251252
{
252253
id: 30,
253254
question: "What are the possible keyword values for border-width?",
254-
answer: "thin | medium | thick",
255+
answer: "thin | medium | thick | inherit | initial",
255256
position: 30,
256257
tags: ["property values"]
257258
},
@@ -363,7 +364,7 @@ const questions = [
363364
{
364365
id: 44,
365366
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?",
367368
answer: "The minimum value will become the default then.",
368369
position: 44,
369370
tags: ["functions"]
@@ -403,7 +404,7 @@ const questions = [
403404
id: 49,
404405
question: "When are styles not inherited?",
405406
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.",
407408
position: 49,
408409
tags: ["inheritance"]
409410
},
@@ -461,7 +462,7 @@ const questions = [
461462
question: "What are the 4 ways you can define background-size?",
462463
answer: "cover, contain, width, width and height",
463464
position: 55,
464-
tags: ["propety values"]
465+
tags: ["property values"]
465466
},
466467
{
467468
id: 57,
@@ -563,15 +564,16 @@ const questions = [
563564
id: 69,
564565
question: "What determines the position of a floated element?",
565566
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.",
567568
position: 69,
568569
tags: ["float"]
569570
},
570571

571572
{
572573
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 />",
575577
position: 70,
576578
tags: ["pseudo class"]
577579
},
@@ -587,7 +589,8 @@ const questions = [
587589
id: 72,
588590
question:
589591
"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.",
591594
position: 72,
592595
tags: ["other"]
593596
},
@@ -667,13 +670,13 @@ const questions = [
667670
id: 82,
668671
question:
669672
"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",
671674
position: 82,
672675
tags: ["animation"]
673676
},
674677
{
675678
id: 83,
676-
question: "What elements does the :checked psuedo class apply to?",
679+
question: "What elements does the :checked pseudo class apply to?",
677680
answer: "input radio, input checkbox, option",
678681
position: 83,
679682
tags: ["pseudo class"]
@@ -688,8 +691,9 @@ const questions = [
688691

689692
{
690693
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",
693697
position: 85,
694698
tags: ["color"]
695699
},
@@ -712,17 +716,17 @@ const questions = [
712716
id: 88,
713717
question:
714718
"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.",
716720
position: 88,
717721
tags: ["background"]
718722
},
719723

720724
{
721725
id: 89,
722726
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?",
724728
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",
726730
position: 89,
727731
tags: ["border"]
728732
},
@@ -744,7 +748,7 @@ const questions = [
744748
},
745749
{
746750
id: 92,
747-
question: "How do you set an element's currentColor?",
751+
question: "What determines an element's currentColor value?",
748752
answer: "Current color is defined by the 'color' property",
749753
position: 92,
750754
tags: ["font"]
@@ -785,7 +789,7 @@ const questions = [
785789

786790
{
787791
id: 97,
788-
question: "What types of selectors do animation properties apply to?",
792+
question: "What types of elements do animation properties apply to?",
789793
answer: "all elements, ::before and ::after pseudo-elements",
790794
position: 97,
791795
tags: ["animation"]
@@ -816,7 +820,8 @@ const questions = [
816820
{
817821
id: 101,
818822
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",
820825
position: 101,
821826
tags: ["pseudo class"]
822827
},
@@ -825,11 +830,11 @@ const questions = [
825830
question: "What elements does :link apply to?",
826831
answer: "<a>, <area>, or <link>",
827832
position: 102,
828-
tags: ["psuedo class"]
833+
tags: ["pseudo class"]
829834
},
830835
{
831836
id: 103,
832-
question: "How many default values are there for the cursor property?",
837+
question: "How many possible values for cursor are there?",
833838
answer: "36",
834839
position: 103,
835840
tags: ["other"]
@@ -869,7 +874,7 @@ const questions = [
869874
{
870875
id: 108,
871876
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)?",
873878
answer: "Child selector only selects immediate children",
874879
position: 108,
875880
tags: ["selectors"]
@@ -900,8 +905,8 @@ const questions = [
900905
{
901906
id: 112,
902907
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",
905910
position: 112,
906911
tags: ["overflow"]
907912
},
@@ -921,9 +926,9 @@ const questions = [
921926
},
922927
{
923928
id: 115,
924-
question: "When dos text-overflow take effect?",
929+
question: "When does text-overflow take effect?",
925930
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.",
927932
position: 115,
928933
tags: ["overflow"]
929934
},
@@ -948,9 +953,9 @@ const questions = [
948953
{
949954
id: 118,
950955
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?",
952957
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",
954959
position: 118,
955960
tags: ["flex"]
956961
},
@@ -981,7 +986,7 @@ const questions = [
981986
id: 122,
982987
question: "Can list-style apply to elements besides <li>s?",
983988
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",
985990
position: 121,
986991
tags: ["other"]
987992
},
@@ -1019,7 +1024,7 @@ const questions = [
10191024
{
10201025
id: 127,
10211026
question: "Does ::first-line affect inline-elements?",
1022-
answer: "No, it only effects block level elements",
1027+
answer: "No, it only affects block level elements",
10231028
position: 127,
10241029
tags: ["pseudo element"]
10251030
},
@@ -1050,7 +1055,7 @@ const questions = [
10501055
{
10511056
id: 131,
10521057
question:
1053-
"If you set background-attachtment: fixed, what happens to background-origin?",
1058+
"If you set background-attachment: fixed, what happens to background-origin?",
10541059
answer: "It gets ignored",
10551060
position: 131,
10561061
tags: ["background"]
@@ -1083,7 +1088,7 @@ const questions = [
10831088
question: "What does ::selection select?",
10841089
answer: "Part of a document that has been highlighted by the user",
10851090
position: 135,
1086-
tags: ["pseuo element"]
1091+
tags: ["pseudo element"]
10871092
},
10881093
{
10891094
id: 136,
@@ -1095,7 +1100,7 @@ const questions = [
10951100

10961101
{
10971102
id: 137,
1098-
question: "What is the default value for caption-aside?",
1103+
question: "What is the default value for caption-side?",
10991104
answer: "top",
11001105
position: 137,
11011106
tags: ["default value"]
@@ -1109,15 +1114,15 @@ const questions = [
11091114
},
11101115
{
11111116
id: 139,
1112-
question: "What is the intial value for flex-grow?",
1117+
question: "What is the initial value for flex-grow?",
11131118
answer: 0,
11141119
position: 139,
11151120
tags: ["flex"]
11161121
},
11171122
{
11181123
id: 140,
11191124
question: "What level of specificity do media queries add?",
1120-
answer: "They doen't add any",
1125+
answer: "They don't add any",
11211126
position: 140,
11221127
tags: ["at rules"]
11231128
}

0 commit comments

Comments
 (0)