GDScript Quiz - Lesson 2 - Variables & Functions

GDScript Quiz - Lesson 2 - Variables & Functions

12th Grade

10 Qs

quiz-placeholder

Similar activities

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

LA5.C5: Branching and Subroutines

LA5.C5: Branching and Subroutines

9th Grade - University

14 Qs

Basics of spreadsheet

Basics of spreadsheet

12th Grade

15 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Stepwise Refinement

Stepwise Refinement

11th - 12th Grade

13 Qs

BTEC Unit 1: HTTPS, SSL and TLS Quiz

BTEC Unit 1: HTTPS, SSL and TLS Quiz

12th Grade

15 Qs

TLE ICT10 D11 General Keyboard Shortcuts

TLE ICT10 D11 General Keyboard Shortcuts

12th Grade

10 Qs

COMPUTER HARDWARE OUTPUT

COMPUTER HARDWARE OUTPUT

1st Grade - Professional Development

10 Qs

GDScript Quiz - Lesson 2 - Variables & Functions

GDScript Quiz - Lesson 2 - Variables & Functions

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Peter Fletcher

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in GDScript?

A fixed data point that cannot change.

A storage location paired with a name that contains some known or unknown quantity or information, a value.

A type of function.

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In GDScript, which keyword is used to declare a constant?

var

const

static

func

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you correctly declare a function in GDScript?

function my_func():

def my_func():

func my_func():

function: my_func()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a variable that you intend to change later in your script?

const my_var = 10

var my_var = 10

static my_var = 10

my_var = 10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about local variables in GDScript?

They can only be declared inside functions.

They are accessible from anywhere in the script.

They persist between different runs of the game.

They automatically become global variables.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct statement about constants in GDScript.

The function takes no arguments and returns an integer.

The function takes two integers as arguments and does not return any value.

The function takes two integers as arguments and returns an integer.

The function is improperly declared and will cause a runtime error.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following function declaration indicate in GDScript? func my_function(x:int, y:int) -> int:

The function takes no arguments and returns an integer.

The function takes two integers as arguments and does not return any value.

The function takes two integers as arguments and returns an integer.

The function is improperly declared and will cause a runtime error.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?