What is Luau?
A programming language derived from Lua, designed for Roblox game development.
True or false: Luau is a statically typed language.
FALSE
Luau is dynamically typed but supports optional static typing.
Define Roblox.
An online platform that allows users to create and play games created by other users.
What does JIT stand for in Luau?
Just-In-Time, a compilation method that improves performance during execution.
Fill in the blank: Luau is an extension of ______.
Lua
What is the purpose of type annotations in Luau?
To specify the data types of variables, enhancing code clarity and safety.
True or false: Luau supports coroutines.
TRUE
Coroutines allow for cooperative multitasking in Luau.
What is a table in Luau?
A data structure that can hold multiple values, similar to arrays or dictionaries.
Define metatables.
Tables that define behavior for other tables, enabling operator overloading and inheritance.
What is the Roblox API?
A set of functions and services that developers use to interact with the Roblox platform.
Fill in the blank: Luau uses __index for ______.
inheritance
What is a function in Luau?
A block of code that performs a specific task and can be reused.
True or false: Luau allows first-class functions.
TRUE
Functions can be assigned to variables, passed as arguments, and returned from other functions.
What is Roblox Studio?
An integrated development environment for creating and managing Roblox games.
Define event in Luau.
A signal that can be triggered to notify listeners about changes or actions.
Fill in the blank: Local variables are defined with the keyword ______.
local
What is a module script?
A script that can be reused across different parts of a Roblox game.
True or false: Luau supports object-oriented programming.
TRUE
Luau allows for creating classes and objects using tables and metatables.
What is debugging?
The process of identifying and fixing errors or bugs in code.
Define scope in programming.
The context in which a variable is accessible or defined.
Fill in the blank: Luau uses __call for ______.
function-like behavior
What is a callback function?
A function passed as an argument to another function, executed at a later time.
True or false: Luau has built-in support for error handling.
TRUE
Luau uses pcall and xpcall for error handling.
What does yield do in Luau?
Pauses the execution of a coroutine, allowing other coroutines to run.