If it says, “Hello there!” in the console, what was the code used to create that message?
Create with Code Prototype 2 Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Neil Boyle
Used 30+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Debug(“Hello there!”);
Debug.Log("Hello there!");
Debug.Console(“Hello there!”);
Debug.Log(Hello there!);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to destroy an object when its health reaches 0, what code would be best in the blank below?
health > 0
health.0
health < 1
health < 0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The code below creates an error that says, “error CS1503: Argument 1: cannot convert from 'UnityEngine.GameObject[]' to 'UnityEngine.Object'”. What could you do to remove the errors?
A. On line 1, change “GameObject[]” to “GameObject”
B. On line 1, change “enemyPrefabs” to “enemyPrefabs[0]”
C. On line 3, change “Start()” to “Update()”
D. On line 5, change “enemyPrefabs” to “enemyPrefabs[0]”
Either A or D
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which comment best describes the following code?
// If player collides with another object, destroy player
// If enemy collides with another object, destroy the object
// If player collides with a trigger, destroy trigger
// If player collides with another object, destroy the object
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to move the character up continuously as the player presses the up arrow, what code would be best in the two blanks below:
GetKey(KeyCode.UpArrow)
GetKeyDown(UpArrow)
GetKeyUp(KeyCode.Up)
GetKeyHeld(Vector3.Up)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Read the documentation from the Unity Scripting API and the code below. Which of the following are possible values for the randomFloat and randomInt variables?
randomFloat = 100.0f; randomInt = 0;
randomFloat = 100.0f; randomInt = 100;
randomFloat = 50.5f; randomInt = 100;
randomFloat = 0.0f; randomInt = 50.5;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are trying to randomly spawn objects from an array. However, when your game is running, you see in the console that there was an “error at Assets/Scripts/SpawnManager.cs:5. IndexOutOfRangeException: Index was outside the bounds of the array.” Which line of code should you edit in order to resolve this problem and still retain the random object functionality?
Line 2
Line 3
Line 5
Line 4
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Computer Components Quiz

Quiz
•
9th - 11th Grade
10 questions
PYTHON DEBUGGING 1

Quiz
•
9th Grade
10 questions
MicroController Quiz

Quiz
•
10th Grade
13 questions
Unity Movement

Quiz
•
10th Grade
10 questions
Technical Terms - Internet (A-Z) - VPN

Quiz
•
12th Grade
10 questions
Unity Scripting Beginner (EN)

Quiz
•
12th Grade - Professi...
14 questions
Applications and Software II

Quiz
•
11th Grade
8 questions
Unity Unit 2 Quiz

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University