Spring Sale Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

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

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

Question # 1

|Complete the code by typing in the boxes.

Options:

Question 2

Review the code snippet.

Question # 2

What will print after the final line of code is executed?

Answer the question by typing in the box.

Options:

Question 3

You have created a view which includes some formatted text:

Question # 3

You decide to extract this formatted text into a subview so that you can reuse the formatting for other texts.

You highlight the Text and choose Extract subview.

You refactor ExtractedView to BigGreenTextView.

You add the line let text: String to the extracted view above the body.

You replace " That ' s all folks " with a reference to text

How should you call this extracted View from the original View?

Options:

A.

BigGreenTextView( " That ' s all folks " )

B.

BigGreenTextView(text: " That ' s all folks " )

C.

BigGreenTextView(text: text)

D.

BigGreenTextView(text)

Question 4

Review the code.

Question # 4

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 5

In SwiftUI, how can you extract a subview from a main view to make the code more modular?

Options:

A.

Declare the subview as a variable inside the main view and call it directly.

B.

Add the subview’s code directly into the main view’s body.

C.

Create a new SwiftUI view struct and call it in the main view.

D.

Use @State to manage subview content and use a binding to create a two-way connection.

Question 6

Question # 6

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

Options:

A.

direction = CompassPoint(north)

B.

direction = CompassPoint.north

C.

direction = north

D.

direction = .north

E.

direction = direction.north

Question 7

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.

Question # 7

Question # 7

Options:

Question 8

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.

Question # 8

Options:

Question 9

Which two statements about building an app are true? (Choose 2.)

Options:

A.

You can preview a View in the Canvas without running your app.

B.

Your phone must always be physically attached to your Mac to run your apps from Xcode on it.

C.

You can run your app in the simulator with Generic iOS Device chosen.

D.

You can run an app on your phone and get debug information in Xcode.

E.

You need a paid Apple Developer account in order to run your app on your phone.

Question 10

Complete the code by selecting the correct option from each drop-down list to create the following screen.

Question # 10

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

Question # 10

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)

Question # 11

B)

Question # 11

C)

Question # 11

D)

Question # 11

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 12

Review the code snippet.

Question # 12

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

Options: