LUA Test

LUA Test

9th Grade

10 Qs

quiz-placeholder

Similar activities

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

Week 2 ( Prepare Hand Tools)

Week 2 ( Prepare Hand Tools)

9th Grade

10 Qs

computer Networks

computer Networks

University

10 Qs

CSS9_Q3M2L1_QUIZ3

CSS9_Q3M2L1_QUIZ3

9th Grade

10 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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?