
LUA QUIZ

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
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
!!!
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
Similar Resources on Wayground
10 questions
LUA Test

Quiz
•
9th Grade - University
12 questions
Unit 1 Module 2 Test

Quiz
•
9th - 12th Grade
10 questions
Robótica

Quiz
•
1st - 12th Grade
10 questions
Arrays e Manipulação de Strings em C

Quiz
•
12th Grade
5 questions
khởi động trước khi vào bài list

Quiz
•
10th Grade
12 questions
Roblox Studio

Quiz
•
5th - 11th Grade
10 questions
Lesson 1 Database Basics

Quiz
•
9th - 11th Grade
10 questions
2022 高二下半年小测验1 String.h & Function

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade