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

Description

Section 13 of Chapter 2 in Learn to Program using Swift for IOS Development
Abby Conrad
Quiz by Abby Conrad, updated more than 1 year ago
Abby Conrad
Created by Abby Conrad over 7 years ago
11
0

Resource summary

Question 1

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

Question 2

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

Question 3

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

Question 4

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

Question 5

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

Question 6

Question
When executing a do-catch, you need to use the following keyword in order to verify the capabilities of the object:
Answer
  • if
  • try
  • func
  • test
Show full summary Hide full summary

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