NEW
Font size
WorksheetsAGAD: UNIT 4_C# & UNITY
Total questions: 24
Worksheet time: 12mins
What keyword do you type create a float variable?
float
Int
Double
Bool
Which piece of code is the correct procedure for creating a float variable
public int speed = 2.2;
public float speed = 2.2;
public bool = true;
none of the above;
A variable can be used as "placeholders" to contain and manipulate data within C#
True
False
A Game Engine is best described as:
a software framework designed for the creation and development of video games.
A video game console is an electronic, digital or computer device that outputs a video signal or visual image to display a video game.
A game engine has four cylinders and runs on petrol.
A Game Engine is something developers use to play games.
What are advantages of methods
reusable code
easy to test
easier to make modifications to your code
all of the above
In order for your function not to have a return value you must type ________ before naming the function
int
void
bool
none of the above
A method is a group of statements that perform a particular task
True
False
You can call the same method multiple times
True
False
Term that describes the, critically important, way we assign upper, lower-case, and spacing designations to parts of our scripts.
Highlighting
Truncating
Camel-Casing
Abridged Script
In Unity, the secondary apps we use to write code, such as MonoDevelop and VisualStudio are called IDE's, which stands for:
Interpretive Dance Enthusiast
Internal Data Editor
Integrated Development Environment
Intrinsic Diagnostics Engine
In Unity, each level of our game can be thought of as a _. It is also the file type for which we "SaveAs" most frequently.
Project
Scene
Object
Script
In Unity a piece of code (or a Script) is also referred to as a:
Prefab
Albedo
Component
Layout
When we are coding in Unity, the secondary app that we use to create/type our code is:
VisualStudio
Blender
MonoDevelop
Scratch
Every independent line of code OR statement must end with this punctuation mark:
Colon
Quotation Mark
Semi-Colon
Hyphen
The terms "string" and "int" are what we would call variable _.
Values
Access Modifier
Types
Bools
In this statement:
----------------------------------------------------------------------------------------
void OnDisable() {
string myAccuracy = "is Horrible!";
int score = 43;
Debug.Log ( "The new Quizziz avg of" + score + " which is " + myAccuracy);
}
----------------------------------------------------------------------------------------
The variable Names are: _ and _
Void & OnDisable
String & Int
Debug & Log
MyAccuracy & Score
What does the "Debug.Log" command do?
Turn off a GameObject
Print to the Console
Create a Variable in Inspector
Fumigate the Lumber
What happens to a variable when we type the word "public" in front it?
Displays Variable Value in Game Window
Displays Variable in the Console Window
Creates a Editable Variable Field in Inspector Window
Ensures Variable does not Return a Value
