LUA Test

LUA Test

9th Grade

10 Qs

quiz-placeholder

Similar activities

12 Multimedia - Quiz BAB 3 -  DMI

12 Multimedia - Quiz BAB 3 - DMI

10th Grade

10 Qs

Internet

Internet

10th Grade

12 Qs

NHTW Programming

NHTW Programming

9th Grade

10 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

Activity 1: How well do you know Java?

Activity 1: How well do you know Java?

9th Grade

10 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

ADVACOMT-Quiz No.1 (final term)

ADVACOMT-Quiz No.1 (final term)

University

15 Qs

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

LUA Test

LUA Test

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

JKL 1234s

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?