BCCK HP 4 SNLTW

BCCK HP 4 SNLTW

6th - 8th Grade

30 Qs

quiz-placeholder

Similar activities

Ôn tập GK2 Tin6

Ôn tập GK2 Tin6

6th Grade

30 Qs

ÔN TẬP TIN 7 HỌC KỲ 1

ÔN TẬP TIN 7 HỌC KỲ 1

1st - 12th Grade

25 Qs

ICT quiz for class 7

ICT quiz for class 7

7th Grade

25 Qs

Contextualizada 7

Contextualizada 7

7th Grade

25 Qs

ÔN CK1 TIN 8

ÔN CK1 TIN 8

7th Grade - University

25 Qs

kuis powerpoint

kuis powerpoint

7th Grade

25 Qs

Ôn Tập Học Kì I Lớp 4

Ôn Tập Học Kì I Lớp 4

4th Grade - University

35 Qs

IC3GS6 LEVEL 2 PHẦN 4

IC3GS6 LEVEL 2 PHẦN 4

8th Grade

30 Qs

BCCK HP 4 SNLTW

BCCK HP 4 SNLTW

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Phong Nguyễn

Used 1+ times

FREE Resource

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.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?