If it says, “Hello there!” in the console, what was the code used to create that message?

Bài Quiz không có tiêu đề

Quiz
•
Special Education
•
Professional Development
•
Hard
SIReal Hiệp
Used 1+ times
FREE Resource
9 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?
On line 1, change “GameObject[]” to “GameObject”
On line 1, change “enemyPrefabs” to “enemyPrefabs[0]”
On line 3, change “Start()” to “Update()”
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
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 4
Line 5
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you have made changes to a prefab in the scene and you want to apply those changes to all prefabs, what should you click?
The “Create” drop-down at the top of the Hierarchy
The “Open” button at the top of the Inspector
The “Overrides” drop-down at the top of the Inspector
The “Add Component” button at the bottom of the Inspector
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Read the documentation from the Unity Scripting API below. Which of the following is a correct use of the InvokeRepeating method?
InvokeRepeating(“Spawn, 0.5f, 1.0f”);
InvokeRepeating(“Spawn”, 0.5f, 1.0f);
InvokeRepeating(“Spawn", gameObject, 1.0f);
InvokeRepeating(0.5f, 1.0f, “Spawn”);
Similar Resources on Wayground
5 questions
application of force

Quiz
•
Professional Development
10 questions
SPED EC-12 Pre-Test

Quiz
•
Professional Development
10 questions
Level 5 : Implementasi Program Safety (Improvement)

Quiz
•
Professional Development
10 questions
Post Test - HSE TALK Ladder's Safety

Quiz
•
Professional Development
13 questions
6035 cold water revision

Quiz
•
Professional Development
12 questions
Backend REST API

Quiz
•
Professional Development
6 questions
Aid and Fade Game

Quiz
•
Professional Development
8 questions
Think Outside The Box. 8Questions to test your Critical Thinking

Quiz
•
University - Professi...
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade