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
Similar Resources on Wayground
13 questions
JavaScript

Quiz
•
University
10 questions
python quiz

Quiz
•
6th Grade - Professio...
12 questions
Python

Quiz
•
7th - 9th Grade
15 questions
Python Basics Quiz

Quiz
•
9th - 12th Grade
10 questions
PCEP Section 1E: Perform Input/Output console operations

Quiz
•
12th Grade
10 questions
LEFT_RIGHT_MID Excel Functions Quiz

Quiz
•
9th Grade - University
10 questions
8 Arduino: 2x16 Display

Quiz
•
12th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade
14 questions
Points, Lines, Planes

Quiz
•
9th Grade