Unity gMetrix Module 2

Quiz
•
Computers
•
12th Grade
•
Medium
Raymundo Martinez
Used 3+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following lines of code will print "Hello" to the Console window?
Print.Log("Hello");
Debug("Hello");
Debug.Log("Hello");
Print("Hello");
Answer explanation
The method Log inside the Debug class is used to send messages to the Console.
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following is defined as a container of data that can be of many different types?
Structures
Variables
Methods
Modifiers
Answer explanation
Variables are containers of data. The type determines the data that can be stored inside.
3.
MULTIPLE SELECT QUESTION
5 mins • 1 pt
Which of the following variables are properly initialized? (Choose three)
byte playerRank = 500;
string playerName = "Kirito";
int health = 10;
float gameTime = 0.0f;
Answer explanation
Because byte type variables can only hold values from 0 to 255, the byte option is the only option that is not properly initialized.
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following is the correct way to compare two int values to see whether they are equal?
if (mylnt1 != mylnt2) {}
if (mylnt1.Equals mylnt2) {}
if (mylnt1 == mylnt2) {}
if (mylnt1 = mylnt2) {}
Answer explanation
Using the "equal to" operator is the usual way to compare two integers, so the following is correct:
if (mylnt1 == mylnt2) {
}
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which combination of code snippets creates a valid method declaration?
1 string
2 void
3 AddToMyString(string originalString)
4 {
5 }
6 return originalString + ".";
2, 3, 4, 6, 5
2, 3, 4, 5, 6
1, 3, 4, 6, 5
1, 3, 4, 5, 6
Answer explanation
1, 3, 4, 6, 5 is the only combination that works because it has a string return type and the proper sequence.
Similar Resources on Wayground
10 questions
Quiz Tipe Data

Quiz
•
9th - 12th Grade
10 questions
Python Review - Functions

Quiz
•
9th - 12th Grade
10 questions
Understanding Procedures in Python

Quiz
•
9th Grade - University
10 questions
APCSA - Unit 3

Quiz
•
9th - 12th Grade
7 questions
AP CSP - Functions (code.org unit4)

Quiz
•
9th - 12th Grade
9 questions
Blues Non-Neg Quiz

Quiz
•
1st Grade - University
10 questions
Python Workshop Week 1 Review

Quiz
•
9th - 12th Grade
10 questions
Python Input/Output

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade