LUA Test

LUA Test

9th Grade

10 Qs

quiz-placeholder

Similar activities

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

PSP Week3

PSP Week3

University

10 Qs

Programming Lesson 1b (CS50x)

Programming Lesson 1b (CS50x)

9th - 12th Grade

11 Qs

Python Yazılım Dilleri Soruları

Python Yazılım Dilleri Soruları

University

10 Qs

Python Programming

Python Programming

7th - 9th Grade

10 Qs

Python introduction

Python introduction

University

15 Qs

MYSQL

MYSQL

12th Grade

15 Qs

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?