9/22 Daily Do Now

9/22 Daily Do Now

Assessment

Interactive Video

Information Technology (IT)

9th - 12th Grade

Hard

Created by

Amy Austin

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the foundational step required to begin working with variables and scripts in a Godot project?

Creating a new project folder.

Creating a scene with at least one node.

Declaring a variable using the 'var' keyword.

Attaching a script to an existing node.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a variable in GDScript?

let

const

var

def

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of attempting to assign an integer value to a variable that has been explicitly type-casted as a String in GDScript?

The integer value is automatically converted to a string.

The variable's type is dynamically changed to integer.

A runtime error occurs, preventing the assignment.

The integer value is ignored, and the variable retains its original string value.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In GDScript, how can two string variables, for example, `numberA = "Hello "` and `numberB = "World"`, be combined to print "Hello World"?

print(numberA - numberB)

print(numberA * numberB)

print(numberA + numberB)

print(numberA / numberB)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a new Node instance is created without explicitly setting its name, what kind of name does it typically receive?

A generic name like "Node"

A name based on its script file

An auto-generated name, such as "@2"

An empty string

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In GDScript, how do you assign a specific name to a Node instance after it has been created?

node_instance.set_name("CustomName")

node_instance.name = "CustomName"

set_node_property(node_instance, "name", "CustomName")

rename_node(node_instance, "CustomName")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which built-in GDScript function is used to determine the data type of a variable?

get_type()

type_of()

typeof()

check_type()

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider a variable `numberA` initialized as a string (`var numberA = "Hello"`). What is the outcome if you later attempt to assign an integer value to it (`numberA = 0`)?

The variable's type will automatically change to integer.

The integer value will be implicitly converted to a string.

A runtime error will occur due to type mismatch.

The assignment will be ignored, and `numberA` will retain its original string value.