This quiz will give me a sense of my students' Lua abilities before I have begun teaching them.
Local Variables can only be accessed in the scope they were created in.
Local Variables can contain larger values.
Local Variables are closer to home while Global Variables are around the world.
Local Variables are more sensitive.
Rate this question:
A loop that takes a while to run.
A loop that can contain a Local Variable.
A loop that runs only while a specified condition is true.
A really cool loop.
Rate this question:
True
False
Rate this question:
A variable that is defined in a function and can only be used for it.
It's what happens when two people disagree.
It's what happens when two function disagrees.
A type of function.
Rate this question:
'' - single quotes
[] - brackets
() - parenthesis
{} - braces
Rate this question:
Use a numerical for loop.
Use a generic for loop.
Use a repeat loop.
Use a while loop.
Rate this question:
For k,v in table do print(k,v) end
For i = pairs(table) do print(i)
For k,v in pairs(table) do print(k,v) end
For i in pairs(table) do print(i) end
Rate this question:
Just make them global variables.
Use the global table (_G). Put variables inside of _G and access them from any script.
They're automatically shared.
Don't.
Rate this question:
Quiz Review Timeline (Updated): Mar 20, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.