wayground logo

Bảng tính có thể in miễn phí

Cỡ chữ

S
M
L
XL
bảng tính

quiz turtle

Total câu hỏi: 24

Worksheet time: 23mins

Tên
Lớp học
Ngày
1.

what programming language is used in turtle editor?

a)

LUA

b)

java script

c)

python

d)

elien

2.

what is variable?

a)

is a temporary data storage

b)

is a string or integer

c)

is a data type

3.

what is looping ?

a)

looping is important in programming

b)

to called the variable in programming

c)

is used for repeat a block of code

4.

select the correct example of variable [ lamp ]

a)

Lamp1

b)

Lamp

c)

?.Lamp

5.

how to create triangle?

a)

pen = turtle.Pen()

screen = turtle.Screen()

b)

def move(x,y):

pen.pencolor("#3366ff")

pen.pensize(5)

pen.penup()

pen.goto(x, y)

c)

for __count in range(3):

__Pen.pendown()

__Pen.right(120)

__Pen.forward(100)

6.

to make a square you need to loop how many times?

a)

4

b)

2

c)

6

7.

how many degrees of triangle?

a)

120°

b)

80°

c)

180°

8.

which one icon of turtle editor?

a)

b)

c)

d)

9.

how many degrees of square

a)

90°

b)

180°

c)

360°

10.

how to create square in turtle?

a)

for __count in range(2):

__Pen.pendown()

__Pen.right(360)

__Pen.forward(100)

b)

for __count in range(3):

__Pen.pendown()

__Pen.right(120)

__Pen.forward(100)

c)

for __count in range(4):

__Pen.pendown()

__Pen.right(90)

__Pen.forward(100)

11.

which one example of looping?

a)

__Pen.goto((-150), 150)

b)

for __count in range(3):

c)

__Pen.end_fill()

12.

which code to create pentagon?

a)

b)

c)

d)

13.

which code to create star?

a)

b)

c)

d)

14.

what is list at turtle?

a)

condition that choice which one that true and false

b)

variable that can only save string and operator mathematics

c)

temporary data storage

d)

A variable that can store more than one value

15.

what is the purpose of a function in programming?

a)

to store data

b)

to repeat a block of code

c)

to create a variable

16.

what is the use of conditional statements in programming?

a)

to repeat a block of code

b)

to make decisions in the program

c)

to store data temporarily

17.

which one code to draw circle?

[choice more than one answer]

a)

b)

c)

d)

18.

which one example of list at turtle editor?

a)

turtle.onscreenclick(get_mouse_coor)

b)

while (forward > 0):

c)

warna = ["blue", "red", "yellow"]

d)

def draw_circle(color):

19.

which one code to move position?

a)

#Get start with Python

__Pen.penup()

__Pen.pensize(5)

__Pen.pendown()

b)

#Get start with Python

__Pen.penup()

__Pen.goto(100, 100)

__Pen.pendown()

c)

#Get start with Python

__Pen.penup()

__Pen.write('Hello')

__Pen.pendown()

d)

#Get start with Python

__Pen.penup()

__Pen.clear()

__Pen.pendown()

20.

which one example is not a looping?

a)

b)

c)

d)

21.

which one syntax to create function?

a)

if question == color:

print("correct!")

else :

print("Incorrect, the color was", color)

b)

draw_circle(color)

time.sleep(0.3)

circle.clear()

c)

warna = ["blue", "red", "yellow", "purple", "green", "grey"]

d)

def draw_circle(color):

circle.penup()

circle.goto(100, 20)

circle.pendown()

circle.color(color)

22.

what is conditional statement in coding?

a)

used to make decisions in programs.

if or else

b)

used to store data that can be manipulated and referenced throughout the program

c)

rovide a way to manage and work with data dynamically within a program

d)

process of repeatedly executing a block of code multiple times

23.

which one example of conditional statement?

a)

b)

c)

d)

24.

how to hide ink from pen in turtle editor?

a)

using block

b)

using block

c)

using block

d)

using block