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

Descripción

Section 13 of Chapter 2 in Learn to Program using Swift for IOS Development
Abby Conrad
Test por Abby Conrad, actualizado hace más de 1 año
Abby Conrad
Creado por Abby Conrad hace más de 7 años
11
0

Resumen del Recurso

Pregunta 1

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

Pregunta 2

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

Pregunta 3

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

Pregunta 4

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

Pregunta 5

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

Pregunta 6

Pregunta
When executing a do-catch, you need to use the following keyword in order to verify the capabilities of the object:
Respuesta
  • if
  • try
  • func
  • test
Mostrar resumen completo Ocultar resumen completo

Similar

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