1. Which Unity method is commonly employed for managing player movement within game
logic scripts?
A. OnTriggerEnter
B. OnCollisionEnter
C. OnMouseOver
D. By updating the player's position in the Update or FixedUpdate method: D
2. Which Unity function is commonly utilized to interpolate between two val- ues over time,
facilitating smooth movement in integrated physics simula- tions?
A. OnCollisionExit
B. Lerp
C. OnTriggerEnter
D. OnTriggerExit: B
3. Which Unity component is utilized for rendering graphics on a game object?
A. Mesh Renderer
B. Box Collider
C. Rigidbody
D. Audio Source: A
4. In Unity, what does the term "integration" refer to in the context of scripting and physics?
A. Combining audio and visual elements
B. Combining code with physics simulation
C. Merging different game scenes
D. Interlinking UI elements with gameplay: B
5. What does the Unity Transform component enable you to modify?
A. Audio properties
1/8
, PRU212 – DHV Questions and Answers 2024
B. Particle effects
C. Position, rotation, and scale of a game object
D. Lighting settings: C
6. What Unity method is commonly utilized for handling collisions between two colliders?
A. OnTriggerEnter
B. OnCollisionEnter
C. OnMouseOver
D. OnTriggerStay: A
7. What Unity function is commonly used for handling continuous movement based on
keyboard input?
A. OnMouseOver
B. Input.GetKeyUp
2/8
, PRU212 – DHV Questions and Answers 2024
C. Input.GetKey
D. OnMouseEnter: C
8. In C#, what is the purpose of conditional statements like if and else?
A. Declaring variables
B. Running code on each frame
C. Making decisions and executing different code paths based on conditions
D. Handling collision events: C
9. What is the purpose of implementing UI animations in Unity?
A. To enhance the visual appeal of UI elements without impacting functionality.
B. To provide feedback to users and guide them through different states or interactions.
C. To optimize UI performance and reduce rendering overhead.
D. To increase the complexity of UI designs without improving usability.: B
10. In Unity, when does the Update Event Function get called?
A. During object destruction
B. When the game is paused
C. Before each frame update
D. During audio playback: C
11. What Unity method is commonly used for handling game over conditions in Unity?
A. OnTriggerEnter
B. OnCollisionEnter
C. OnMouseOver
D. By checking a game over condition in the Update method: D
12. What does the error message "NullReferenceException: Object reference not set to an
instance of an object" indicate in Unity?
3/8