Unit 1: Working in Unity 3D - Practice Quiz

CSE434 — Game Development In 3D 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which three axes are used to represent positions in Unity's 3D space?

Working in 3D Space Easy
A. X, Y, and W
B. U, V, and W
C. R, G, and B
D. X, Y, and Z

2 Which Unity component stores a GameObject's position, rotation, and scale?

Working in 3D Space Easy
A. Renderer
B. Animator
C. Transform
D. Collider

3 In Unity's default coordinate system, which axis usually represents the upward direction?

Working in 3D Space Easy
A. X-axis
B. W-axis
C. Y-axis
D. Z-axis

4 What is commonly attached to a GameObject to define custom behavior?

Adding Behaviors Easy
A. A texture file
B. An audio clip
C. A C# script
D. A material asset

5 Which component allows a GameObject to respond to Unity's physics system?

Adding Behaviors Easy
A. Light
B. AudioSource
C. Rigidbody
D. Camera

6 Which component defines the physical shape used to detect collisions?

Adding Behaviors Easy
A. Collider
B. Particle System
C. Material
D. Transform

7 Which Unity component is used to create effects such as smoke, sparks, and fire?

Working in Unity Particles Easy
A. Particle System
B. Mesh Collider
C. Canvas Renderer
D. Audio Listener

8 Which Particle System module controls how many particles are created over time?

Working in Unity Particles Easy
A. Color over Lifetime
B. Emission
C. Collision
D. Noise

9 What is the main purpose of a material in Unity?

Materials Easy
A. Define surface appearance
B. Control scene loading
C. Store object movement
D. Record player input

10 Which material property commonly defines the main color or texture of a surface?

Materials Easy
A. Base Map
B. Spatial Blend
C. Near Clip Plane
D. Emission Rate

11 Which light type is commonly used to simulate sunlight in a Unity scene?

Lighting Easy
A. Area Light
B. Point Light
C. Spot Light
D. Directional Light

12 Which light type emits light outward in all directions from one position?

Lighting Easy
A. Point Light
B. Area Light
C. Directional Light
D. Spot Light

13 Which Unity component plays an audio clip in a scene?

Audio Easy
A. AudioImporter
B. AudioListener
C. AudioSource
D. AudioMixer

14 Which component receives scene audio for the player to hear?

Audio Easy
A. Rigidbody
B. AudioSource
C. MeshRenderer
D. AudioListener

15 Which component property is changed to move a camera to a new location?

Camera Positioning Easy
A. Particle lifetime
B. Audio volume
C. Transform position
D. Material color

16 What does a perspective camera's Field of View control?

Camera Positioning Easy
A. The audio playback speed
B. The object's collision shape
C. The scene's gravity strength
D. The visible viewing angle

17 What is Shader Graph primarily used for in Unity?

Shader Graph-based Lighting Easy
A. Building navigation paths
B. Recording audio clips
C. Editing object collisions
D. Creating shaders visually

18 Which type of shader is designed to react to lights in a scene?

Shader Graph-based Lighting Easy
A. Input shader
B. Audio shader
C. Unlit shader
D. Lit shader

19 What does a Cinemachine Virtual Camera primarily define?

Cinemachine for Camera Control Easy
A. A particle's emission rate
B. A desired camera view
C. An audio clip's volume
D. A material's surface color

20 Which Cinemachine component is typically placed on the main Unity Camera?

Cinemachine for Camera Control Easy
A. Cinemachine Collider
B. Cinemachine Material
C. Cinemachine Brain
D. Cinemachine Particle

21 A spaceship should move forward relative to its own rotation at a constant speed on different frame rates. Which statement is most appropriate inside Update()?

Working in 3D Space Medium
A. transform.position += Vector3.forward * speed;
B. transform.position += transform.right * speed * Time.deltaTime;
C. transform.position += transform.forward * speed * Time.deltaTime;
D. transform.position += transform.up * speed * Time.fixedDeltaTime;

22 A child object has localPosition set to (0, 0, 2). Its parent is then rotated 90 degrees around the Y-axis. What happens to the child?

Working in 3D Space Medium
A. It rotates in place without changing world position.
B. It remains two units along the world's Z-axis.
C. It moves two units along the parent's local forward axis.
D. It resets its local position to the world origin.

23 A turret must rotate only around its Y-axis to face a target on uneven terrain. Which approach best prevents the turret from tilting upward or downward?

Working in 3D Space Medium
A. Copy the target's complete rotation into the turret every frame.
B. Rotate toward Vector3.up before applying the target's position.
C. Use transform.LookAt(target) and freeze the turret's X position.
D. Use the target position after replacing its Y value with the turret's Y value.

24 A script applies forces to a Rigidbody to move a crate. In which Unity event should the force normally be applied?

Adding Behaviors Medium
A. LateUpdate(), because it runs after object movement
B. FixedUpdate(), because it runs with the physics timestep
C. OnGUI(), because it can process repeated input events
D. Update(), because it runs before every rendered frame

25 A collectible should call OnTriggerEnter when the player passes through it without physically blocking the player. Which setup is required?

Adding Behaviors Medium
A. Both objects need colliders, one collider must be a trigger, and one object needs a Rigidbody.
B. Only the player needs a collider, while the collectible must be marked as static.
C. Only the collectible needs a collider, while the player must contain an AudioSource.
D. Both objects need rigidbodies, both colliders must be triggers, and gravity must be disabled.

26 An enemy behavior must repeatedly search for the player, but running the search every frame causes unnecessary CPU usage. Which solution is most appropriate?

Adding Behaviors Medium
A. Run the search several times inside every FixedUpdate() call.
B. Run the search from a coroutine with a short WaitForSeconds delay.
C. Place the search in the constructor of the MonoBehaviour class.
D. Move the search into OnRenderObject() to use the rendering cycle.

27 Smoke particles emitted by a moving train should remain behind in the world instead of following the train after emission. Which Particle System setting should be used?

Working in Unity Particles Medium
A. Set the Renderer module's Render Mode to Mesh.
B. Set the Main module's Simulation Space to Local.
C. Set the Shape module's Alignment to View.
D. Set the Main module's Simulation Space to World.

28 An explosion effect must emit 80 particles instantly and then stop producing particles. Which configuration best achieves this?

Working in Unity Particles Medium
A. Set Rate over Time to 80 and enable Looping.
B. Add an 80-particle burst and disable Looping.
C. Set Start Lifetime to 80 and disable Emission.
D. Add 80 sub-emitters and enable Prewarm.

29 Ten objects share one material. A script must change the color of only one object at runtime. Which property should the script modify?

Materials Medium
A. The selected renderer's material property
B. The mesh filter's sharedMesh property
C. The global shader's default color property
D. The selected renderer's sharedMaterial property

30 A brick normal-map texture appears to behave like a regular color texture and produces incorrect surface detail. What should be checked first?

Materials Medium
A. The mesh renderer uses the texture as its base color.
B. The texture is imported as a Sprite with mipmaps disabled.
C. The material's metallic value is set to its maximum.
D. The texture is imported with Texture Type set to Normal Map.

31 A mobile level contains only static architecture and static lights. The goal is to reduce runtime lighting cost while preserving shadows. Which approach is most suitable?

Lighting Medium
A. Use several real-time point lights with high shadow resolution.
B. Mark the environment static and bake the lighting into lightmaps.
C. Attach a real-time directional light to the main camera.
D. Disable lightmap generation and use only ambient lighting.

32 Moving a Directional Light farther away from a scene does not change the illumination. Which adjustment changes the direction from which its light arrives?

Lighting Medium
A. Change the light's world position.
B. Scale the Directional Light.
C. Rotate the Directional Light.
D. Increase the light's range.

33 A radio in a room should become quieter as the player moves away and should sound as if it comes from the radio's position. Which AudioSource configuration is appropriate?

Audio Medium
A. Enable Loop and place the AudioListener on the radio.
B. Set Spatial Blend to 3D and configure the minimum and maximum distances.
C. Set Spatial Blend to 2D and increase the global volume setting.
D. Disable spatialization and reduce the clip's sample rate.

34 A scene reports that two active AudioListener components exist, and sounds behave unpredictably. What is the usual correction for a single-player game?

Audio Medium
A. Keep both listeners and assign each one a different mixer group.
B. Keep one active listener, normally on the player's active camera.
C. Remove every listener and enable one on each audio source.
D. Move both listeners to the same position under the player.

35 A follow camera updates before the player completes its movement, causing visible jitter. Where should the camera's follow-position update usually occur?

Camera Positioning Medium
A. In OnDisable(), when the camera stops rendering
B. In Awake(), before the player object becomes active
C. In LateUpdate(), after the player's regular movement update
D. In OnGUI(), after the interface has processed input

36 A perspective camera should show more of the surrounding environment without moving farther from the player. Which change is most direct?

Camera Positioning Medium
A. Change the camera to a narrower viewport.
B. Increase the camera's near clipping plane.
C. Increase the camera's Field of View.
D. Decrease the camera's far clipping plane.

37 A sampled normal-map texture is connected directly to a Lit Shader Graph, but lighting appears incorrect. Which node should normally process the texture before it reaches the Normal input?

Shader Graph-based Lighting Medium
A. A Posterize node
B. A Normal Unpack node
C. A Boolean node
D. A Scene Color node

38 A sci-fi panel should glow and create a halo when bloom is enabled. Which Shader Graph output should receive an HDR color multiplied by a strength value?

Shader Graph-based Lighting Medium
A. The Ambient Occlusion output
B. The Emission output
C. The Smoothness output
D. The Alpha Clip output

39 Two enabled Cinemachine virtual cameras have different priorities. Assuming no special override is active, which camera controls the final view?

Cinemachine for Camera Control Medium
A. The virtual camera nearest to the player object
B. The virtual camera with the largest Field of View
C. The enabled virtual camera created most recently
D. The enabled virtual camera with the higher priority

40 A Cinemachine camera must follow a player while always aiming at a separate boss object. How should the virtual camera references be assigned?

Cinemachine for Camera Control Medium
A. Assign the boss to Follow and the player to Look At.
B. Assign the player to both Follow and Look At.
C. Assign the boss to both Follow and Look At.
D. Assign the player to Follow and the boss to Look At.

41 A runtime object must be reparented under a transform that has non-uniform scale, but its world position, rotation, and apparent scale must initially remain unchanged. Which operation best expresses this requirement?

Working in 3D Space Hard
A. Call transform.SetParent(newParent, true) and retain the world-space transform
B. Assign transform.parent = newParent and set the local scale to one
C. Call transform.SetParent(newParent, false) and retain the local-space transform
D. Assign transform.parent = newParent and reset the local rotation

42 A ray is defined by , and a plane contains point with unit normal . Assuming , which expression gives the ray parameter at the intersection?

Working in 3D Space Hard
A.
B.
C.
D.

43 A mesh is transformed by a matrix containing non-uniform scale. Which transformation correctly converts a local-space surface normal into world space?

Working in 3D Space Hard
A.
B.
C.
D.

44 A physics-controlled player sometimes misses very short jump-button presses when input is read only in FixedUpdate. Which architecture is most reliable?

Adding Behaviors Hard
A. Read input in FixedUpdate, then apply physics during LateUpdate
B. Read input in LateUpdate, then modify the Rigidbody transform directly
C. Read input in OnGUI, then apply physics during the next render frame
D. Read input in Update, buffer the request, and apply physics in FixedUpdate

45 Two enabled components on different GameObjects both initialize themselves in Start, but component B requires component A to finish first. What provides a deterministic ordering without relying on hierarchy order?

Adding Behaviors Hard
A. Enable component A one rendered frame before loading the scene
B. Give component A a lower sibling index than component B
C. Place component A on a GameObject higher in the Hierarchy window
D. Configure Script Execution Order or use an explicit bootstrap dependency

46 After a UnityEngine.Object has been destroyed, obj == null may be true while ReferenceEquals(obj, null) is false. What explains this behavior?

Adding Behaviors Hard
A. The garbage collector converts destroyed objects into value types until the next frame
B. The C# compiler rewrites ReferenceEquals to inspect the object's enabled property
C. The managed wrapper remains, while Unity's overloaded equality detects the destroyed native object
D. The native object remains, while the managed wrapper is replaced with a null reference

47 A spaceship emits smoke while moving rapidly. Previously emitted smoke must remain where it was created rather than following later spaceship motion. Which main-module setting is required?

Working in Unity Particles Hard
A. Set Scaling Mode to Hierarchy
B. Set Simulation Space to World
C. Set Emitter Velocity to Transform
D. Set Simulation Space to Local

48 A particle system is under a scaled parent. The emission shape should scale with the hierarchy, but existing particle sizes and movement should not be multiplied by that scale. Which scaling mode is most appropriate?

Working in Unity Particles Hard
A. Use Shape scaling mode
B. Use Local scaling mode
C. Use Hierarchy scaling mode
D. Use World simulation mode

49 Hundreds of renderers share one material, but each requires a different damage-flash value at runtime without creating hundreds of material instances. Which approach is appropriate?

Materials Hard
A. Access Renderer.material and modify the returned material
B. Duplicate the material asset once for every active renderer
C. Modify Renderer.sharedMaterial before rendering each object
D. Set the per-renderer value through a MaterialPropertyBlock

50 Many identical meshes need distinct colors while remaining eligible for GPU instancing. Which material design best supports this?

Materials Hard
A. Use Renderer.material once per object and edit its base color
B. Combine all meshes and assign one constant color to the combined mesh
C. Use one instancing-enabled material and expose color as per-instance data
D. Create one shared material per color and disable GPU instancing

51 A scene's static architecture uses baked lighting, but a moving metallic character must respond convincingly to the baked environment. Which probe combination addresses its diffuse and specular environment lighting?

Lighting Hard
A. Light Probes for specular reflections and NavMesh data for diffuse lighting
B. Baked shadow maps for diffuse lighting and fog probes for specular reflections
C. Reflection Probes for diffuse lighting and Occlusion Culling for specular reflections
D. Light Probes for diffuse lighting and Reflection Probes for specular reflections

52 Static scenery should retain baked direct occlusion from a Mixed light, while a moving character should receive and cast real-time shadows within the configured shadow distance. Which lighting mode best matches this requirement?

Lighting Hard
A. Use Realtime lighting without lightmaps
B. Use emissive materials with baked global illumination
C. Use Mixed lighting with Shadowmask
D. Use fully Baked lighting without probes

53 A looping engine sound has a custom 3D rolloff curve, yet its volume remains constant as the listener moves away. Which setting should be checked first?

Audio Hard
A. Verify that Priority is not set to the highest value
B. Verify that Doppler Level is not set to zero
C. Verify that Spread is not set to zero degrees
D. Verify that Spatial Blend is not set fully to 2D

54 An AudioSource is attached to a Rigidbody moved in FixedUpdate, but its Doppler pitch fluctuates because velocity is sampled on a mismatched update schedule. Which configuration best aligns velocity estimation?

Audio Hard
A. Use Dynamic velocity update mode and move the Rigidbody in Update
B. Set Doppler Level above one and update the transform in OnGUI
C. Use Fixed velocity update mode for the physics-driven audio objects
D. Disable spatialization and calculate attenuation in LateUpdate

55 A planar target centered on the camera axis has half-width and half-height . The perspective camera has vertical FOV and aspect ratio . Ignoring target depth, approximately how far away must the camera be to fit the entire target?

Camera Positioning Hard
A. units
B. units
C. units
D. units

56 Camera.WorldToViewportPoint returns coordinates with and between and , but an indicator appears for an object behind the camera. Which additional test is necessary?

Camera Positioning Hard
A. Require the returned camera-space depth to be less than the near plane
B. Require the object's world-space coordinate to be positive
C. Require the returned camera-space depth to be greater than zero
D. Require the viewport coordinate to be less than one

57 A tangent-space normal map is used in a custom Shader Graph diffuse calculation. Which sequence produces a correct Lambert term in world space?

Shader Graph-based Lighting Hard
A. Sample the normal without unpacking, multiply it by depth, then compute
B. Unpack the normal, transform tangent to world, normalize, then compute
C. Unpack the normal, keep it in tangent space, then dot it with the world position
D. Sample the normal as sRGB color, transform world to tangent, then add it to the light

58 A custom specular highlight looks correct with an orthographic camera but shifts incorrectly across the screen with a perspective camera. The graph uses the camera's forward vector as the view vector. What should replace it?

Shader Graph-based Lighting Hard
A. Use the object's local forward axis transformed into clip space
B. Use the normalized vector from the light position to the camera position
C. Use the screen-space derivative of the fragment's depth value
D. Use the normalized vector from the fragment's world position to the camera position

59 Two Cinemachine virtual cameras monitor different gameplay states. When one state begins, its camera should become active and blend smoothly through the Unity Camera. Which mechanism should control this?

Cinemachine for Camera Control Hard
A. Change the virtual camera's depth and disable the Cinemachine Brain
B. Move the virtual camera under the target and reset the Unity Camera projection
C. Raise that virtual camera's priority and configure the Cinemachine Brain blend
D. Enable a second AudioListener and directly animate both Unity Cameras

60 A Cinemachine camera follows a Rigidbody target that moves during fixed physics ticks. The rendered camera shows small periodic jitter. Which combined adjustment most directly addresses update-phase mismatch?

Cinemachine for Camera Control Hard
A. Use manual camera updates and move the target only during rendering
B. Disable Rigidbody interpolation and force all gameplay into OnGUI
C. Increase camera priority and change the lens to orthographic projection
D. Enable Rigidbody interpolation and use the Brain's Smart Update mode