WorksheetsSimple Easy Basic Lua Quiz
Total questions: 10
Worksheet time: 4mins
Which of the following Arguments can be used for print() command?
String
Integer
Variable
All of the above
What will be the output in log/console window for:
print("Log")
(a)
Which of the command will give an output of 100 (integer but not float) for variable x
x = math.floor( ( ( 100 * 100 ) / 10) / 10 )
a = 110
x = a - 10
100 = x
x / 100 = 1
How do you short this equation:
if x == y or x > y then end
(a)
How do you short this equation:(Note : No Tabs Or Space Required Other Than Enter/Next Line, But Still Tab = )
print(x)
print(x)
print(x)
print(x)
print(x)
(a)
What is x in the given command:
x = {}
Integer
Variable
Table
None of the above
What is x in the given command:
x = 12
Integer
Variable
Table
None of the above
What will be answer to:
math.floor(3.14)
3
0.14
3.1
4
What will be answer to:
string.len("String") + 11
17
6
11
13
What will be value of z in command:
x = "String"
y = string.len(x)
z = y + 4
(a)
