wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SNLTG_Bài 7

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

Để kiểm tra kiểu dữ liệu ta dùng câu lệnh nào?

a)

type

b)

print

c)

data

d)

typeof

2.

Hãy viết cách truy cập vào thuộc tính Transparency của mục Part bằng đường dẫn tuyệt đối

a)

game.Part.Transparency

b)

Workspace.Part.Transparency

c)

game.Workspace.Part.Transparency

d)

script.Part.Transparency

3.

Hãy viết cách truy cập vào thuộc tính BrickColor của mục Part bằng đường dẫn tương đối.

a)

game.Parent.BrickColor

b)

script.Parent.BrickColor

c)

game.Workspace.BrickColor

d)

Workspace.Parent.BrickColor

4.

Cho biết kết quả của câu lệnh sau:

print(type(script.Parent.CanCollide))

a)

number

b)

userdata

c)

string

d)

Boolean

5.

Câu lệnh nào dùng để đổi màu vật thể sang màu bất kì

a)

script.Parent.BrickColor=Random()

b)

script.Parent.BrickColor=BrickColor.Random()

c)

script.Parent.BrickColor=Parent.Random()

d)

script.Parent.BrickColor=script.Random()

6.

Cho biết kết quả của câu lệnh sau:

print(script.Parent.Anchored)

a)

True

b)

False

c)

0

d)

1

7.

Tác dụng của lệnh wait()?

a)

Chờ 1 khoảng thời gian tính bằng giây (s)

b)

Chờ 1 khoảng thời gian tính bằng mili giây (ms)

c)

Chờ 1 khoảng thời gian tính bằng phút (min)

d)

Chờ 1 khoảng thời gian tính bằng micro giây (µs)

8.

Để xem các thuộc tính của vật thể ta vào mục nào?

a)

View

b)

Properties

c)

Explore

d)

Output