最新的IT Specialist HTML5 Application Development - INF-306免費考試真題

問題1
Which two functions support 2D transformations in CSS3? Choose 2.

正確答案: C,D
說明:(僅 VCESoft 成員可見)
問題2
You need to draw a blue rectangle that meets these conditions:
* It is 200 by 200 pixels.
* It contains a white circle that is centered within the rectangle.
* The circle has a 50-pixel radius.
* The image should appear as follows: a blue square with a centered white circle.
Refer to the image on the left.
You need to ensure that the image scales without distortion when the page is resized. You must not be required to use JavaScript.
Complete the code by selecting the correct option from each drop-down list.
Note: You will receive partial credit for each correct selection.
正確答案:

Explanation:
First blank: < svg width= " 200 " height= " 200 " >
Second blank: < rect width= " 200 " height= " 200 "
Third blank: < circle cx= " 100 " cy= " 100 " r= " 50 "
Fourth blank: < /svg >
The correct solution uses SVG because SVG graphics are vector-based and can scale without pixel distortion when the page or viewport changes. A < canvas > element would require script-based drawing logic, which violates the requirement that JavaScript must not be required. An < img > or < picture > element can display an image, but those options do not define the rectangle and circle directly in markup. The outer container must therefore be < svg width= " 200 " height= " 200 " > . The blue square is created with < rect width= " 200 " height= " 200 " fill= " blue " / > , which produces a rectangle matching the required 200-by-200 dimensions.
The centered white circle must use SVG circle geometry: cx= " 100 " and cy= " 100 " place the center at the midpoint of the 200-by-200 square, and r= " 50 " creates the required 50-pixel radius. The final closing tag must be < /svg > .
問題3
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.
問題4
You create an interface for a touch-enabled application. You discover that some of the input buttons do not trigger when you tap them on the screen. You need to identify the cause of the problem. What are two possible causes? Choose 2.

正確答案: A,B
說明:(僅 VCESoft 成員可見)
問題5
You create an interface for a touch-enabled application. Some input buttons do not trigger when tapped. What are two possible causes?

正確答案: A,B
說明:(僅 VCESoft 成員可見)
問題6
The development team just released a new version of an app for your team to test. Which three tasks should you perform during testing? Choose 3.

正確答案: A,B,C
說明:(僅 VCESoft 成員可見)
問題7
Which two code segments declare a JavaScript method? Choose 2.

正確答案: B,D
說明:(僅 VCESoft 成員可見)