Search Header Logo

BCCK HP 4 SNLTW

Authored by Phong Nguyễn

Computers

6th - 8th Grade

Used 1+ times

BCCK HP 4 SNLTW
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi tải hình ảnh vào Pygame, lệnh nào dưới đây được sử dụng?

pygame.image.load()
pygame.draw.image()
pygame.display.load()
pygame.load.image()

Answer explanation

Để tải hình ảnh vào Pygame, chúng ta sử dụng hàm pygame.image.load()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tạo mới một đối tượng font trong Pygame, hàm nào sau đây được sử dụng?

pygame.font.Font()
pygame.create.Font()
pygame.font.load()
pygame.text.Font()

Answer explanation

Để tạo một đối tượng font mới, chúng ta sử dụng pygame.font.Font()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào sau đây được sử dụng để phát nhạc nền trong Pygame?

pygame.music.play()
pygame.mixer.Sound()
pygame.mixer.music.play()
pygame.sound.play()

Answer explanation

Để phát nhạc nền, chúng ta sử dụng hàm pygame.mixer.music.play()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để hiển thị văn bản lên màn hình trong Pygame, phương thức nào được sử dụng?

render()
draw()
text()
display()

Answer explanation

Để hiển thị văn bản lên màn hình, chúng ta sử dụng phương thức render() của đối tượng font

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tải và hiển thị hình ảnh 'background.jpg' lên màn hình, bạn sẽ viết đoạn mã nào sau đây?

background = pygame.image.load('background.jpg')
pygame.display.load('background.jpg')
background = pygame.display.load('background.jpg')
pygame.image.show('background.jpg')

Answer explanation

Để tải và hiển thị hình ảnh, chúng ta sử dụng đoạn mã này

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn mã nào sau đây sẽ tạo mới một đối tượng font với font Arial và kích thước 32?

my_font = pygame.font.Font('Arial', 32)
my_font = pygame.font.SysFont('Arial', 32)
my_font = pygame.font.Font('Arial.ttf', 32)
my_font = pygame.SysFont('Arial', 32)

Answer explanation

Để tạo mới một đối tượng font với font Arial và kích thước 32, chúng ta sử dụng pygame.font.SysFont()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Vòng lặp trò chơi trong Pygame thực hiện chức năng gì quan trọng nhất?

Khởi tạo màn hình trò chơi
Nhận và xử lý sự kiện
Đã nạp tài nguyên trò chơi
Thoát khỏi trò chơi

Answer explanation

Vòng lặp trò chơi trong Pygame thực hiện chức năng quan trọng nhất là nhận và xử lý sự kiện.

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?