+ operator do in Lua?
10 % 3 return in Lua?
**^^^exp()15 // 4 in Lua?
+-++%-a represent in Lua?
aaa5 + 2 * 3 return in Lua?
======isEqual()a ~= b mean in Lua?
a is greater than ba is not equal to ba is less than or equal to ba and b><>=<=false == nil return in Lua?
truefalsenil=="apple" < "banana" in Lua?
truefalsenil<= operator signify?
and operator do in Lua?
true only if both operands are truetrue and false in Lua?
truefalsenilor and and operators?
or requires both conditions to be trueor returns true if either condition is trueand works only on numbersnot true in Lua?
truefalsenilnil as:
truefalse..)+..&concat()"Lua" .. " Programming"?
Lua ProgrammingLuaProgrammingLua+Programming..?
"Lua" .. nil output?
Lua nilLuanil"A" .. " " .. "B""A" + " " + "B""A B""A & B"^*+and..)?
orand+^a + b * c evaluated in Lua?
(a + b) * ca + (b * c)a + b + ca * (b + c)| Qno | Answer |
|---|---|
| 1 | b) Adds two numbers |
| 2 | a) 1 |
| 3 | b) ^ |
| 4 | c) 3 |
| 5 | c) ++ |
| 6 | a) Negation of a |
| 7 | b) 11 |
| 8 | b) Yes, Lua converts strings to numbers |
| 9 | b) == |
| 10 | b) a is not equal to b |
| 11 | a) > |
| 12 | b) false |
| 13 | a) Yes, based on lexicographic order |
| 14 | a) true |
| 15 | a) Less than or equal to |
| 16 | b) Returns true only if both operands are true |
| 17 | b) false |
| 18 | b) or returns true if either condition is true |
| 19 | b) false |
| 20 | b) false |
| 21 | b) .. |
| 22 | b) LuaProgramming |
| 23 | b) Yes, Lua converts numbers to strings |
| 24 | c) Error |
| 25 | a) "A" .. " " .. "B" |
| 26 | a) ^ |
| 27 | b) Right-to-left |
| 28 | a) or |
| 29 | b) a + (b * c) |
| 30 | a) Arithmetic > Relational > Logical |