GoConqr has a new look! Let us know what you think.

Quiz

Section 2.13: Playing sounds with AVAudioPlayer, Error Handling with if let and do catch

Abby Conrad 6 questions

Take the quiz

Questions in this quiz (6)

  1. 1When an application cannot perform the action that it wanted to execute, it tosses an error.
    1. ATrue
    2. BFalse
  2. 2When do you need to include @IBAction
    in front of any function?
    1. AWhen using something from the interface builder.
    2. BWhen creating a button.
    3. CWhen you want to print an error.
  3. 3If I created a function named testSound, how would I call it?
    1. Afunc testSound()
    2. B@IBAction func testSound()
    3. Cvar currentSound = testSound()
    4. Dvar playSound()
  4. 4You can create an audio file object by specifying that it is type AVAudioPlayer.
    1. ATrue
    2. BFalse
  5. 5What do you need to import in order to use audio files?
    1. AAVFoundation
    2. BIBuilder
    3. CSwiftAudio
    4. DIBOutlet
  6. 6When executing a do-catch, you need to use the following keyword in order to verify the capabilities of the object:
    1. Aif
    2. Btry
    3. Cfunc
    4. Dtest

Information

Description
Section 13 of Chapter 2 in Learn to Program using Swift for IOS Development
Language
English
Views
44
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?