Question 11

You have created a view which includes some formatted text:

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?
  • Question 12

    When you press ' Show Button ' on your app. a modal View appears.
    Complete the code by selecting the correct option from each drop-down list.
    Note: You will receive partial credit for each correct answer.

    Question 13

    Review the code snippet.

    The " faces " dictionary contains emojis and their descriptions.
    Which code will create an array named " emo)is " that will copy all the emojis from the " faces " dictionary?
  • Question 14

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