Back to Unit 6
Unit Test: Control Structures
Question 1 of 4
Question 1
Which keyword is used to start an if statement in Lua?
if
when
check
condition
Question 2
What symbol is used for 'not equal to' in Lua?
!=
<>
~=
/=
Question 3: Coding Challenge
Write a function that returns 'Pass' if the score is 70 or higher, otherwise return 'Fail'.
Test Results:
Run Tests
Question 4
Which of the following is NOT a valid comparison operator in Lua?
==
<=
>=
=>
1
2
3
4
Submit Test
Unit Test Results
Unit 6: Control Structures
0/4
0%
Passed!
Failed
Question Summary: