Search Header Logo

Roblox Lanjutan (Bag. 6)

Authored by Haiko Academy

Computers

9th - 12th Grade

Used 2+ times

Roblox Lanjutan (Bag. 6)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct way to increase a variable by 1 in Lua?

x += 1
x = x + 1
x++
x =+ 1

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the `==` operator check in Lua?

Adds values
Assigns values
Compares equality
Subtracts values

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator means 'not equal' in Lua?

!=
~=
<>
!==

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of `true and false`?

true
false
nil
error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the `or` operator do in Lua?

Returns true if both are true
Returns true if one is true
Returns false always
Returns error if both are false

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these is a correct variable name in Lua?

2name
user-name
_score
true

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What keyword is used to start a conditional block in Lua?

then
if
when
start

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?