Search Header Logo

Luau Tables

Authored by Christmas Itso

Computers

5th Grade

Used 3+ times

Luau Tables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper syntax for declaring a table?

[]

{}

both {} and []

<>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the sugar syntax for 'table.myFunc = function()'?

define function() as table.myFunc

function() = table.myFunc

function table.myFunc()

There is no alternative

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does it mean to index something?

To change a value of the a table

To get a value of a table

To flip a value of a table

To recur a value of the table

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you index something?

table[1]

get 1 of table

table.index(table, 1)

table::1

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which are viable syntax to indexing/hashing a dictionary?

dict[myKey]

dict.myKey

dict["myKey"]

dict::table.hash("myKey")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these can you NOT put in a table

function

nil

a service

You can put all of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many elements can a table hold?

You have you define it as its static

Its dynamic so as many as your memory can reach

100

256

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?