LUA QUIZ

LUA QUIZ

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Microsoft Access

Microsoft Access

12th Grade

12 Qs

String grade 9

String grade 9

9th - 12th Grade

10 Qs

Pivot Table In Khmer

Pivot Table In Khmer

11th Grade

11 Qs

Quiz sobre a aula passada!

Quiz sobre a aula passada!

9th - 12th Grade

9 Qs

CPro-Unit6-String

CPro-Unit6-String

10th Grade - University

6 Qs

Python String Data Structure

Python String Data Structure

10th - 12th Grade

12 Qs

Computer Science

Computer Science

12th Grade

11 Qs

Roblox things you don't know.

Roblox things you don't know.

KG - 12th Grade

12 Qs

LUA QUIZ

LUA QUIZ

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

JKL 1234s

Used 1+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

declare variable x as 10 in lua?

local x = 10

!!!

x := 10
let x = 10
var x = 10

2.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

how to declare a string variable in lua?

local str = 'Hello'

!!!

str := 'Hello'

let str = 'Hello'

var str = 'Hello'

3.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

what is the correct way to create a table in lua?

local myTable = {}

!!!

myTable := {}

let myTable = {}

var myTable = {}

4.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

how to define a function in lua?

function myFunction() end

!!!

myFunction() := function() end

let myFunction = function() end

var myFunction = function() end

5.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

how to concatenate two strings in lua?

local result = str1 .. str2

!!!

result := str1 + str2

let result = str1 + str2

var result = str1 + str2

6.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

how to create a for loop in lua?

for i = 1, 10 do end

!!!

for i in 1 to 10 do end

let i = 1; i <= 10; i++

var i = 1; i < 10; i++

7.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

what is the correct way to check if a table is empty in lua?

if next(myTable) == nil then end

!!!

if myTable == {} then end

if #myTable == 0 then end

if myTable.length == 0 then end