Spring Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Apple > Apple App Development with Swift > App-Development-with-Swift-Certified-User

App-Development-with-Swift-Certified-User App Development with Swift Certified User Exam Question and Answers

Question # 4

Why does the initializer for the following struct need the keyword self?

A.

self is used to indicate to the reader that the parameter is being referenced.

B.

self is always needed when you are setting properties in an initializer.

C.

self is needed to distinguish between the property and the parameter with the same name.

D.

self is only needed when the property does not have a default value.

Full Access
Question # 5

Refer to this image to complete the code.

Note: You will receive partial credit for each correct answer

Full Access
Question # 6

Match the Swift Properly Wrapper names to the correct descriptions.

Full Access
Question # 7

Which two assignments of a value to direction are allowed? (Choose 2.)

A.

direction = CompassPoint(north)

B.

direction = CompassPoint.north

C.

direction = north

D.

direction = .north

E.

direction = direction.north

Full Access
Question # 8

Which code correctly creates a size 300 rectangular Image View with rounded corners that displays the entire image, regardless of size?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 9

Which property wrapper allows you to read data from the system or device settings?

A.

@State

B.

@Environment

C.

@Binding

D.

@StateObject

Full Access
Question # 10

Given the function, which two function calls are valid? (Choose 2.)

A.

let sum = rightSum(100, num2: SO, and: 20)

B.

let sum - rightSum(100, by: 30, and: 20)

C.

let Sun - rightSum(numl: 100, by: SO, and: SO)

D.

let sum r\ ght5um(100, by: 50)

E.

let sun = rightSum(numl: 100, num2: 50)

Full Access
Question # 11

Drag the views on the left to the correct locations m the code on the fight to match the shown canvas.

You may use each View once, more than once, or not at all.

Full Access
Question # 12

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.

Full Access