Search Header Logo

BCCK SNLTW HP2

Authored by Khánh Nguyễn

Computers

Professional Development

Used 1+ times

BCCK SNLTW HP2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào dùng để import thư viện turtle trong Python?

import turtle as t

import turtle

from turtle import *

Tất cả các đáp án trên

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào dùng để tạo một đối tượng "rùa" trong Python?

r = Turtle()

r = turtle.Turtle()

t = turtle()

t = Turtle

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào để rùa quay phải một góc 90 độ?

t.right(90)

t.turn_right(90)

t.rotate(90)

t.left(90)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào dùng để thay đổi tốc độ di chuyển của rùa?

t.speed(10)

t.set_speed(10)

t.fast(10)

t.accelerate(10)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp nào đúng để mở file data.txt ở chế độ đọc?

open('data.txt', 'w')

open('data.txt', 'r')

open('data.txt', 'a')

open('data.txt', 'x')

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Đoạn mã sau có lỗi gì?

File không được đóng sau khi mở.

Thiếu chế độ mở file 'w'.

File không đọc được dữ liệu.

Không có lỗi nào trong mã.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào để ghi nội dung "Hello, World!" vào file?

file.write("Hello, World!")

file.writeline("Hello, World!")

file.insert("Hello, World!")

file.add("Hello, World!")

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?