Search Header Logo

[ENG] Roblox M8L2

Authored by Oleg Kheyfets

Computers

3rd Grade

[ENG] Roblox M8L2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the variable?

Set of instructions.

Data storing structure (like food storage container).

The structure that causes the code to lengthen.

Instructions that can be used repeatedly.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to create variables in Lua programming?

Variable creation in Lua programming is done using the 'global' keyword followed by the variable name.

Variable creation in Lua programming is done using the 'local' keyword followed by the variable name.

Variable creation in Lua programming is not necessary.

Variable creation in Lua programming is done using the 'var' keyword followed by the variable name.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function?

Data storing structure.

Reusable loops.

Instruction to do something.

Structure to change character properties.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in Lua programming?

Use the keyword 'func' followed by the function name and its parameters, then the function body enclosed in 'end'.

Use the keyword 'def' followed by the function name and its parameters, then the function body enclosed in 'end'.

Use the keyword 'function' followed by the function name and its parameters, then the function body enclosed in 'end'.

Use the keyword 'define' followed by the function name and its parameters, then the function body enclosed in 'end'.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are function parameters in Lua programming?

Function parameters in Lua programming are the comments added to a function for documentation purposes.

Function parameters in Lua programming are the output values returned by a function when it is called.

Function parameters in Lua programming are the input values that are passed to a function when it is called.

Function parameters in Lua programming are the variables used within the function to store intermediate values.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are comments denoted in Lua programming?

Comments in Lua programming are denoted by '//' at the beginning of a line.

Comments in Lua programming are denoted by '/*' and '*/' to enclose multiple lines.

Comments in Lua programming are denoted by '--' at the beginning of a line.

Comments in Lua programming are denoted by '#' at the beginning of a line.

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?