Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unity quiz

Total questions: 21

Worksheet time: 13mins

Name
Class
Date
1.

This game engine use C# as a programming language combine with visual scripting, and making better environment and terrain become more realistic using post processing and real time lightinng

a)

Unreal Engine

b)

Game maker studio2

c)

Unity

d)

Pygame Engine

2.

The green square around the pillars light illustrate

a)

Mesh renderer

b)

Box collider

c)

Mesh collider

d)

Box renderer

3.

Which of the following type of games is most common using unity game engine

a)

3d side scrolling

b)

3d first person / 3d third person

c)

2d top down view

d)

4d dimensional view

4.

Which of the following picture is shown below, using unity engine(specificallly)

a)

Terrain

b)

Map and island

c)

Mesh terrain

d)

Terrain collider

5.

This is a short form of UNIVERSAL RENERING PIPELINE, or known as a prebuilt Scriptable Render Pipeline, made by Unity. which provides artist-friendly workflows that let you quickly and easily create optimized graphics across a range of platforms.

a)

Unity HDRP

b)

Unity real time lightning

c)

Unity URP

d)

Post processing

6.

Since this object is tagged as a optimizer which is falling to the ground when tagged "isGrounded" and make sound. Which of the following tools help this object fall

a)

Optimizing

b)

Terrain features

c)

"isGrounded" tag

d)

Rigidbody

7.

Which of the following does the following picture shown>?

a)

GUI

b)

UI

c)

Radiobuttons

d)

Dropdownlist

8.

This is an example of point of contact between humans and computers. Any technology you interact with as a user is part of the user interface. For example, screens, sounds, overall style, and responsiveness are all elements

a)

UI

b)

GUI

c)

GUIDE

d)

Scripting

9.

How would you say printing command which shows

"Hello my friend" is the console tab in unity

a)

Debug.Log("Hello my friend");

b)

Console.WriteLine("Hello my friend)

c)

cin<<"Hello my friend">>

d)

io.write("Hello my friend")

10.

This tab on the unity screen is called a

a)

Inspector

b)

Console

c)

Scene view

d)

Hierarchy

11.

Which of the following type of lightning is used on this unity lightning platform ("The celing light")

a)

Baked point light

b)

Spot light

c)

Volumetric lightning

d)

Directional lightning, and filter using post processing

12.

using UnityEngine;

using UnityEngine.AudioSource;

using UnityEngine.UI;

using UnityEngine.GetComponent;

using UnityEngine.AudioClip;

public class Audio : MonoBehaviour

{

    public AudioClip audioClip;

    public keyCode triggerkey = KeyCode.E;

    private AudioSource audioSource;

    private void Start()

    {

        audioSource = GetComponent<AudioSource>();

        audioSource.clip = audioClip;

    }

   

    private void OnTriggerEnter(Collider other)

    {

        BoxCollider boxCollider = other.GetComponent<BocCollider>();

        if (boxCollider != null && boxCollider.isTrigger && Input.GetKeyDown(triggerkey))

        {

            audioSource.Play();

        }

    }

}

Which of the following unity C# script shown below?

a)

Object interaction

b)

Audio playing script

c)

When object is dropping and is tagg ground, the audio will play

d)

Car physics, when crashing, the collider remove

13.

Open the Timeline window by going to Window -> Timeline.

Create a new timeline by clicking on the Create button in the Timeline window.

In the Timeline window, you will see the timeline tracks at the bottom. You can add tracks by right-clicking and selecting the track type you want to add. For example, you can add an Animation track to animate a GameObject or a Audio track to play audio.

After adding the tracks, you can add clips to the tracks by dragging and dropping assets from the Project window onto the timeline.

Once you have added clips, you can adjust the timing and duration of the clips by dragging the edges of the clips.

You can preview the timeline by pressing the Play button in the Timeline window.

To activate the timeline in your scene, you can create a Timeline GameObject by going to GameObject -> Timeline. Assign the created timeline to the Timeline property of the Timeline GameObject.

You can also control the timeline playback through scripting by accessing the timeline's PlayableDirector component.

a)

How to make an animation in unity using visual scripting

b)

How to make a basic timeline using sequencing

c)

How to make a collide physics using timeline

d)

How to make a arrow shooting object using animation

14.

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.AI;

public class AI : MonoBehaviour

{

    public float detectionRadius = 10f;

    public float followSpeed = 1.8f;

    private NavMeshAgent agent;

    private Transform playerTransform;

    void Start()

    {

        agent = GetComponent<NavMeshAgent>();

    }

    void Update()

    {

        Collider[] hitColliders = Physics.OverlapSphere(transform.position, detectionRadius);

        foreach (Collider hitCollider in hitColliders)

        {

            if (hitCollider.gameObject.CompareTag("Player"))

            {

                playerTransform = hitCollider.gameObject.transform;

                break;

            }

        }

        if (playerTransform != null)

        {

            agent.SetDestination(playerTransform.position);

            agent.speed = followSpeed;

        }

  void SetRandomDestination()

    {

        Vector3 randomDirection = Random.insideUnitSphere * walkRadius;

        randomDirection += transform.position;

        NavMeshHit navHit;

        NavMesh.SamplePosition(randomDirection, out navHit, walkRadius, -1);

        targetDestination = navHit.position;

        agent.SetDestination(targetDestination);

        agent.speed = walkSpeed;

    }

}

Which of the following C# scripting illustrate

a)

Navmesh AI obselette following player when the player is tagged player, when player is outside the radius, AI will not follow a player

b)

Navmesh AI walking in a random direction with the speed of 10f

c)

Navmesh AI walking in a random direction until it hit the collider. After hitting, the AI will begin following player

d)

Player is taged player and AI will not follow player until the player is hitting a box collider and this will trigger AI object to follow the player

15.

using UnityEngine;

public class KeyPuzzle : MonoBehaviour

{

    public GameObject keyObject;

    public GameObject doorObject;

    public AudioClip unlockSound;

    public KeyCode pickupKey = KeyCode.E;

    public KeyCode useKey = KeyCode.E;

    private bool hasKey = false;

    void Update()

    {

        if (!hasKey && Input.GetKeyDown(pickupKey))

        {

            Debug.Log("Player picked up key.");

            Destroy(keyObject);

            hasKey = true;

        }

        if (hasKey && Input.GetKeyDown(useKey))

        {

            Debug.Log("Player used key on door.");

            doorObject.SetActive(false);

          ________________15________________

        }

    }

}

(a)  

16.

During the universe university second field trip, fatman knock out bus driver and he began to drive. Everyone was planned to go to the mountains, but fatman drove to the wrong way. He drove into the dark forest where there is no one there and stop at a mansion there is one old women there. Fatman stop quickly! and tell the students to go inside. and that old women look up to everyone with the needle and fabric clothes on her hand. Suggest what she will do next

a)

Make fatman becime Freecerser

b)

Making everyone become a small doll

c)

Serving tea and sweets for everyone

d)

Talk to everyone and guide them around their village

e)

Making fabric(high) quality clothes for everyone

17.

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class ObjAppear : MonoBehaviour

{

private void OnTriggerEnter(Collider other)

{

if (other.CompareTag("Player"))

{

Destroy(gameObject);

}

}

}

a)

Destroying game object when player step on the collider

b)

making object reappear when player is stepping on the mesh collider

c)

Timeline player when player is in the trigger box collider

d)

Audio enable when player is in the collider other area

18.

graphical way to manipulate objects and behaviors in Unity without writing code from scratch. The logic is built by connecting visual nodes together, empowering artists, designers, and programmers to create gameplay and interactive systems in a simple way.

a)

Blueprint scripting in unity

b)

Node js scripting

c)

Visual scripting

d)

material arrangement in unity

19.

We use (a)   to make trees falls down when cutting trees animation. This make your project more realistic

20.

What is the correct way to make tkinter root frame (original frame) using python?

a)

a

b)

b

c)

c

d)

d

21.

EXTRA QUESTION:

using UnityEngine;

using UnityEngine.AI;

using UnityEngine.UI;

using UnityEngine.GetComponent;

public class ObjectInteraction : MonoBehaviour

{

    public KeyCode pickupKey = KeyCode.F;

    public KeyCode moveKey = KeyCode.E;

    public float moveDistance = 2f;

    private bool isHoldingObject = false;

    private GameObject heldObject;

    void Update()

    {

        if (Input.GetKeyDown(pickupKey) && !isHoldingObject)

        {

            Collider[] hitColliders = Physics.OverlapSphere(transform.position, 2f);

            foreach (var hitCollider in hitColliders)

            {

                if (hitCollider.CompareTag("Moveable"))

                {

                    Debug.Log("Player picked up object.");

                    isHoldingObject = true;

                    heldObject = hitCollider.gameObject;

                    break;

                }

            }

        }

        if (Input.GetKeyDown(moveKey) && isHoldingObject)

        {

            Debug.Log("Player moved object.");

            heldObject.transform.position += transform.forward * moveDistance;

            isHoldingObject = false;

            heldObject = null;

        }

    }

    void OnDrawGizmosSelected()

    {

        Gizmos.color = Color.yellow;

        Gizmos.DrawWireSphere(transform.position, 2f);

    }

}

ANOTHER ONE

using UnityEngine;

public class ObjectBreak : MonoBehaviour

{

    public int hitsToBreak = 3;

    private int currentHits = 0;

    void OnMouseDown()

    {

        currentHits++;

        if (currentHits >= hitsToBreak)

        {

            BreakObject();

        }

    }

    void BreakObject()

    {

        Debug.Log("Object broken!");

        Destroy(gameObject);

    }

}

(a)