Unity gMetrix Module 2

Unity gMetrix Module 2

12th Grade

5 Qs

quiz-placeholder

Similar activities

Microsoft Excel էլեկտրոնային աղյուսակ

Microsoft Excel էլեկտրոնային աղյուսակ

12th Grade

10 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

WAN Sesi 1

WAN Sesi 1

1st Grade - University

10 Qs

Quiz #2 ETEC 486 | Spr. 16

Quiz #2 ETEC 486 | Spr. 16

KG - University

10 Qs

HARD DISK DRIVE

HARD DISK DRIVE

11th - 12th Grade

10 Qs

MCX Workshop Quizvragen

MCX Workshop Quizvragen

10th Grade - University

10 Qs

Printers

Printers

9th - 12th Grade

10 Qs

Recap

Recap

12th Grade

10 Qs

Unity gMetrix Module 2

Unity gMetrix Module 2

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Raymundo Martinez

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?