Search Header Logo

Game Engine Scripting Quiz

Authored by Paul Oliver

Computers

12th Grade

Used 1+ times

Game Engine Scripting Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring an integer array in C#?

int[] levelUps = new int[] {10, 23, 59};

int levelUps = new int[10, 23, 59];

int levelUps = new int {10, 23, 59};

int levelUps = {10, 23, 59};

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring a list of integers in C#?

List scores = new List{};

List scores = new List<int>;

List <int> scores = new List();

List<int> scores = new List<int>();

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the method used to add elements to a list in C#?

Insert()

Push()

Add()

Append()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the key feature of a list that allows the removal of elements from it?

Remove()

Delete()

Erase()

Eliminate()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax to access the second element in an array in C#?

levelUps[1]

levelUps[0]

levelUps[2]

levelUps[3]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax to access the first element in a list in C#?

scores[2]

scores[1]

scores[0]

scores[3]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one strength of using lists instead of arrays in C#?

To store sequential information efficiently

To easily add or remove elements at runtime

To access elements using index

To declare and initialize variables

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?