Game Engine Scripting Quiz

Game Engine Scripting Quiz

12th Grade

8 Qs

quiz-placeholder

Similar activities

Programming Basics

Programming Basics

11th - 12th Grade

10 Qs

Loops

Loops

9th - 12th Grade

10 Qs

Recursion in Java

Recursion in Java

9th - 12th Grade

10 Qs

Programming - Arrays

Programming - Arrays

2nd - 12th Grade

10 Qs

Python Data Types

Python Data Types

9th - 12th Grade

10 Qs

CS Python Fundamentals Quiz 8 PRACTICE

CS Python Fundamentals Quiz 8 PRACTICE

9th - 12th Grade

10 Qs

C++ Recursion

C++ Recursion

8th - 12th Grade

12 Qs

Java - arrays and String methods

Java - arrays and String methods

9th - 12th Grade

12 Qs

Game Engine Scripting Quiz

Game Engine Scripting Quiz

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Paul Oliver

Used 1+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What might arrays be used for in a game development scenario?

To declare and initialize variables

To remove elements from the list

To create a grid-based game

To import C# library

Discover more resources for Computers