LUA Test

LUA Test

9th Grade

10 Qs

quiz-placeholder

Similar activities

Python

Python

7th - 9th Grade

12 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

File Function Activity

File Function Activity

University

10 Qs

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Flask

Flask

University

11 Qs

Python Strings

Python Strings

8th - 12th Grade

14 Qs

While loop

While loop

3rd Grade - University

9 Qs

LUA Test

LUA Test

Assessment

Quiz

Computers

9th Grade

Medium

Created by

JKL 1234s

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

Which will output 'Hello world' in lua?

print('Hello world')
echo 'Hello world'
console.log('Hello world')
write('Hello world')

2.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

Which function is used to read a file in lua?

readfile('filename.txt')

io.open('filename.txt')

file.read('filename.txt')

openfile('filename.txt')

3.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

What is the correct way to define a variable in lua?

var x = 10

x := 10

local x = 10

let x = 10

4.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

How do you create a table in lua?

table.create()

{}

new table()

table.new()

5.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

What is the correct way to concatenate strings in lua?

string.concat('Hello', 'World')

'Hello' .. 'World'

concat('Hello', 'World')

'Hello' + 'World'

6.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

Which operator is used for equality comparison in lua?

==

=

===

!=

7.

MULTIPLE CHOICE QUESTION

2 mins • 10 pts

How do you define a function in lua?

function myFunction()

def myFunction()

myFunction() = function()

func myFunction()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?