wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Simple Easy Basic Lua Quiz

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.

Which of the following Arguments can be used for print() command?

a)

String

b)

Integer

c)

Variable

d)

All of the above

2.

What will be the output in log/console window for:

print("Log")

(a)  

3.

Which of the command will give an output of 100 (integer but not float) for variable x

a)

x = math.floor( ( ( 100 * 100 ) / 10) / 10 )

b)

a = 110

x = a - 10

c)

100 = x

d)

x / 100 = 1

4.

How do you short this equation:

if x == y or x > y then end

(a)  

5.

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)  

6.

What is x in the given command:

x = {}

a)

Integer

b)

Variable

c)

Table

d)

None of the above

7.

What is x in the given command:

x = 12

a)

Integer

b)

Variable

c)

Table

d)

None of the above

8.

What will be answer to:

math.floor(3.14)

a)

3

b)

0.14

c)

3.1

d)

4

9.

What will be answer to:

string.len("String") + 11

a)

17

b)

6

c)

11

d)

13

10.

What will be value of z in command:

x = "String"

y = string.len(x)

z = y + 4

(a)