Abby Conrad
Quiz por , criado more than 1 year ago

Section 13 of Chapter 2 in Learn to Program using Swift for IOS Development

11
0
0
Abby Conrad
Criado por Abby Conrad mais de 7 anos atrás
Fechar

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

Questão 1 de 6

1

When an application cannot perform the action that it wanted to execute, it tosses an error.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 2 de 6

1

When do you need to include @IBAction
in front of any function?

Selecione uma das seguintes:

  • When using something from the interface builder.

  • When creating a button.

  • When you want to print an error.

Explicação

Questão 3 de 6

1

If I created a function named testSound, how would I call it?

Selecione uma das seguintes:

  • func testSound()

  • @IBAction func testSound()

  • var currentSound = testSound()

  • var playSound()

Explicação

Questão 4 de 6

1

You can create an audio file object by specifying that it is type AVAudioPlayer.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 5 de 6

1

What do you need to import in order to use audio files?

Selecione uma das seguintes:

  • AVFoundation

  • IBuilder

  • SwiftAudio

  • IBOutlet

Explicação

Questão 6 de 6

1

When executing a do-catch, you need to use the following keyword in order to verify the capabilities of the object:

Selecione uma das seguintes:

  • if

  • try

  • func

  • test

Explicação