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. U, V, and W
B. X, Y, 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. Transform
C. Collider
D. Animator

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

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

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

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

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

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

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

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

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

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

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. Noise
D. Collision

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

17 What is Shader Graph primarily used for in Unity?

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

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

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

19 What does a Cinemachine Virtual Camera primarily define?

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

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

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

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 += transform.right * speed * Time.deltaTime;
B. transform.position += transform.forward * speed * Time.deltaTime;
C. transform.position += transform.up * speed * Time.fixedDeltaTime;
D. transform.position += Vector3.forward * speed;

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 moves two units along the parent's local forward axis.
C. It resets its local position to the world origin.
D. It remains two units along the world's Z-axis.

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. Use transform.LookAt(target) and freeze the turret's X position.
C. Rotate toward Vector3.up before applying the target's 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. FixedUpdate(), because it runs with the physics timestep
B. Update(), because it runs before every rendered frame
C. LateUpdate(), because it runs after object movement
D. OnGUI(), because it can process repeated input events

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 rigidbodies, both colliders must be triggers, and gravity must be disabled.
B. Both objects need colliders, one collider must be a trigger, and one object needs a Rigidbody.
C. Only the player needs a collider, while the collectible must be marked as static.
D. Only the collectible needs a collider, while the player must contain an AudioSource.

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. Place the search in the constructor of the MonoBehaviour class.
B. Move the search into OnRenderObject() to use the rendering cycle.
C. Run the search several times inside every FixedUpdate() call.
D. Run the search from a coroutine with a short WaitForSeconds delay.

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 Main module's Simulation Space to World.
B. Set the Renderer module's Render Mode to Mesh.
C. Set the Main module's Simulation Space to Local.
D. Set the Shape module's Alignment to View.

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. Add an 80-particle burst and disable Looping.
B. Set Rate over Time to 80 and enable Looping.
C. Add 80 sub-emitters and enable Prewarm.
D. Set Start Lifetime to 80 and disable Emission.

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 material's metallic value is set to its maximum.
B. The mesh renderer uses the texture as its base color.
C. The texture is imported with Texture Type set to Normal Map.
D. The texture is imported as a Sprite with mipmaps disabled.

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. Disable lightmap generation and use only ambient lighting.
C. Mark the environment static and bake the lighting into lightmaps.
D. Attach a real-time directional light to the main camera.

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. Increase the light's range.
B. Rotate the Directional Light.
C. Scale the Directional Light.
D. Change the light's world position.

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. Set Spatial Blend to 3D and configure the minimum and maximum distances.
B. Disable spatialization and reduce the clip's sample rate.
C. Enable Loop and place the AudioListener on the radio.
D. Set Spatial Blend to 2D and increase the global volume setting.

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. Remove every listener and enable one on each audio source.
B. Move both listeners to the same position under the player.
C. Keep one active listener, normally on the player's active camera.
D. Keep both listeners and assign each one a different mixer group.

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 LateUpdate(), after the player's regular movement update
B. In OnDisable(), when the camera stops rendering
C. In OnGUI(), after the interface has processed input
D. In Awake(), before the player object becomes active

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. Decrease the camera's far clipping plane.
B. Increase the camera's Field of View.
C. Increase the camera's near clipping plane.
D. Change the camera to a narrower viewport.

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 Boolean node
B. A Posterize node
C. A Scene Color node
D. A Normal Unpack 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 Emission output
B. The Ambient Occlusion 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 enabled virtual camera with the higher priority
B. The enabled virtual camera created most recently
C. The virtual camera with the largest Field of View
D. The virtual camera nearest to the player object

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 player to both Follow and Look At.
B. Assign the player to Follow and the boss to Look At.
C. Assign the boss to Follow and the player to Look At.
D. Assign the boss to both Follow and 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. Assign transform.parent = newParent and set the local scale to one
B. Call transform.SetParent(newParent, true) and retain the world-space transform
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 Update, buffer the request, and apply physics in FixedUpdate
B. Read input in OnGUI, then apply physics during the next render frame
C. Read input in FixedUpdate, then apply physics during LateUpdate
D. Read input in LateUpdate, then modify the Rigidbody transform directly

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. Configure Script Execution Order or use an explicit bootstrap dependency
C. Give component A a lower sibling index than component B
D. Place component A on a GameObject higher in the Hierarchy window

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 native object remains, while the managed wrapper is replaced with a null reference
B. The garbage collector converts destroyed objects into value types until the next frame
C. The C# compiler rewrites ReferenceEquals to inspect the object's enabled property
D. The managed wrapper remains, while Unity's overloaded equality detects the destroyed native object

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 Emitter Velocity to Transform
B. Set Scaling Mode to Hierarchy
C. Set Simulation Space to World
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 Local scaling mode
B. Use World simulation mode
C. Use Shape scaling mode
D. Use Hierarchy scaling 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. Modify Renderer.sharedMaterial before rendering each object
C. Duplicate the material asset once for every active renderer
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 one instancing-enabled material and expose color as per-instance data
B. Use Renderer.material once per object and edit its base color
C. Combine all meshes and assign one constant color to the combined mesh
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. Reflection Probes for diffuse lighting and Occlusion Culling for specular reflections
B. Light Probes for specular reflections and NavMesh data for diffuse lighting
C. Light Probes for diffuse lighting and Reflection Probes for specular reflections
D. Baked shadow maps for diffuse lighting and fog 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 Mixed lighting with Shadowmask
C. Use fully Baked lighting without probes
D. Use emissive materials with baked global illumination

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 Spatial Blend is not set fully to 2D
B. Verify that Spread is not set to zero degrees
C. Verify that Priority is not set to the highest value
D. Verify that Doppler Level is not set to zero

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. Disable spatialization and calculate attenuation in LateUpdate
B. Use Fixed velocity update mode for the physics-driven audio objects
C. Set Doppler Level above one and update the transform in OnGUI
D. Use Dynamic velocity update mode and move the Rigidbody in Update

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 returned camera-space depth to be greater than zero
C. Require the viewport coordinate to be less than one
D. Require the object's world-space coordinate to be positive

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. Unpack the normal, transform tangent to world, normalize, then compute
B. Unpack the normal, keep it in tangent space, then dot it with the world position
C. Sample the normal as sRGB color, transform world to tangent, then add it to the light
D. Sample the normal without unpacking, multiply it by depth, then compute

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 normalized vector from the fragment's world position to the camera position
D. Use the screen-space derivative of the fragment's depth value

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. Enable a second AudioListener and directly animate both Unity Cameras
D. Raise that virtual camera's priority and configure the Cinemachine Brain blend

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. Increase camera priority and change the lens to orthographic projection
C. Enable Rigidbody interpolation and use the Brain's Smart Update mode
D. Disable Rigidbody interpolation and force all gameplay into OnGUI