using ar foundation in unity coursera week 2 quiz answers

Create the UI buttons for a marker-based AR app quiz

1. Fill in the blank. Unity uses a special kind of GameObject called a ______________ to display 2D images for the user interface. Select the best answer.

  • TextMeshPro
  • canvas
  • Game view
  • Prefab

2. What is used to control an app’s behavior when the user presses buttons? Select the best answer.

  • Visual scripts
  • Node
  • AR Marker
  • GameObject

3. If you are testing your marker on your monitor and are using a rotated model, you will have to rotate about the z axis instead of the y axis. Select the best answer.

  • True
  • False

4. The Mesh component is useful to identify GameObjects for scripting purposes. Select the best answer.

  • True
  • False

5. What node tests to see if the modelObject variable has a value?

  • Null Check node
  • Find GameObject With Tag node
  • On Update node
  • Get Variable node

Add world space UI to your marker-based AR app quiz

6. What allows you to place user interface and sprite elements in the real-world AR space instead of attaching them to the screen? Select the best answer.

  • CanvasPopup
  • World space canvas
  • AR marker
  • Screen space canvas

7. Which view do you use to change the location, rotation and scale of the canvas relative to your model? Select the best answer.

  • GameObject view
  • Canvas view
  • Scene view
  • Marker view

8. You would use the Get Component in Children node to search for a Canvas component in any child GameObject. Select the best answer.

  • True
  • False

9. To make a button functional, what do you set the CanvasPopup GameObject to in the scene when the user presses the button? Select the best answer.

  • update
  • execute
  • active
  • script

10. Use a Negate node to switch the canvas from inactive to active and back again, so that the button works like a toggle. Select the best answer.

  • True
  • False

Add spatial audio to your marker-based AR app quiz

11. Unity uses a special kind of GameObject called a canvas to display 3D images for the user interface. Select the best answer.

  • True
  • False

12. What node tests to see if the modelObject variable has a value? Select the best answer.

  • On Update node
  • Find GameObject With Tag node
  • Null Check node
  • Get Variable node

13. What are useful to identify GameObjects for scripting purposes? Select the best answer.

  • Tags
  • GameObject
  • Nodes
  • Mesh

14. World space layouts allow you to place user interface and image elements in the real-world AR space instead of attaching them to the screen. Select the best answer.

  • True
  • False

15. What do you have to do to set the canvas to the canvasPopup variable? Select the best answer.

  • Connect the buttonPopup variable to the input of the On Button Click node.
  • Select your Script Manager GameObject and open the Setup graph.
  • Search for a Canvas component in any child GameObject of that tagged Mesh GameObject.
  • Connect the Get Component in Children output nodes to the Set Variable canvasPopup node.

16. Which node do you use to switch the canvas from inactive to active and back again, so that the button works like a toggle? Select the best answer.

  • Get Object Variable node
  • GameObject: Get Active Shelf node.
  • Negate node
  • Set Active node

17. You can use scripted audio to add to a 3D effect by making sounds louder when their source is closer and softer when it is farther away. Select the best answer.

  • True
  • False

18. What is true about audio sources? Select all that apply.

  • They have many different settings that you can control, including volume, priority and spatial sound settings.
  • They tell Unity how to play the clips you select.
  • You cannot tweak the Min Distance and Max Distance properties of the Audio Source
  • They are the specific audio files.

19. What are the two steps involved in making a button work in visual scripting? Select all that apply.

  • Make references for the button and audio.
  • Update the file location settings.
  • Create an audio script file to include the visual scripting function.
  • Make the audio play on a button press.

20. If the tagged GameObject is located, it will be assigned to a variable so that it’s ready for the RotateObject script. Select the best answer.

  • True
  • False

Leave a Reply