Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What is the main purpose of a controller in a 3D game?
Not quite. Try another option.
Answer: To receive player input
A controller receives input from the player and uses it to affect the game.
Question 2 of 60 · Controller · Easy
Which device is commonly used as a game controller?
Not quite. Try another option.
Answer: Gamepad
A gamepad is designed to send control inputs to a game.
Question 3 of 60 · Controller · Easy
Which input is often used to move a character in a 3D game?
Not quite. Try another option.
Answer: Analog stick
An analog stick commonly controls movement in different directions.
Question 4 of 60 · Controller · Easy
What does a button press usually produce in a game?
Not quite. Try another option.
Answer: An input event
When a player presses a button, the game detects an input event.
Question 5 of 60 · Controller · Easy
What is controller mapping?
Not quite. Try another option.
Answer: Assigning actions to inputs
Controller mapping connects buttons or controls to game actions.
Question 6 of 60 · Controller · Easy
Which controller input is commonly used to make a character jump?
Not quite. Try another option.
Answer: A jump button
A game can assign a button to the jump action.
Question 7 of 60 · Controller · Easy
What does a controller script usually help manage?
Not quite. Try another option.
Answer: Player movement
A controller script commonly reads input and manages how the player moves.
Question 8 of 60 · Procedural Terrain Generation · Easy
What is procedural terrain generation?
Not quite. Try another option.
Answer: Creating terrain using rules
Procedural generation uses algorithms or rules to create terrain automatically.
Question 9 of 60 · Procedural Terrain Generation · Easy
Which feature can procedural generation create in a game world?
Not quite. Try another option.
Answer: Mountains
Procedural terrain systems can generate features such as mountains and valleys.
Question 10 of 60 · Procedural Terrain Generation · Easy
What is a height map commonly used for?
Not quite. Try another option.
Answer: Defining terrain elevation
A height map stores information about how high or low different terrain points should be.
Question 11 of 60 · Procedural Terrain Generation · Easy
What can noise functions help create in procedural terrain?
Not quite. Try another option.
Answer: Natural-looking variation
Noise functions create varied patterns that can make terrain look more natural.
Question 12 of 60 · Procedural Terrain Generation · Easy
What is one advantage of procedural terrain generation?
Not quite. Try another option.
Answer: It can create large worlds
Procedural methods can generate large environments without manually designing every part.
Question 13 of 60 · Procedural Terrain Generation · Easy
What does a seed commonly control in procedural generation?
Not quite. Try another option.
Answer: The generated result
A seed helps determine the result produced by a procedural algorithm.
Question 14 of 60 · Procedural Terrain Generation · Easy
Why might a game use a procedural terrain system?
Not quite. Try another option.
Answer: To reduce manual design work
Procedural systems automate parts of terrain creation and reduce manual work.
Question 15 of 60 · AI-driven Game Elements · Easy
What does AI usually control in a game?
Not quite. Try another option.
Answer: Non-player characters
AI commonly controls the actions and decisions of non-player characters.
Question 16 of 60 · AI-driven Game Elements · Easy
What is an NPC?
Not quite. Try another option.
Answer: A non-player character
NPC stands for non-player character, which is controlled by the game rather than directly by a player.
Question 17 of 60 · AI-driven Game Elements · Easy
What can an AI-controlled enemy do?
Not quite. Try another option.
Answer: Chase the player
An AI enemy can be programmed to detect and chase the player.
Question 18 of 60 · AI-driven Game Elements · Easy
What is pathfinding used for in a 3D game?
Not quite. Try another option.
Answer: Finding a route
Pathfinding helps an AI character find a route from one location to another.
Question 19 of 60 · AI-driven Game Elements · Easy
What does a game AI decision system determine?
Not quite. Try another option.
Answer: Which action to take
A decision system selects an action based on the character's situation.
Question 20 of 60 · AI-driven Game Elements · Easy
Which behavior is an example of game AI?
Not quite. Try another option.
Answer: An enemy guarding an area
Guarding an area is a behavior that can be controlled by game AI.
Question 21 of 60 · Controller · Medium
A third-person character moves faster diagonally than along a single axis because horizontal and vertical inputs are added directly. What should the developer do before applying movement speed?
Not quite. Try another option.
Answer: Normalize the combined input vector
Normalizing prevents a diagonal vector such as from having a magnitude greater than , keeping movement speed consistent.
Question 22 of 60 · Controller · Medium
A character should move forward relative to the camera rather than relative to the world's -axis. Which movement direction should be used?
Not quite. Try another option.
Answer: The camera's forward vector projected onto the ground plane
Projecting the camera's forward vector onto the ground creates camera-relative movement without making the character rise or descend when the camera tilts.
Question 23 of 60 · Controller · Medium
A physics-based player controller applies movement forces in the frame update method. The player moves differently at different frame rates. What is the best correction?
Not quite. Try another option.
Answer: Apply physics forces in the fixed-timestep update
Physics operations should run at a fixed timestep so their behavior does not depend directly on the rendering frame rate.
Question 24 of 60 · Controller · Medium
A jumping character can repeatedly jump while airborne. Which condition should be checked before accepting a normal jump input?
Not quite. Try another option.
Answer: Whether the character is grounded
A grounded check ensures that a normal jump begins only when the character is touching a valid surface.
Question 25 of 60 · Controller · Medium
A controller reads joystick input with magnitude , causing the character to drift even when the joystick appears centered. Which solution is most appropriate?
Not quite. Try another option.
Answer: Ignore input values inside a small dead zone
A dead zone filters small unintended joystick values caused by hardware noise or imperfect centering.
Question 26 of 60 · Controller · Medium
A character moving at velocity units per second must come to rest smoothly in seconds using constant deceleration. What deceleration magnitude is required?
Not quite. Try another option.
Answer: units per second squared
Using gives units per second squared.
Question 27 of 60 · Controller · Medium
A third-person character instantly rotates toward each new movement direction, making turns look unnatural. Which technique provides smoother turning?
Not quite. Try another option.
Answer: Interpolate toward the target rotation over time
Rotation interpolation gradually approaches the target orientation and produces smoother, more natural turns.
Question 28 of 60 · Procedural Terrain Generation · Medium
A terrain generator produces a heightmap in which neighboring vertices often have completely unrelated heights, creating harsh spikes. Which change would most directly create smoother terrain?
Not quite. Try another option.
Answer: Sample coherent noise such as Perlin noise
Coherent noise gives nearby coordinates related values, producing gradual hills and valleys instead of random spikes.
Question 29 of 60 · Procedural Terrain Generation · Medium
Two terrain chunks use the same procedural algorithm but show a visible height discontinuity at their shared boundary. What is the most likely cause?
Not quite. Try another option.
Answer: Each chunk samples noise using unrelated local coordinates
Noise should be sampled in a continuous world-coordinate system. Restarting local coordinates for each chunk can produce mismatched edges.
Question 30 of 60 · Procedural Terrain Generation · Medium
A developer increases the frequency of a noise function while keeping its amplitude unchanged. How will the generated terrain usually change?
Not quite. Try another option.
Answer: Terrain features will become more closely spaced
Higher frequency makes the noise vary more rapidly across space, creating smaller and more closely spaced terrain features.
Question 31 of 60 · Procedural Terrain Generation · Medium
A height value is produced in the range . The terrain's maximum elevation is units. Which expression correctly converts into an elevation?
Not quite. Try another option.
Answer:
Multiplying a normalized height by maps the range to .
Question 32 of 60 · Procedural Terrain Generation · Medium
An open-world game needs distant terrain to render efficiently while preserving detailed terrain near the player. Which technique is most suitable?
Not quite. Try another option.
Answer: Use distance-based levels of detail
Levels of detail reduce mesh complexity with distance, preserving nearby detail while lowering rendering cost for distant terrain.
Question 33 of 60 · Procedural Terrain Generation · Medium
A developer combines several noise layers. Low-frequency layers use large amplitudes, while high-frequency layers use small amplitudes. What result is this intended to produce?
Not quite. Try another option.
Answer: Large landforms with smaller surface details
Low-frequency noise forms broad hills and valleys, while weaker high-frequency noise adds fine details.
Question 34 of 60 · Procedural Terrain Generation · Medium
A procedurally generated multiplayer map must be identical for every player. Which approach best supports this requirement?
Not quite. Try another option.
Answer: Use the same deterministic algorithm and seed
A deterministic generator produces the same terrain when all clients use the same algorithm, parameters, and seed.
Question 35 of 60 · AI-driven Game Elements · Medium
An enemy should patrol until it sees the player, chase while the player is visible, and search briefly after losing sight. Which AI structure is well suited to these clearly defined modes?
Not quite. Try another option.
Answer: A finite state machine
A finite state machine represents modes such as Patrol, Chase, and Search, with conditions controlling transitions between them.
Question 36 of 60 · AI-driven Game Elements · Medium
An NPC must navigate around static walls to reach a target on a baked navigation mesh. Which technique should be used to compute a suitable route?
Not quite. Try another option.
Answer: Pathfinding such as the A* algorithm
A* searches connected navigation areas and uses cost estimates to find an efficient route around obstacles.
Question 37 of 60 · AI-driven Game Elements · Medium
A guard detects the player through a solid wall because detection uses only distance. Which additional test should be added?
Not quite. Try another option.
Answer: A line-of-sight raycast
A raycast can determine whether an obstacle blocks the guard's view of the player.
Question 38 of 60 · AI-driven Game Elements · Medium
A utility-based AI assigns attack a score of , flee a score of , and heal a score of . If it always selects the highest-scoring valid action, what will it choose?
Not quite. Try another option.
Answer: Flee
Flee has the highest valid utility score, , so it is selected.
Question 39 of 60 · AI-driven Game Elements · Medium
Several enemies using steering behavior crowd into the same position while chasing the player. Which behavior should be added to reduce overlap?
Not quite. Try another option.
Answer: Separation
Separation steering pushes nearby agents away from one another, reducing crowding and overlap.
Question 40 of 60 · AI-driven Game Elements · Medium
An AI opponent reacts perfectly to the player's position even when the player is hidden, making the game feel unfair. Which design change best improves perceived fairness?
Not quite. Try another option.
Answer: Base decisions on sensed or remembered information
Using perception and limited memory prevents the AI from acting on information it could not reasonably know.
Question 41 of 60 · Controller · Hard
A game samples input once per rendered frame but simulates character physics at a fixed timestep. During a brief frame-rate drop, a jump button press occurs entirely between two physics updates. Which controller design most reliably supports both jump buffering and coyote time?
Not quite. Try another option.
Answer: Store the press timestamp during input sampling and consume it in physics when both timing windows are valid
Timestamped input survives mismatched update rates. The physics step can jump when the press is within the buffer window and the last grounded time is within the coyote-time window.
Question 42 of 60 · Controller · Hard
A character with desired horizontal velocity should move tangentially along a walkable slope with unit normal , without gaining an artificial component into the surface. Which velocity transformation is appropriate?
Not quite. Try another option.
Answer:
Subtracting the normal component projects onto the slope's tangent plane. The result satisfies .
Question 43 of 60 · Controller · Hard
In a client-predicted controller, the server sends an authoritative state for tick 120 and confirms that input sequence 87 was the last processed command. The client has already predicted sequences 88 through 96. What should reconciliation do?
Not quite. Try another option.
Answer: Restore the authoritative state and replay unacknowledged sequences 88 through 96 in their original order
The acknowledged state becomes the new simulation base. Every command not processed by the server must then be replayed to reconstruct the client's current prediction.
Question 44 of 60 · Controller · Hard
A third-person controller must produce stable camera-relative ground movement even when the camera can pitch almost vertically. Which mapping avoids degeneracy caused by projecting a near-vertical camera-forward vector onto the ground?
Not quite. Try another option.
Answer: Rotate the input by the camera's yaw-only orientation around the character's world-up axis
A yaw-only frame remains well-defined at extreme camera pitches. Directly projecting camera forward can approach a zero vector and cause unstable movement directions.
Question 45 of 60 · Controller · Hard
A kinematic capsule can move farther than its diameter in one simulation step. Which collision strategy best prevents tunneling while preserving sliding around corners?
Not quite. Try another option.
Answer: Sweep the capsule, move to the contact margin, and iteratively project the remainder onto contact planes
A shape sweep detects collisions across the entire displacement. Iteratively projecting the remaining motion supports sliding and handles multiple planes at edges or corners.
Question 46 of 60 · Controller · Hard
An animation-driven character uses root motion, but its root delta would move it through a wall. Which integration order best preserves animation intent without bypassing collision constraints?
Not quite. Try another option.
Answer: Extract the root delta, sweep it through the controller, and apply only the collision-constrained displacement
Root motion should be treated as desired displacement rather than an unconditional transform change. Passing it through collision resolution prevents penetration while retaining its intended direction.
Question 47 of 60 · Controller · Hard
A character standing still on the edge of a rotating platform should remain attached without inheriting spurious velocity when the platform rotates. Which technique handles both translation and rotation correctly?
Not quite. Try another option.
Answer: Store a contact anchor in platform-local space and sweep toward its transformed world position each step
A local anchor captures both platform translation and rotation. Sweeping toward the anchor's updated world position carries the character while still respecting surrounding collisions.
Question 48 of 60 · Procedural Terrain Generation · Hard
Two terrain chunks independently generate their shared border, but tiny cracks appear despite using the same noise parameters. Which design most directly guarantees numerically identical border heights?
Not quite. Try another option.
Answer: Evaluate border samples from shared global integer coordinates using the same deterministic sampling function
Shared global lattice coordinates make both chunks request exactly the same border samples. Independent local accumulation can introduce coordinate or floating-point discrepancies.
Question 49 of 60 · Procedural Terrain Generation · Hard
A height field is sampled on a grid with spacing . It uses noise octaves with base frequency and lacunarity . Ignoring the noise kernel's residual high-frequency content, which condition keeps the highest octave below the grid's Nyquist limit?
Not quite. Try another option.
Answer:
The highest octave has frequency . A grid with spacing has Nyquist frequency .
Question 50 of 60 · Procedural Terrain Generation · Hard
Chunks are generated asynchronously, so their generation order varies between runs. Which randomization method preserves the same terrain for a fixed world seed regardless of scheduling?
Not quite. Try another option.
Answer: Derive random values from a stateless hash of the world seed and global sample coordinates
Coordinate-based hashing makes each value depend only on its spatial identity and seed. It is therefore independent of thread timing and generation order.
Question 51 of 60 · Procedural Terrain Generation · Hard
Terrain normals are computed with central differences, but lighting seams appear between chunks whose vertex heights match exactly. What is the most appropriate correction?
Not quite. Try another option.
Answer: Generate a one-sample ghost border from the global height field before calculating chunk normals
Central differences require samples on both sides of a vertex. A ghost border supplies the neighboring chunk's heights, producing consistent derivatives and normals.
Question 52 of 60 · Procedural Terrain Generation · Hard
Adjacent voxel-terrain chunks use different mesh resolutions. Their scalar-field samples are consistent, but cracks appear where a coarse mesh meets a fine mesh. Which solution is specifically intended for this LOD transition problem?
Not quite. Try another option.
Answer: Insert transition cells that triangulate between the coarse and fine boundary configurations
Transition-cell methods, such as Transvoxel-style triangulation, explicitly connect unlike LOD grids. Matching scalar samples alone does not align their boundary topology.
Question 53 of 60 · Procedural Terrain Generation · Hard
In a closed hydraulic-erosion simulation with no material entering or leaving the domain, which update rule preserves terrain-material mass during erosion and deposition?
Not quite. Try another option.
Answer: Erosion adds equal sediment to removed height, while deposition removes equal sediment before raising height
Erosion transfers material from terrain to suspended sediment, and deposition performs the inverse transfer. Thus remains constant, apart from boundary or external-source effects.
Question 54 of 60 · Procedural Terrain Generation · Hard
Two neighboring biomes use different height functions and surface materials. A smooth biome mask is available, but a visible ridge and shading seam remain at their boundary. Which pipeline best addresses both discontinuities?
Not quite. Try another option.
Answer: Blend continuous heights and material weights in world space, then derive normals from the blended height
Blending the actual height field removes geometric discontinuities. Computing normals afterward ensures shading reflects the blended surface rather than two incompatible source surfaces.
Question 55 of 60 · AI-driven Game Elements · Hard
An A* navigation graph uses world-space edge lengths multiplied by terrain costs, and every terrain multiplier is at least . Which heuristic is admissible and consistent?
Not quite. Try another option.
Answer: Euclidean distance to the goal multiplied by
No route can cost less than straight-line distance times the minimum possible cost multiplier. The metric triangle inequality also makes this heuristic consistent.
Question 56 of 60 · AI-driven Game Elements · Hard
A behavior-tree agent performs a long attack sequence. An urgent dodge condition becomes true midway through the attack, but the agent does not react until the attack finishes. Which structural change provides immediate, controlled interruption?
Not quite. Try another option.
Answer: Place dodge above attack in a reactive selector and abort lower-priority branches when it activates
A reactive selector reevaluates higher-priority conditions while a lower branch runs. Conditional aborts then stop the attack cleanly when dodge becomes valid.
Question 57 of 60 · AI-driven Game Elements · Hard
A utility-based agent alternates every frame between two actions whose scores differ only by sensor noise. Which modification most directly reduces this oscillation without permanently fixing action priority?
Not quite. Try another option.
Answer: Add switching hysteresis or a temporary commitment bonus to the currently selected action
Hysteresis requires a challenger to exceed the current action by a meaningful margin. A commitment bonus or switch cost similarly suppresses noise-driven thrashing.
Question 58 of 60 · AI-driven Game Elements · Hard
A destructible wall changes only a small region of a large tiled navigation mesh. Many agents currently hold paths, some of which cross that region. Which update strategy best balances correctness and runtime cost?
Not quite. Try another option.
Answer: Rebuild affected tiles, version them, and invalidate paths whose traversed tiles have stale versions
Localized rebuilding limits computation, while tile versions identify exactly which cached paths may be invalid. Unaffected agents can safely retain their paths.
Question 59 of 60 · AI-driven Game Elements · Hard
In a networked competitive game, AI decisions use random choices and depend on authoritative world state. Which architecture most reliably prevents clients from observing divergent AI behavior?
Not quite. Try another option.
Answer: Run AI authoritatively on the server and replicate decisions, events, or corrected states to clients
Server authority provides one canonical decision stream. Seeded randomness alone is insufficient when update order, physics, or world-state observations can differ.
Question 60 of 60 · AI-driven Game Elements · Hard
A pursuer at the origin can move at constant speed . A target has relative position and constant velocity . Which equation yields candidate interception times under the assumption that the pursuer travels directly to the future target position?
Not quite. Try another option.
Answer:
Interception requires . Squaring and expanding gives the stated quadratic; the smallest nonnegative real root is the valid intercept time.
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of CSE434 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 of CSE434 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.