LUA Test

LUA Test

9th Grade

10 Qs

quiz-placeholder

Similar activities

Week 2 ( Prepare Hand Tools)

Week 2 ( Prepare Hand Tools)

9th Grade

10 Qs

Trò chơi ôn tập Tin 12 lần 1

Trò chơi ôn tập Tin 12 lần 1

12th Grade

10 Qs

computer Networks

computer Networks

University

10 Qs

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Process modeling

Process modeling

University

10 Qs

 QUIZ  MS Core Java Quiz-3 2023

QUIZ MS Core Java Quiz-3 2023

University

11 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?