wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

AGAD: UNIT 4_C# & UNITY

Total questions: 24

Worksheet time: 12mins

Name
Class
Date
1.

What keyword do you type create a float variable?

a)

float

b)

Int

c)

Double

d)

Bool

2.
What would be a correct value of a float variable
a)
4.4
b)
3
c)
4%
d)
True
3.

Which piece of code is the correct procedure for creating a float variable

a)

public int speed = 2.2;

b)

public float speed = 2.2;

c)

public bool = true;

d)

none of the above;

4.
What keyword is used to create an integer variable
a)
int
b)
float
c)
bool
d)
double
5.
What type of variable is used to determine if a value is true or false
a)
boolean
b)
int
c)
flaot
d)
none
6.
A Boolean variable can only have a value of true or false 
a)
Yes
b)
No
7.

A variable can be used as "placeholders" to contain and manipulate data within C#

a)

True

b)

False

8.

A Game Engine is best described as:

a)

a software framework designed for the creation and development of video games.

b)

A video game console is an electronic, digital or computer device that outputs a video signal or visual image to display a video game.

c)

A game engine has four cylinders and runs on petrol.

d)

A Game Engine is something developers use to play games.

9.
What two programming languages can you use to with Unity?
a)
Java Script & HTML
b)
HTML & C#
c)
C# & C++
d)
C# & Javascript
10.
What does the OOP acronym stand for?
a)
Object Oriented Programming
b)
Observable Object Parameters
c)
Optional Online Protocol
d)
Operational Online Parameters
11.

What are advantages of methods

a)

reusable code

b)

easy to test

c)

easier to make modifications to your code

d)

all of the above

12.

In order for your function not to have a return value you must type ________ before naming the function

a)

int

b)

void

c)

bool

d)

none of the above

13.

A method is a group of statements that perform a particular task

a)

True

b)

False

14.

You can call the same method multiple times

a)

True

b)

False

15.

Term that describes the, critically important, way we assign upper, lower-case, and spacing designations to parts of our scripts.

a)

Highlighting

b)

Truncating

c)

Camel-Casing

d)

Abridged Script

16.

In Unity, the secondary apps we use to write code, such as MonoDevelop and VisualStudio are called IDE's, which stands for:

a)

Interpretive Dance Enthusiast

b)

Internal Data Editor

c)

Integrated Development Environment

d)

Intrinsic Diagnostics Engine

17.

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.

a)

Project

b)

Scene

c)

Object

d)

Script

18.

In Unity a piece of code (or a Script) is also referred to as a:

a)

Prefab

b)

Albedo

c)

Component

d)

Layout

19.

When we are coding in Unity, the secondary app that we use to create/type our code is:

a)

VisualStudio

b)

Blender

c)

MonoDevelop

d)

Scratch

20.

Every independent line of code OR statement must end with this punctuation mark:

a)

Colon

b)

Quotation Mark

c)

Semi-Colon

d)

Hyphen

21.

The terms "string" and "int" are what we would call variable _.

a)

Values

b)

Access Modifier

c)

Types

d)

Bools

22.

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 _

a)

Void & OnDisable

b)

String & Int

c)

Debug & Log

d)

MyAccuracy & Score

23.

What does the "Debug.Log" command do?

a)

Turn off a GameObject

b)

Print to the Console

c)

Create a Variable in Inspector

d)

Fumigate the Lumber

24.

What happens to a variable when we type the word "public" in front it?

a)

Displays Variable Value in Game Window

b)

Displays Variable in the Console Window

c)

Creates a Editable Variable Field in Inspector Window

d)

Ensures Variable does not Return a Value