DGD3 Unit 4 Review

Quiz
•
Other
•
9th - 12th Grade
•
Hard
Julian HS]
Used 48+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If it says, “Hello there!” in the console, what was the code used to create that message?
Debug(“Hello there!”);
Debug.Log("Hello there!");
Debug.Console(“Hello there!”);
Debug.Log(Hello there!);
2.
MULTIPLE CHOICE QUESTION
1 min • 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
1 min • 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 5, change “enemyPrefabs” 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]”
4.
MULTIPLE CHOICE QUESTION
1 min • 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
1 min • 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
1 min • 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
7.
MULTIPLE CHOICE QUESTION
1 min • 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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
minecraft preguntas

Quiz
•
1st - 12th Grade
10 questions
rocket league

Quiz
•
KG - Professional Dev...
11 questions
MINECRAFT

Quiz
•
KG - Professional Dev...
14 questions
Freshwater Fishery Management

Quiz
•
9th - 12th Grade
7 questions
Unit 2 4

Quiz
•
12th Grade
10 questions
CIW JavaScript Lesson 1 Quiz

Quiz
•
11th Grade
15 questions
Abstraction in Computing Quiz

Quiz
•
10th Grade
15 questions
Force and Motion Review

Quiz
•
KG - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Other
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade