Pre-Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Apple App-Development-with-Swift-Certified-User App Development with Swift Certified User Exam Exam Practice Test

App Development with Swift Certified User Exam Questions and Answers

Question 1

Review the code.

var capitalCities = [ " USA " : " Washington D.C. " , " Spain " : " Madrid " , " Peru " : " Lima " ]

Which two statements add the capital city of " Italy " to the dictionary? (Choose 2.)

Options:

A.

capitalCities[ " Rome " ] = " Italy "

B.

capitalCities.append([ " Italy " : " Rome " ])

C.

capitalCities[ " Italy " ] = " Rome "

D.

capitalCities = capitalCities + [ " Italy " : " Rome " ]

E.

capitalCities.updateValue( " Rome " , forKey: " Italy " )

Question 2

Review the code snippet.

What is the value of answer after you run the code?

Options:

Question 3

Review the code snippet.

What is the output from each print statement?

Answer the question by typing in the box.

Options:

Question 4

Complete the code that will add the BlueView to the NavigationStack and present the RedView modally.

|Complete the code by typing in the boxes.

Options:

Question 5

You are creating or updating human resource records for your employees. For each identifier, select whether it is a Constant or a Variable

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

Options:

Question 6

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?

Options:

A.

Text(Animal.name)

B.

Text(Animals[animal].name)

C.

Text(animals[animal].name)

D.

Text(animal.name)

Question 7

Review the code.

Note: You might need to scroll to see the entire block of code.

A breakpoint is set on line 3. When the application is run. it will stop at line 3. You need to debug the code. Drag each debugging control from the left to the correct instruction on the right. You will receive partial credit for each correct answer

Options:

Question 8

Complete the code that conforms to the View protocol by selecting the correct option from each drop-down list.

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

Options:

Question 9

Review the code.

When entered into the TextField, which number will display a blue canvas on the SecondView?

Options:

A.

3

B.

2

C.

4

D.

1

Question 10

You need to create a Watchpoint in Xcode. In which order should you complete the actions? Move all the actions to the answer area and place them in the correct order.

Options:

Question 11

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)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 12

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.

Options:

A.

nextApplePhone.releaseDate : lastReleaseDate

B.

lastReleaseDate : nextApplePhone.releaseDate

C.

lastReleaseDate : nextApplcPhone.rcleaseDate!

D.

nextApplePhone.releaseDate! : lastReleaseDate