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

Free Apple App-Development-with-Swift-Certified-User Practice Exam with Questions & Answers

Questions 1

Review the code snippet and identify what happens when the program is executed.

App-Development-with-Swift-Certified-User Question 1

Options:
A.

Only menu items including " Burger " . " Chicken " . " Pasta " . " Salad " are printed.

B.

Only menu items including " Pizza " . " Burger " , " Chicken " . " Pasta " . " Salad " are printed.

C.

Only menu items including " Burger " . " Chicken " . " Pasta " . " SaJad " . " Steak " are printed.

D.

The for loop prints all the menu items in the array.

Apple App-Development-with-Swift-Certified-User Premium Access
Questions 2

You have a set of Views within a ZStack that produce the screen below:

App-Development-with-Swift-Certified-User Question 2

Arrange the lines of code that will make up the ZSlack so that the View appears as shown.

App-Development-with-Swift-Certified-User Question 2

Options:
Questions 3

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

A)

App-Development-with-Swift-Certified-User Question 3

B)

App-Development-with-Swift-Certified-User Question 3

C)

App-Development-with-Swift-Certified-User Question 3

D)

App-Development-with-Swift-Certified-User Question 3

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions 4

Review the code snippet and then predict the output.

App-Development-with-Swift-Certified-User Question 4

Options:
A.

Total count: 11

B.

Total count: 10

C.

Total count: 20

D.

Total count: 9

Questions 5

Review the code snippet.

App-Development-with-Swift-Certified-User Question 5

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

Options:
Questions 6

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

App-Development-with-Swift-Certified-User Question 6

Options:
Questions 7

Review the code.

struct ContentView: View {

let fruits = [ " Apple " , " Banana " , " Kiwi " ]

var body: some View {

List(fruits, id: \.self) { fruit in

Text(fruit)

.font(.headline)

.padding()

}

}

}

Which of the following statements is true about the code?

Options:
A.

The id: \.self in the List view is not necessary and may be omitted.

B.

KeyPaths are used here to extract the font and padding properties dynamically.

C.

The id: \.self in the List view should be rewritten as id: /self

D.

The List view is using the fruits array to display the contents as individual rows.

Questions 8

Given the function definition, which two statements call the function correctly? (Choose 2.)

App-Development-with-Swift-Certified-User Question 8

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

Options:
A.

schedule(who: " Jane Doe " , from: " 9:30am " , to: " 10:30am " , place: " Office " )

B.

schedule(who name: " Jane Doe " , from starting: " 9:30am " , to ending: " 10:30am " )

C.

schedule(who: " Jane Doe " , from: " 9:30am " , to: " 10:30am " , " Office " )

D.

D. schedule(name: " Jane Doe " , starting: " 9:30am " , ending: " 10:30am " , place: " Office " )

E.

E. schedule(who: " Jane Doe " , from: " 9:30am " , to: " 10:30am " )

Questions 9

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

App-Development-with-Swift-Certified-User Question 9

Options:
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)

Questions 10

Review the code snippet.

App-Development-with-Swift-Certified-User Question 10

What is the output from each print statement?

Answer the question by typing in the box.

Options: