MCQs > IT & Programming > Unity3D MCQs > Basic Unity3D MCQs

Basic Unity3D MCQ

1. What does the Grid component do?

Answer

Correct Answer: Helps you move objects to fixed grid increments

Note: This Question is unanswered, help us to find answer for this one

2. What does the PlayableDirector component allow you to do?

Answer

Correct Answer: Control the playback of a timeline instance in the scene

Note: This Question is unanswered, help us to find answer for this one

3. Multiple animations may be mixed together on a single character, selectively on different limbs. Which Mecanim feature supports this?

Answer

Correct Answer: Avatar masks

Note: This Question is unanswered, help us to find answer for this one

4. You can programmatically control audio effects, like Pitch and Reverb, from C# scripts using which feature of an Audio Mixer asset?

Answer

Correct Answer: Exposed parameters

Note: This Question is unanswered, help us to find answer for this one

5. What does the Destroy function do?

Answer

Correct Answer: It deletes the specified game object after the current update loop

Note: This Question is unanswered, help us to find answer for this one

6. Humanoid character assets, like NPCs and the player character, feature on Avatar object. Which statement best describes its purpose?

Answer

Correct Answer: Avatar facilitate animation retargeting across different humanoid characters

Note: This Question is unanswered, help us to find answer for this one

7. De-lighting is associated with which technology?

Answer

Correct Answer: Photogrammetry

Note: This Question is unanswered, help us to find answer for this one

8. The variable Transform.forward is a Vector3 measured in what?

Answer

Correct Answer: Local space

Note: This Question is unanswered, help us to find answer for this one

9. How does the Range C# attribute control the interaction behavior of numerical variables in the Object Inspector?

Answer

Correct Answer: It restricts the variable value using a slider widget

Note: This Question is unanswered, help us to find answer for this one

10. Which feature generates binary tree data to optimize camera rendering in a scene?

Answer

Correct Answer: Occlusion Culling

Note: This Question is unanswered, help us to find answer for this one

11. You can combine quaternions together through which arithmetic operation?

Answer

Correct Answer: Multiplication

Note: This Question is unanswered, help us to find answer for this one

12. The primary directional light in a scene is linked by default to a procedural scene Skybox. What does the rotation of this light control?

Answer

Correct Answer: The night and day status of the skybox

Note: This Question is unanswered, help us to find answer for this one

13. Rigidbody components may be added to objects with colliders to make them affected by physical forces. What does the IsKinematic property achieve?

Answer

Correct Answer: It suspends physical forces on the object, allowing manual transofrmations

Note: This Question is unanswered, help us to find answer for this one

14. How can you change the unique bundle identifier for a mobile build?

Answer

Correct Answer: Select Edit > Project Settings > Player from the menu, and then expand the Other Settings tab

Note: This Question is unanswered, help us to find answer for this one

15. You are making a game where you need to execute your own functions in response to critical animation events for a rigged character. Specifically, there are two events you must handle: when an animation state is entered and when it is exited in the Animator graph. Which class may be used to invoke your code when those two events happen?

Answer

Correct Answer: StateMachineBehaviour

Note: This Question is unanswered, help us to find answer for this one

16. Sprite atlas assets, large textures containing many smaller sprites, can be optimized by batching together what?

Answer

Correct Answer: Sprites using the same color palette

Note: This Question is unanswered, help us to find answer for this one

17. What is the Console windows useful for?

Answer

Correct Answer: Identifying errors in your script files and project

Note: This Question is unanswered, help us to find answer for this one

18. Every time you double-click a C# script file from the Project window, Unity prints the message below (or something very similar) to the console. What is a reasonable step in trying to solve this? Cannot start process because a file name has not been provided

Answer

Correct Answer: Set Visual Studio as the code default editor via the External Tools tab of the Preferences menu

Note: This Question is unanswered, help us to find answer for this one

19. What is a technique for optimizing Unity UI elements?

Answer

Correct Answer: Group static UI elements on one canvas, and dynamic elements on a separate canvas

Note: This Question is unanswered, help us to find answer for this one

20. Which C# attribute can show a private variable in the object inspector?

Answer

Correct Answer: SerializedField

Note: This Question is unanswered, help us to find answer for this one

21. A SkinnedMeshRenderer component is attached automatically by Unity to some mesh objects when they are added to a scene. Which reason best explains why?

Answer

Correct Answer: The mesh file contains bones and rig data

Note: This Question is unanswered, help us to find answer for this one

22. Some material types may include normal map textures. What does a normal map achieve?

Answer

Correct Answer: It creates the appearance of surface detail on mesh - like bumps, dents, and scratches

Note: This Question is unanswered, help us to find answer for this one

23. A bullet game object is fired from a weapon and travels quickly through the scene using a RigidBody component. It sometimes passes through solid objects even though they have colliders. What is a reasonable strategy for correcting this?

Answer

Correct Answer: Change the Collision Detection property of the Rigidbody to Continuous Dynamic or Continous Speculative

Note: This Question is unanswered, help us to find answer for this one

24. The Project windows search box can filter the display of assets with text commands. Which command displays only texture assets?

Answer

Correct Answer: T:texture

Note: This Question is unanswered, help us to find answer for this one

25. What can you use to organize different game objects into groups inside the Hierarchy panel?

Answer

Correct Answer: Empty objects

Note: This Question is unanswered, help us to find answer for this one

26. The occlusion map of a material is often a grayscale image with pixels ranging between black and white. What does this map contribute to an object’s material?

Answer

Correct Answer: White pixels receive full indirect illumination and black pixels receive none

Note: This Question is unanswered, help us to find answer for this one

27. UI elements, such as images and buttons, may be fixed at specific screen positions to build responsive interfaces. Which Unity features help achieve this?

Answer

Correct Answer: Anchors and pivots

Note: This Question is unanswered, help us to find answer for this one

28. For the OnTriggerEnter function to invoke successfully on a collision between two objects, at least one must have which two components?

Answer

Correct Answer: A Rigidbody and a Collider

Note: This Question is unanswered, help us to find answer for this one

29. Which MonoBehaviour method runs by default in Editor mode?

Answer

Correct Answer: OnTriggerEnter

Note: This Question is unanswered, help us to find answer for this one

30. What is the OnAnimatorMove event on MonoBehaviour objects commonly used for?

Answer

Correct Answer: Modifying the root motion of an animated object

Note: This Question is unanswered, help us to find answer for this one

31. The Clear Flags property of the Camera components affects which behaviour?

Answer

Correct Answer: How the camera renders its background on each frame

Note: This Question is unanswered, help us to find answer for this one

32. The Collaborate feature of Unity Teams empowers whom to do what?

Answer

Correct Answer: Team members to save, share, and sync unity projects

Note: This Question is unanswered, help us to find answer for this one

33. When building assets like meshes for Unity. It is good practice to use which measurement unit?

Answer

Correct Answer: Meters

Note: This Question is unanswered, help us to find answer for this one

34. Cinemachine offers tools for building gameplay behaviours. Which component makes spline based paths for moving objects?

Answer

Correct Answer: Cinemachine Smooth Path

Note: This Question is unanswered, help us to find answer for this one

35. What does the Microphone class save captured audio data as?

Answer

Correct Answer: An audio clip asset

Note: This Question is unanswered, help us to find answer for this one

36. What is Cinemachine Virtual Camera used for?

Answer

Correct Answer: To create predefined camera presets to apply on standard cameras

Note: This Question is unanswered, help us to find answer for this one

37. Orthographic cameras remove which visual effect?

Answer

Correct Answer: Foreshortening

Note: This Question is unanswered, help us to find answer for this one

38. Unity scenes may be saved entirely in the YAML format. Why might you do this?

Answer

Correct Answer: To externally parse a scene and its objects

Note: This Question is unanswered, help us to find answer for this one

39. What does this code sample achieve? Float Answer = Random.value * 10f;

Answer

Correct Answer: It selects a random number between 0 and 10

Note: This Question is unanswered, help us to find answer for this one

40. What can you use to visually distinguish between Play mode and Design mode in the editor?

Answer

Correct Answer: Play mode tint

Note: This Question is unanswered, help us to find answer for this one

41. In Unity 3D, the following code will allow you to hide an object.

Answer

Correct Answer: object.SetActive(true);

Note: This Question is unanswered, help us to find answer for this one

42.

What is the output of the following code assuming that myGameObject does not exist in the scene?

using UnityEngine; 

using System.Collections; public class Example : MonoBehaviour { void Start () { GameObject go = GameObject.Find("myGameObject"); Debug.Log(go.name); } }


Answer

Correct Answer:

NullReferenceException


Note: This Question is unanswered, help us to find answer for this one

43. How can you call methods in C# scripts from unityscript code?

Answer

Correct Answer: Place both scripts into the Plugins or Standard Assets folders of the project

Note: This Question is unanswered, help us to find answer for this one

44.

What is the correct program for Loop animation of A, B and C (A-B-C-A)?


Answer

Correct Answer:

public List stateName; 

    void Start () {StartCoroutine (StartAnim());}

    IEnumerator StartAnim(){

        for(int i=0;i

            GetComponent ().Play (stateName[i]);

            yield return new WaitForSeconds(GetComponent ().GetCurrentAnimatorStateInfo (0).length);

            if(i==stateName.Count-1){i =-1;}

        }

    }


Note: This Question is unanswered, help us to find answer for this one

45. 9 sliced images are supported by which colliders? (choose all that apply)

Answer

Correct Answer: BoxCollider2D
PolygonCollider2D

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

46. Which option describes the Destroy (Game Object) method?

Answer

Correct Answer: Destroys a game object at the end of the current frame

Note: This Question is unanswered, help us to find answer for this one

47.

The following code snippets attempt to change an objects color to red during a certain interval of the objects animation. The interval is defined as percentages of the animation duration, enablePercentTime and disablePercentTime (for example, turn the object to red starting 20% of the way through the animation and turn the color back to the original color when the animation is 60% through). Which of the code snippets do this correctly?

Answer

Correct Answer: public List stateName; public float enablePercentTime, disablePercentTime; void Start () {StartCoroutine (StartAnim());} IEnumerator StartAnim(){ GetComponent ().material.color = Color.green; GetComponent ().Play (stateName[0]); float waitTimeFactor = enablePercentTime / 100f; yield return new WaitForSeconds(GetComponent ().GetCurrentAnimatorStateInfo (0).length * waitTimeFactor); GetComponent ().material.color = Color.red; float waitTimeForEnable = disablePercentTime / 100f; waitTimeFactor = waitTimeForEnable - waitTimeFactor; yield return new WaitForSeconds(GetComponent ().GetCurrentAnimatorStateInfo (0).length * waitTimeFactor); GetComponent ().material.color = Color.green; }

Note: This Question is unanswered, help us to find answer for this one

48.

The distance at which the real time shadows blend into the lightmapped shadows in Unity is determined by:

Answer

Correct Answer: Shadow Distance property

Note: This Question is unanswered, help us to find answer for this one

49.

Which of the following are properties of Lights?

Answer

Correct Answer: Shadow
Intensity
Range

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

50.

What is the meaning of GUI?

Answer

Correct Answer: Graphical User Interface

Note: This Question is unanswered, help us to find answer for this one

51.

A prefab in the assets folder of the project can hold references to:

Answer

Correct Answer: Components in itself or in its own children

Note: This Question is unanswered, help us to find answer for this one

52.

What are the Precomputed Realtime GI as follows?

Answer

Correct Answer: Light Transform

Note: This Question is unanswered, help us to find answer for this one

53.

Animation clips imported from external sources could include followings?

Answer

Correct Answer: Animation sets from 3rd-party libraries (eg, from Unity’s asset store)

Note: This Question is unanswered, help us to find answer for this one

54.

What are the following Light's properties in Unity?

Answer

Correct Answer: Range

Note: This Question is unanswered, help us to find answer for this one

55.

An object's mesh can be accessed using:

Answer

Correct Answer: MeshFilter component

Note: This Question is unanswered, help us to find answer for this one

56.

A shader that runs for every fragment is called:

Answer

Correct Answer: Pixel Shader

Note: This Question is unanswered, help us to find answer for this one

57.

The process by which objects that are hidden behind other objects are not rendered is known as:

Answer

Correct Answer: Occulusion Culing

Note: This Question is unanswered, help us to find answer for this one

58.

Shadow cascading is used to reduce:

Answer

Correct Answer: Occlusion Culling

Note: This Question is unanswered, help us to find answer for this one

59.

An animation controller parameter that has two possible values:

Answer

Correct Answer: Both a and b

Note: This Question is unanswered, help us to find answer for this one

60.

What is the output of the following code:

Vector2 v1=new Vector2(3,8); Vector2 v2=new Vector2(5,4); Debug.Log(Vector2.Lerp(v1,v2,0.75f));

Answer

Correct Answer: (4,5)

Note: This Question is unanswered, help us to find answer for this one

61.

Which of the following will call MyUpdateMethod() every 1 second?

Answer

Correct Answer: void Start(){ InvokeRepeating("MyUpdateMethod",1,1); gameObject.SetActive(false); }

Note: This Question is unanswered, help us to find answer for this one

62.

Which shader would you use to apply transformation operations?

Answer

Correct Answer: Vertex shader

Note: This Question is unanswered, help us to find answer for this one

63.

To play an animation with the Animation component, the imported animation must be of the type:

Answer

Correct Answer: Legacy

Note: This Question is unanswered, help us to find answer for this one

64.

Which of the following tangent types can be used to ensure smoothness?

Answer

Correct Answer: Free Smooth
Linear

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

65.

A material contains the following:

Answer

Correct Answer: Texture and Shader

Note: This Question is unanswered, help us to find answer for this one

66.

How you can a method invoked in 5 seconds?

Answer

Correct Answer: Invoke( myMethod, 5);

Note: This Question is unanswered, help us to find answer for this one

67.

Which of the following code will displays a valid Button?

Answer

Correct Answer: void OnGUI () { GUI.Button(new Rect(20,40,80,20), “myButton”); }

Note: This Question is unanswered, help us to find answer for this one

68.

Which of these is the correct order in which the methods will execute?

Answer

Correct Answer: Awake,Start,Update,LateUpdate

Note: This Question is unanswered, help us to find answer for this one

69.

Which option is used to initialize consumable IAP in Unity?

Answer

Correct Answer: public class MyIAPManager : IStoreListener { private IStoreController controller; private IExtensionProvider extensions; public MyIAPManager () { var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance()); builder.AddProduct("100_gold_coins", ProductType.Consumable, new IDs { {"100_gold_coins_google", GooglePlay.Name}, {"100_gold_coins_mac", MacAppStore.Name} }); UnityPurchasing.Initialize (this, builder); }

Note: This Question is unanswered, help us to find answer for this one

70.

The Core Optimization of CPU Limitations are:

Answer

Correct Answer: Memory

Note: This Question is unanswered, help us to find answer for this one

71.

An animation can be played using

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

72.

Tree Editor lets you create and edit

Answer

Correct Answer: 3D Tree to be placed in scene

Note: This Question is unanswered, help us to find answer for this one

73.

Virtual Functions are functions

Answer

Correct Answer: Functions that can be implemented by base classes and overridden by derived classes

Note: This Question is unanswered, help us to find answer for this one

74.

What is the output of the following code:

GameObject obj=new GameObject("aGameObject"); GameObject.Destroy(obj); Debug.Log(obj.name);

Answer

Correct Answer: aGameObject

Note: This Question is unanswered, help us to find answer for this one

75.

Which of the following is Core Optimization of GPU Limitations?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

76.

A 2048x2048 pixel resolution image with format uncompressed RGBA 32 bits (without mipmaps) will take up how much memory when loaded?

Answer

Correct Answer: 16 MB

Note: This Question is unanswered, help us to find answer for this one

77.

What are the types of Raycasters?

Answer

Correct Answer: Physics Raycaster

Note: This Question is unanswered, help us to find answer for this one

78.

Which namespace must be included to use the DLLImport attribute?

Answer

Correct Answer: System.Runtime.InteropServices

Note: This Question is unanswered, help us to find answer for this one

79.

How do you record a transaction event by a user through Unity Analytics?

Answer

Correct Answer: Analytics.Transaction(string productId, decimal price, string currency, string receipt, string signature);

Note: This Question is unanswered, help us to find answer for this one

80.

Which of the following statement is TRUE about 2D and 3D Objects?

Answer

Correct Answer: 2D and 3D object is not in scene

Note: This Question is unanswered, help us to find answer for this one

81.

Which of the following is attached to every GameObject?

Answer

Correct Answer: Transform component

Note: This Question is unanswered, help us to find answer for this one

82.

A coroutine runs on a _____.

Answer

Correct Answer: separate thread

Note: This Question is unanswered, help us to find answer for this one

83.

The value of Time.deltaTime contains

Answer

Correct Answer: The duration of the last frame

Note: This Question is unanswered, help us to find answer for this one

84.

A ray contains the following

Answer

Correct Answer: Direction and origin

Note: This Question is unanswered, help us to find answer for this one

85.

In order to detect a collision between two objects, A and B, which of the following criteria need to be satisfied?

Answer

Correct Answer: A and B both colliders. Only A has a non kinematic rigidbody attached.

Note: This Question is unanswered, help us to find answer for this one

86.

What does the following code do?

float speed=10; void Update(){ transform.Translate(Vector3.forward*speed); }

Answer

Correct Answer: Moves the object this script is attached to by 10 units per frame in the world positive Z axis direction

Note: This Question is unanswered, help us to find answer for this one

87.

How do you play an audio clip at a specific frame of an animation in unity 3D?

Answer

Correct Answer: Use AnimationEvents to call a function at a specific frame in an animation where the audio can be played

Note: This Question is unanswered, help us to find answer for this one

88.

Which of these audio file formats is not supported by Unity?

Answer

Correct Answer: .m4a

Note: This Question is unanswered, help us to find answer for this one

89.

A Navmesh agent can be which of the following shapes:

Answer

Correct Answer: Cylinder

Note: This Question is unanswered, help us to find answer for this one

90.

How can you make a Navmesh agent move to a location?

Answer

Correct Answer: GetComponent().SetDestination(point);

Note: This Question is unanswered, help us to find answer for this one

91.

Count all possible paths in 3x3 matrix; from topleft corner to bottom right corner:

Answer

Correct Answer: 6

Note: This Question is unanswered, help us to find answer for this one

92.

Which of these is a greedy heuristic searching algorithm?

Answer

Correct Answer: Best first search

Note: This Question is unanswered, help us to find answer for this one

93.

How can you create an animation event at a specific keyframe at runtime?