Abby Conrad
Quiz von , erstellt am more than 1 year ago

Section 13 of Chapter 2 in Learn to Program using Swift for IOS Development

11
0
0
Abby Conrad
Erstellt von Abby Conrad vor mehr als 7 Jahre
Schließen

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

Frage 1 von 6

1

When an application cannot perform the action that it wanted to execute, it tosses an error.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 2 von 6

1

When do you need to include @IBAction
in front of any function?

Wähle eine der folgenden:

  • When using something from the interface builder.

  • When creating a button.

  • When you want to print an error.

Erklärung

Frage 3 von 6

1

If I created a function named testSound, how would I call it?

Wähle eine der folgenden:

  • func testSound()

  • @IBAction func testSound()

  • var currentSound = testSound()

  • var playSound()

Erklärung

Frage 4 von 6

1

You can create an audio file object by specifying that it is type AVAudioPlayer.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 5 von 6

1

What do you need to import in order to use audio files?

Wähle eine der folgenden:

  • AVFoundation

  • IBuilder

  • SwiftAudio

  • IBOutlet

Erklärung

Frage 6 von 6

1

When executing a do-catch, you need to use the following keyword in order to verify the capabilities of the object:

Wähle eine der folgenden:

  • if

  • try

  • func

  • test

Erklärung