You want to position a specific element so that it always directly follows the previous element, which is positioned by default, regardless of the viewport characteristics. Which positioning method should you use?
A. sticky
B. absolute
C. fixed
D. static
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
Which two statements correctly describe media queries? Choose 2.
A. Media queries can process JavaScript code dynamically.
B. Media queries improve the performance of your web page.
C. Media queries allow you to apply different CSS rules on various screens/breakpoints.
D. Media queries support responsive web design.
正解:C,D
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
Which three events are valid for the HTML canvas element? Choose 3.
A. play
B. scroll
C. datareceived
D. blur
E. mouseup
正解:B,D,E
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
A form has four buttons with a class of item. You need to apply an event listener to all buttons to invoke the moveElement function when a button is pressed. Your code must ensure bubble capture.
Complete the markup by selecting the correct option from each drop-down list.
Note: You will receive partial credit for each correct selection.

正解:

Explanation:
First drop-down: " click " ,
Second drop-down: moveElement,
Third drop-down: false,
The correct event listener syntax is addEventListener(type, listener, useCapture). The first argument must be " click " because the function must run when a button is pressed. The second argument must be moveElement, not moveElement(), because the event listener expects a function reference. Using parentheses would call the function immediately while the page is loading instead of waiting for the user to press a button. The third argument controls the event phase. false means the listener runs during the bubbling phase, which is the normal behavior for button click handling. true would register the listener for the capturing phase instead.
Since the code uses document.querySelectorAll( " .item " ), it selects all elements with the class item. The for loop then attaches the same click listener to each selected button individually. This ensures that all four buttons invoke moveElement when clicked.
質問 5:
You write the following markup to create a page. Line numbers are included for reference only.
01 < !DOCTYPE html >
02 < html >
03 < head >
04 < style >
05
10 < /style >
11 < /head >
12 < body >
13 < svg height= " 500 " width= " 500 " >
14 < defs >
15 < filter id= " f2 " x= " 0 " y= " 0 " width= " 200% " height= " 200% " >
16 < feOffset result= " offOut " in= " SourceGraphic " dx= " 20 " dy= " 20 " / >
17 < feGaussianBlur result= " blurOut " in= " offOut " stdDeviation= " 10 " / >
18 < feBlend in= " SourceGraphic " in2= " blurOut " mode= " normal " / >
19 < /filter >
20 < /defs >
21 < text x= " 10 " y= " 100 " style= " fill:red; " > Blur Me! < /text >
22 Sorry, your browser does not support inline SVG.
23 < /svg >
24 < /body >
25 < /html >
An SVG blur filter is defined in the markup on the left. You need to apply the SVG blur filter to the text element on the page.
Which CSS code should you insert at line 05?
A. text { font: 48px arial bold; filter: url(blur);}
B. text { filter: url( " #f2 " ); font-size: 50pt; color: red;}
C. text { font: 48px arial bold; filter: #blur;}
D. text { font: 48px arial bold; fill: blur;}
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
You need to call a function named process when a user clicks a button.
Complete the code by selecting the correct option from each drop-down list.
Note: You will receive partial credit for each correct selection.

正解:

Explanation:
< button onclick= " process() " > Process < /button >
< script >
function process()
{
}
< /script >
The button must use the onclick attribute because the required action occurs when the user clicks the button.
The plain word click is an event name used in JavaScript event listeners, but it is not the correct inline HTML event-handler attribute. The value of the onclick attribute must be process() because the function must actually be invoked when the click event occurs. Using process alone only references the function name and does not call it in this inline markup context. this.process would attempt to reference a property on the current element, and javascript:process is not the correct handler expression. Inside the < script > block, the correct function declaration is function process(). This defines the named function that the button's onclick attribute calls. The final structure therefore connects the button event directly to the script function: when the user clicks Process, the browser runs process().
質問 7:
You need to use CSS to create the layout shown:

Review the layout shown on the left.
Complete the markup by selecting the correct option from each drop-down list.
Note: You will receive partial credit for each correct selection.

正解:

Explanation:
First blank: display: grid;
Second blank: grid-template-columns: auto auto auto auto;
Third blank: grid-gap: 10px;
The layout shown is a CSS Grid layout with eight items arranged into four equal-width columns and two rows. The first required declaration is display: grid;, which turns the .grid-container element into a grid container. The second declaration is grid-template-columns: auto auto auto auto;, which defines four columns, matching the four visible boxes in each row: Mickey, Minnie, Luna, and George on the first row, then Bilbo, Bella, Madeline, and Groucho on the second row. The third declaration is grid-gap: 10px;, which creates spacing between the grid cells, matching the visible blue gaps around each item. The background-color:
#336699; creates the blue container background, while padding: 10px; adds space around the outer edge of the grid. The child rule .grid-container > div styles each grid item with a light background, centered text, padding, and larger font size.
656 お客様のコメント





Etou -
INF-306試験問題と解説があるので、実際どのような問題が出るのかも分かりやすい。きっちりとまとまっていてわかりやすかったです。