CJCoding With Joseph
15per day
TitleAction
1
Console OutputTo display the exact string "Hello, World!" in the console, which code should yo...
easy○ Not StartedPrintingSolve
2
Adding Two NumbersYou have two variables, num1 = 5 and num2 = 10. Which code correctly calculates ...
easy○ Not StartedPrintingSolve
3
Logging Array LengthGiven an array of fruits, which statement logs "Array length: 4"?...
easy○ Not StartedPrintingSolve
4
For Loop 1 to 5What numbers does the following loop print?...
easy○ Not StartedLoopsSolve
5
While Loop CountdownIf you start with let count = 5 and run the loop below, what numbers are logged?...
easy○ Not StartedLoopsSolve
6
Do While RepetitionHow many times will "Practice makes progress" be printed by the following code?...
easy○ Not StartedLoopsSolve
7
Sum 1 to 10After running this loop, what value is printed?...
easy○ Not StartedLoopsSolve
8
Loop Through ArrayWhich loop correctly logs each fruit on a new line?...
easy○ Not StartedLoopsSolve
9
Sum Array With WhileGiven const numbers = [4, 8, 2, 6];, which code sums the elements and logs "Tota...
easy○ Not StartedLoopsSolve
10
Do While EvensWhat output results from this code?...
easy○ Not StartedLoopsSolve
11
Copy of Element nodeValueWhat does nodeValue return for element nodes?...
easy○ Not StartedDOMSolve
11
forEach MethodWhich array method will execute a function for each element without returning a ...
easy○ Not StartedLoopsSolve
12
Total Price With forEachGiven const prices = [10, 20, 15];, which approach correctly calculates and logs...
easy○ Not StartedLoopsSolve
13
Doubling With mapWhat array results from running the following code?...
easy○ Not StartedLoopsSolve
14
Uppercase With mapWhich method converts each word in ['cat','dog','bird'] to uppercase and returns...
easy○ Not StartedLoopsSolve
15
Filter Even NumbersHow can you obtain an array of only the even numbers from [1, 2, 3, 4, 5, 6]?...
easy○ Not StartedLoopsSolve
16
Filter Words by LengthGiven const words = ['sun','apple','tree','grapes'];, which code returns only th...
easy○ Not StartedLoopsSolve
18
Counting Passing ScoresUsing the array const scores = [55, 78, 90, 62, 48];, a passing score is >= 60. ...
easy○ Not StartedLoopsSolve
19
Change Text ContentTo select a paragraph with the id message and change its text to "Text has been ...
easy○ Not StartedHTML DOMSolve
20
Add CSS ClassGiven a button with id="myButton", how can you add the class active to it?...
easy○ Not StartedHTML DOMSolve
21
Change Button TextTo change the text of the button with id="submitBtn" to "Submit Form", which sta...
easy○ Not StartedHTML DOMSolve
22
Add Class to HeadingHow do you select the heading with id="pageTitle" and add the CSS class highligh...
easy○ Not StartedHTML DOMSolve
23
Change Image SourceFor <img id="profilePic" src="default.png" alt="Profile">, which property do you...
easy○ Not StartedHTML DOMSolve
24
Multiple Style PropertiesTo set a paragraph's text color to blue, font size to 20px, and background color...
easy○ Not StartedHTML DOMSolve
25
Toggle a CSS ClassWhich method switches the class dark on and off on a div with id="themeBox"?...
easy○ Not StartedHTML DOMSolve
26
Replace innerHTMLTo replace all content inside <div id="contentBox"></div> with a new heading and...
easy○ Not StartedHTML DOMSolve
27
Remove an ElementWith <p id="removeMe">Delete this paragraph</p>, how do you remove the paragraph...
easy○ Not StartedHTML DOMSolve
28
Update Link Href and TextTo update <a id="navLink">Link</a> so that it navigates to https://example.com a...
easy○ Not StartedHTML DOMSolve
29
Remove a CSS ClassIf the div with id="alertBox" has a class error, how do you remove that class?...
easy○ Not StartedHTML DOMSolve
30
Select First by ClassTo select the first element with the class highlight and change its text to "Hig...
easy○ Not StartedHTML DOMSolve
31
Update Text and Add ClassWith <p id="status"></p>, how can you change its text to "Complete" and add the ...
easy○ Not StartedHTML DOMSolve
32
Update Span TextGiven <span id="counter"></span>, which code sets its text to 5 and adds the cla...
easy○ Not StartedHTML DOMSolve
33
Update Home LinkWhich commands update <a id="homeLink"></a> so that it points to /home and reads...
easy○ Not StartedHTML DOMSolve
37
Progressive EnhancementThe process of ensuring that web pages coded with new techniques still work in o...
easy○ Not StartedWeb FundamentalsSolve
38
HTML5 Slider ControlWhich value of the `type` attribute creates an HTML5 slider?...
easy○ Not StartedHTMLSolve
39
Linking to a FragmentHow do you correctly link to the #school section inside resume.html?...
easy○ Not StartedHTMLSolve
40
CSS Proximity PrincipleWhen applying the design principle of grouping related items together, this is k...
easy○ Not StartedDesignSolve
41
CSS Float RightWhich CSS correctly floats an element right with 10px margin and a solid black b...
easy○ Not StartedCSSSolve
42
Relative PositioningWhich positioning method allows you to slightly shift an element from its normal...
easy○ Not StartedCSSSolve
43
Image as LinkWhich correctly creates an image that links to school.html?...
easy○ Not StartedHTMLSolve
44
Float Right BehaviorIf an element is set to float:right, other content will:...
easy○ Not StartedCSSSolve
45
Triadic Color SchemeA color scheme using three colors equally spaced on the color wheel is called:...
easy○ Not StartedDesignSolve
46
List Style ImageWhich CSS property allows you to use an image as a bullet point?...
easy○ Not StartedCSSSolve
47
Blockquote PurposeWhich HTML tag indents text from both left and right margins?...
easy○ Not StartedHTMLSolve
48
Select List ControlWhich form control is best when you want to save space while offering many optio...
easy○ Not StartedHTML FormsSolve
49
Caption PositioningWhich CSS property controls the position of a table caption?...
easy○ Not StartedCSSSolve
50
Fieldset PurposeWhich HTML tag groups related form controls together visually?...
easy○ Not StartedHTML FormsSolve
51
Descendant SelectorWhich CSS selector targets anchor tags inside a nav element?...
easy○ Not StartedCSSSolve
52
Description ListWhich HTML list type is best for terms and definitions?...
easy○ Not StartedHTMLSolve
53
Radio Button GroupsFor radio buttons to act as a group, they must share the same:...
easy○ Not StartedHTML FormsSolve
54
Universal SelectorWhich symbol represents the CSS universal selector?...
easy○ Not StartedCSSSolve
55
Span Tag UseWhich tag is used to define a generic inline container?...
easy○ Not StartedHTMLSolve
56
nth-of-typeWhich selector allows styling every other row of a table?...
easy○ Not StartedCSSSolve
57
Reset ButtonWhich HTML element resets a form?...
easy○ Not StartedHTML FormsSolve
58
Select Tag AttributesWhich set of attributes are valid for a <select> element?...
easy○ Not StartedHTML FormsSolve
59
CGI MeaningWhat does CGI stand for?...
easy○ Not StartedWeb FundamentalsSolve
60
Label AssociationWhich correctly associates a label with an input?...
easy○ Not StartedHTML FormsSolve
61
Padding DefinitionPadding is:...
easy○ Not StartedCSSSolve
62
Strict ModeDevelopers recommend running JavaScript in _______ to catch unsafe actions and c...
easy○ Not StartedJavaScriptSolve
63
Looping childNodesWhen looping through child nodes using a counter variable, which expression corr...
easy○ Not StartedDOMSolve
64
Strict EqualityWhich operator checks both value and data type?...
easy○ Not StartedJavaScriptSolve
65
Array Queue BehaviorWhich array method removes the first element of an array?...
easy○ Not StartedJavaScriptSolve
66
Setting a Class NameWhich JavaScript statement sets the class of an element with id "menu1" to "menu...
easy○ Not StartedDOMSolve
67
onbeforeunload EventWhich event fires just before a page is unloaded?...
easy○ Not StartedDOMSolve
68
Creating a SubarrayWhich method creates a new array from part of an existing array?...
easy○ Not StartedJavaScriptSolve
70
async AttributeWhich script attribute allows HTML parsing to continue while the script download...
easy○ Not StartedHTMLSolve
71
HSLA MeaningIn HSLA, what does the "A" stand for?...
easy○ Not StartedCSSSolve
72
Box Model TransparencyWhich part of the box model is always transparent?...
easy○ Not StartedCSSSolve
73
Design Principle ContrastWhich design principle adds visual interest and draws attention?...
easy○ Not StartedDesignSolve
75
Absolute PositioningWhich positioning value allows precise placement using top, left, right, or bott...
easy○ Not StartedCSSSolve
76
Background Color and ImageIf both a background color and background image are set, what happens?...
easy○ Not StartedCSSSolve
77
Inline CSSWhen CSS is written directly inside an HTML tag using the style attribute, it is...
easy○ Not StartedCSSSolve
78
legend TagWhich tag provides a caption for a fieldset?...
easy○ Not StartedHTML FormsSolve
79
nodeType ValueWhat value does nodeType return for an element node?...
easy○ Not StartedDOMSolve
80
nodeName for blockquoteFor a <blockquote> element, what does nodeName return?...
easy○ Not StartedDOMSolve
81
contextmenu EventWhich event fires when a user right-clicks an element?...
easy○ Not StartedDOMSolve
82
event.keyWhat does event.key return?...
easy○ Not StartedJavaScriptSolve
83
Anonymous FunctionsWhat is an anonymous function?...
easy○ Not StartedJavaScriptSolve
84
Event Handler LimitationA single event handler property like onclick can have:...
easy○ Not StartedDOMSolve
85
Element nodeValueWhat does nodeValue return for element nodes?...
easy○ Not StartedDOMSolve
17
Filter and Square EvensWhat output results from this code?...
medium○ Not StartedLoopsSolve
34
Create and Append ElementWhat is the correct sequence to create a new paragraph element with the text "Th...
medium○ Not StartedHTML DOMSolve
35
Create Image ElementYou need to create a new <img> element, set its src to "photo.jpg", set its alt ...
medium○ Not StartedHTML DOMSolve
36
Create List ItemsTo create a <ul> containing <li> items "Apple", "Banana" and "Orange" and append...
medium○ Not StartedHTML DOMSolve
69
Document Object TimingWhich objects are available only after the browser has parsed the HTML document?...
medium○ Not StartedDOMSolve
74
Link Pseudo-Class OrderWhat is the correct order for styling link pseudo-classes?...
medium○ Not StartedCSSSolve