Cỡ chữ
bảng tínhquiz turtle
Total câu hỏi: 24
Worksheet time: 23mins
what programming language is used in turtle editor?
LUA
java script
python
elien
what is variable?
is a temporary data storage
is a string or integer
is a data type
what is looping ?
looping is important in programming
to called the variable in programming
is used for repeat a block of code
select the correct example of variable [ lamp ]
Lamp1
Lamp
?.Lamp
how to create triangle?
pen = turtle.Pen()
screen = turtle.Screen()
def move(x,y):
pen.pencolor("#3366ff")
pen.pensize(5)
pen.penup()
pen.goto(x, y)
for __count in range(3):
__Pen.pendown()
__Pen.right(120)
__Pen.forward(100)
to make a square you need to loop how many times?
4
2
6
how many degrees of triangle?
120°
80°
180°
which one icon of turtle editor?
how many degrees of square
90°
180°
360°
how to create square in turtle?
for __count in range(2):
__Pen.pendown()
__Pen.right(360)
__Pen.forward(100)
for __count in range(3):
__Pen.pendown()
__Pen.right(120)
__Pen.forward(100)
for __count in range(4):
__Pen.pendown()
__Pen.right(90)
__Pen.forward(100)
which one example of looping?
__Pen.goto((-150), 150)
for __count in range(3):
__Pen.end_fill()
which code to create pentagon?
which code to create star?
what is list at turtle?
condition that choice which one that true and false
variable that can only save string and operator mathematics
temporary data storage
A variable that can store more than one value
what is the purpose of a function in programming?
to store data
to repeat a block of code
to create a variable
what is the use of conditional statements in programming?
to repeat a block of code
to make decisions in the program
to store data temporarily
which one code to draw circle?
[choice more than one answer]
which one example of list at turtle editor?
turtle.onscreenclick(get_mouse_coor)
while (forward > 0):
warna = ["blue", "red", "yellow"]
def draw_circle(color):
which one code to move position?
#Get start with Python
__Pen.penup()
__Pen.pensize(5)
__Pen.pendown()
#Get start with Python
__Pen.penup()
__Pen.goto(100, 100)
__Pen.pendown()
#Get start with Python
__Pen.penup()
__Pen.write('Hello')
__Pen.pendown()
#Get start with Python
__Pen.penup()
__Pen.clear()
__Pen.pendown()
which one example is not a looping?
which one syntax to create function?
if question == color:
print("correct!")
else :
print("Incorrect, the color was", color)
draw_circle(color)
time.sleep(0.3)
circle.clear()
warna = ["blue", "red", "yellow", "purple", "green", "grey"]
def draw_circle(color):
circle.penup()
circle.goto(100, 20)
circle.pendown()
circle.color(color)
what is conditional statement in coding?
used to make decisions in programs.
if or else
used to store data that can be manipulated and referenced throughout the program
rovide a way to manage and work with data dynamically within a program
process of repeatedly executing a block of code multiple times
which one example of conditional statement?
how to hide ink from pen in turtle editor?
using block
using block
using block
using block
