最新的Apple App Development with Swift Certified User - App-Development-with-Swift-Certified-User免費考試真題
問題1
Given the function definition, which two statements call the function correctly? (Choose 2.)

Based on the image provided, here is the text for each of the multiple-choice options:

Based on the image provided, here is the text for each of the multiple-choice options:
正確答案: A,B
說明:(僅 VCESoft 成員可見)
問題2
Complete the code by selecting the correct option from each drop-down list to create the following screen.

Note: You will receive partial credit for each correct answer.


Note: You will receive partial credit for each correct answer.

正確答案:


問題3
Select the area in Xcode that allows you to display the Preview Canvas.


正確答案:

Explanation:
This question belongs to Xcode Developer Tools , specifically the objective domain on identifying and using the features of the Xcode interface . In the screenshot, the correct area is the upper-right corner of the editor toolbar , where Xcode provides the control for editor display options. Apple's documentation explains that to show previews, you can use the editor controls and specifically notes that you can click the Adjust Editor Options button and choose Preview , which displays the preview canvas to the right of the editor.
So, in hotspot terms, the correct selection is the editor options control near the top-right of the code editor
, not the Run button, not the Inspector, and not the Project navigator. This aligns with Apple's preview workflow for SwiftUI in Xcode, where the canvas is shown from the editor display controls. Apple also describes the preview canvas as part of Xcode's interface for quickly visualizing UI changes while editing code.


問題4
Review the code:

Given a struct called Animal, what line of code should be added on line 5 in order to produce the output shown?


Given a struct called Animal, what line of code should be added on line 5 in order to produce the output shown?

正確答案: A
說明:(僅 VCESoft 成員可見)
問題5
Review the code snippet.

Which statement completes the code snippet so that:
* The lastReleaseDate remains the same when nextApplePhone.releaseDate is nil.
* The lastReleaseDate updates to the nextApplePhone.releaseDate when nextApplePhone.releaseDate is NOT nil.

Which statement completes the code snippet so that:
* The lastReleaseDate remains the same when nextApplePhone.releaseDate is nil.
* The lastReleaseDate updates to the nextApplePhone.releaseDate when nextApplePhone.releaseDate is NOT nil.
正確答案: A
說明:(僅 VCESoft 成員可見)

