Quiz of Fundamental of Gameplay Programming
Quiz by Ulka Chandini Pendit
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
Which Unity window contains list of all the game objects currently in your scene?
Inspector Window
Inspector Window
Project Window
Scene Window
10s - Q2
Visual Studio is not a part of Unity. You could use a different code editor to edit your C# scripts if you want to.
False
True
5s - Q3
In what order do you put the words when you aredeclaring a new variable?
public float speed = 20.0f;
[data type] [access modifier][variable value] [variable name]
[data type] [access modifier][variable name] [variable value]
[variable name] [data type]
[access modifier] [data type][variable name] [variable value]
10s - Q4
Which of the following variables would be visible in the Inspector?
public float speed;
float turnSpeed = 45.0f;
private float horizontalInput;
private float forwardInput;
speed and turnSpeed
speed
horizontalInput & forwardInput
turnSpeed
10s - Q5
What is a possible value for the horizontalInput variable?
horizontalInput = Input.GetAxis("Horizontal");
Right
0.30
-20
Left
10s - Q6
What is true about the following two lines of code?
transform.Translate(Vector3.forward);
transform.Translate(1, 0, 0);
. They will both move an object in the same distance
They will both move an object the same direction
They will both move an object along the same axis
They will both rotate an object, but along different axes
10s - Q7
Which of the following lines of code is using standard Unity naming conventions?
/* a */ Public Float Speed = 40.0f;
/* b */ public float Speed = 40.0f;
/* c */ public float Speed = 40.0f;
/* d */ public float speed = 40.0f;
Line D
Line B
Line C
Line A
10s - Q8
Which comment would best describe the code below?
horizontalInput = Input.GetAxis("Horizontal");
transform.Rotate(Vector3.up, horizontalInput);
// Rotates in an upward direction based on left/right arrow keys
// Rotates around the Y axis based on left/right arrow keys
// Moves object up/down based on the the left/right arrow keys
// Rotates around the Z axis based on up/down arrow keys
10s - Q9
Which method is used for having camera follow the player?
LateUpdate()
update()
FixedUpdate()
start()
10s - Q10
Which window you use to change the setting of your GameObject?
Hierarchy
Inspector
Project
Scene
10s - Q11
Calculate the total movement of the car in a machine that runs in 20 fps and moving forward with the speed 10 using Time.deltaTime
30
20
10
5
10s - Q12
What is the correct script for detecting position of player
transform.position = player.transform.position;
transform.position = transform.position.x;
player.transform.position = transform.position;
player.transform.position;
10s - Q13
Which one is the correct script for changing the position of the current GameObject?
transform.position = (new Vector3(3, 8, -9));
transform.position = player.transform.position + Vector3(3, 8, -9);
transform.position(new Vector3(3, 8, -9));
transform.position = player.transform.position + new Vector3(3, 8, -9);
10s - Q14
What is not TRUE about transform.Rotate for?
Useful for turning objects such as spinning or turning a car
Useful for rotating camera around player or orbiting planets.
Set the current objects rotation and change it by the specified amount of rotation / local axes (Space.Self).
used to rotate at a specific angle an object
10s - Q15
Why Unity use transform in method such as, transform.Translate and transform.Rotate?
Because transform is the component which holds distance of object
Because transform is the component which holds initial position and rotation of object
Because transform is the component which holds initial position and scale of object
Because transform is the component which holds direction of object
10s