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

Beschreibung

Section 13 of Chapter 2 in Learn to Program using Swift for IOS Development
Abby Conrad
Quiz von Abby Conrad, aktualisiert more than 1 year ago
Abby Conrad
Erstellt von Abby Conrad vor mehr als 7 Jahre
11
0

Zusammenfassung der Ressource

Frage 1

Frage
When an application cannot perform the action that it wanted to execute, it tosses an error.
Antworten
  • True
  • False

Frage 2

Frage
When do you need to include @IBAction in front of any function?
Antworten
  • When using something from the interface builder.
  • When creating a button.
  • When you want to print an error.

Frage 3

Frage
If I created a function named testSound, how would I call it?
Antworten
  • func testSound()
  • @IBAction func testSound()
  • var currentSound = testSound()
  • var playSound()

Frage 4

Frage
You can create an audio file object by specifying that it is type AVAudioPlayer.
Antworten
  • True
  • False

Frage 5

Frage
What do you need to import in order to use audio files?
Antworten
  • AVFoundation
  • IBuilder
  • SwiftAudio
  • IBOutlet

Frage 6

Frage
When executing a do-catch, you need to use the following keyword in order to verify the capabilities of the object:
Antworten
  • if
  • try
  • func
  • test
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr