null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
7302391
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
No tags specified
swift
ios
programming
computer science
Quiz by
Abby Conrad
, updated more than 1 year ago
More
Less
Created by
Abby Conrad
over 7 years ago
11
0
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
Want to create your own
Quizzes
for
free
with GoConqr?
Learn more
.
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
Browse Library