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