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

Descrição

Section 13 of Chapter 2 in Learn to Program using Swift for IOS Development
Abby Conrad
Quiz por Abby Conrad, atualizado more than 1 year ago
Abby Conrad
Criado por Abby Conrad mais de 7 anos atrás
11
0

Resumo de Recurso

Questão 1

Questão
When an application cannot perform the action that it wanted to execute, it tosses an error.
Responda
  • True
  • False

Questão 2

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

Questão 3

Questão
If I created a function named testSound, how would I call it?
Responda
  • func testSound()
  • @IBAction func testSound()
  • var currentSound = testSound()
  • var playSound()

Questão 4

Questão
You can create an audio file object by specifying that it is type AVAudioPlayer.
Responda
  • True
  • False

Questão 5

Questão
What do you need to import in order to use audio files?
Responda
  • AVFoundation
  • IBuilder
  • SwiftAudio
  • IBOutlet

Questão 6

Questão
When executing a do-catch, you need to use the following keyword in order to verify the capabilities of the object:
Responda
  • if
  • try
  • func
  • test

Semelhante

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