InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the output of the following? |
|
Answer» What is the output of the following? |
|
| 2. |
By default, the trigonometric function of a standard library of Lua takes angle values in ____________. |
|
Answer» By default, the trigonometric function of a standard LIBRARY of Lua takes angle values in ____________. |
|
| 3. |
In which state is a coroutine after a return? |
|
Answer» In which state is a coroutine after a return? |
|
| 4. |
The status of a coroutine may be found using ______________. |
|
Answer» The status of a coroutine MAY be found USING ______________. |
|
| 5. |
There are no explicit file handlers in the complex IO model. |
|
Answer» There are no explicit file HANDLERS in the COMPLEX IO model. |
|
| 6. |
The function used to continue a coroutine is ______________ |
|
Answer» The function USED to continue a coroutine is ______________ |
|
| 7. |
What is the output of 3/2? |
|
Answer» What is the OUTPUT of 3/2? |
|
| 8. |
The function used to generate random numbers in Lua is __________. |
|
Answer» The function used to GENERATE random NUMBERS in LUA is __________. |
|
| 9. |
What will be the output of for i=1,5,3 do print(i) end? |
|
Answer» What will be the output of for i=1,5,3 do print(i) END? |
|
| 10. |
How many files can be handled at a time in a simple IO model of Lua? |
|
Answer» How many FILES can be handled at a time in a simple IO model of Lua? |
|
| 11. |
Modules are stored in tables in Lua. |
|
Answer» Modules are STORED in TABLES in Lua. |
|
| 12. |
Break statements are used to exit a function. |
|
Answer» Break statements are USED to exit a function. |
|
| 13. |
How many states can a coroutine be in? |
|
Answer» How many states can a COROUTINE be in? |
|
| 14. |
There are three versions of for loop in Lua. |
|
Answer» There are three versions of for LOOP in Lua. |
|
| 15. |
If a,b=1, what will be the value of b? |
|
Answer» If a,b=1, what will be the value of b? |
|
| 16. |
Which of the following is a valid variable name in Lua? |
|
Answer» Which of the following is a VALID variable NAME in Lua? |
|
| 17. |
If a, b = 1, 2, 3, what will be the value of a and b? |
|
Answer» If a, B = 1, 2, 3, what will be the value of a and b? |
|
| 18. |
Which is the string concatenation operator in Lua? |
|
Answer» Which is the string CONCATENATION operator in LUA? |
|
| 19. |
What is the output of 2^10? |
|
Answer» What is the output of 2^10? |
|
| 20. |
When a coroutine is created, it is in a suspended state. |
|
Answer» When a COROUTINE is created, it is in a suspended state. |
|
| 21. |
Invocation of a coroutine is termed as _____________. |
|
Answer» INVOCATION of a COROUTINE is termed as _____________. Choose the Correct ANSWER from below lists (1)run (2)None of the OPTIONS (3)RESUME (4)call Answer:-(3)resume |
|
| 22. |
Which function is present in the standard library of Lua? |
|
Answer» Which function is present in the standard library of Lua? |
|
| 23. |
The following are data types in Lua, except ___________. |
|
Answer» The FOLLOWING are data TYPES in LUA, except ___________. |
|
| 24. |
How many logical operators are there in Lua? |
|
Answer» How many logical operators are there in LUA? |
|
| 25. |
In which state is a coroutine after a yield()? |
|
Answer» In which state is a coroutine after a yield()? |
|
| 26. |
There is no multi-line comment in Lua. |
|
Answer» There is no multi-line COMMENT in Lua. |
|