Lua quiz: Basics (Print, functions, while true loops)

Quiz
•
Computers
•
5th - 8th Grade
•
Medium
Hypercanibble no
Used 97+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you print?
Print("texthere")
print ("texthere")
print("texthere")
print(texthere)
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
The text you will print is called a...
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of these definitions match a function? Select all that apply.
A pre-installed thing that the Lua engine is able to do, such as print()
A pre-installed thing that the Lua engine is able to do, such as edit properties
Something you give a piece of code to use in another script
Something you give a piece of code to for later use
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do you have to do at the end of a function?
Nothing, it automatically closes.
Encase it in brackets.
Write "end".
Write </function>.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the wait() function do?
It tells the computer to wait before launching the game.
It tells the computer to wait before proceeding in the script.
It tells the computer to wait for a player to move.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a parameter?
Nothing; it has no significance in code.
A value that defines how the function will work, basically specifications.
A value that tells the computer where a player is.
A boundary for the level so that players cannot leave them.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do you need to a complete a wait() function, inside its brackets?
A string
An argument
A parameter
Add a number in quotations
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Making Websites Quiz Y9

Quiz
•
8th - 9th Grade
15 questions
Web Design End of Quarter Study Quiz

Quiz
•
7th Grade
12 questions
HTML - Tags, elements, tables and images

Quiz
•
7th - 9th Grade
10 questions
JavaScript Basics

Quiz
•
6th - 8th Grade
10 questions
Understanding Python Conditional Statements

Quiz
•
7th Grade
15 questions
Python-Interactive Mode

Quiz
•
6th Grade
10 questions
Python

Quiz
•
1st - 12th Grade
8 questions
if...else statements

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd 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
25 questions
Exploring POV and Unreliable Narrators

Quiz
•
7th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
20 questions
Typing Practice

Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade