LUA Test
Quiz
•
Computers
•
9th Grade
•
Medium
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?
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
ICT450-TOPIC 1
Quiz
•
University
11 questions
Chapter 6 Part 2 - 4
Quiz
•
11th - 12th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
15 questions
KD 3.1_Aplikasi Pengolah Angka / Spreadsheet
Quiz
•
10th Grade
13 questions
9G4 CS Python Programming Sequence and Vocabs
Quiz
•
9th Grade
10 questions
Weekly Contest #3 - TechXNinjas
Quiz
•
University
10 questions
Network
Quiz
•
10th - 11th Grade
10 questions
คอมพิวเตอร์ในชีวิตประจำวัน
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
15 questions
Halloween Trivia
Quiz
•
9th Grade
