
BCCK SNLTW HP4

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Vũ Quang
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vòng lặp của game theo thứ tự gồm những bước nào?
Bắt sự kiện, xử lý các lệnh, cập nhật các hình vẽ
Xử lý các lệnh, bắt sự kiện, cập nhật các hình vẽ
Cập nhật các hình vẽ, xử lý các lệnh, bắt sự kiện
Bắt sự kiện, cập nhật các hình vẽ, xử lý các lệnh
Answer explanation
# Bắt event
for event in pygame.event.get():
if event == pygame.QUIT:
pygame.quit()
# Lệnh vẽ background màu đen
screen.fill((0,0,0))
# Update hình vẽ
pygame.display.update()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dùng để vẽ hình chữ nhật / vẽ khung cho các hình?
pygame.draw_rect()
pygame.draw.rect()
pygame.display.update()
pygame.Rect()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tạo một vật thể khung chữ nhật (Rect()) cần mấy tham số, cụ thể là những tham số nào?
4: screen, color, width, height
2: x, y
3: screen, color, Rect()
4: x, y, width, height
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khởi tạo môi trường cho pygame chúng ta cần sử dụng câu lệnh nào?
import pygame
game = pygame.Pygame()
import pygame
pygame.init()
import pygame
game = pygame.init()
import pygame
pygame.Pygame()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kích thước ô vuông cell_size = 30. Giả sử muốn dịch chuyển khối sang trái 2 ô thì câu lệnh nào đúng nhất?
x += 2 * cell_size
y -= 2 * cell_size
x -= 2 * cell_size
y += 2 * cell_size
Answer explanation
Chiều x tăng từ trái sang phải
Chiều y tăng từ trên xuống dưới
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kích thước ô vuông cell_size = 30. Giả sử muốn dịch chuyển khối xuống dưới 3 ô thì câu lệnh nào đúng nhất?
y -= 3 * cell_size
y += 3
x -= 2 * cell_size
y += 3 * cell_size
Answer explanation
Phải nhân cell_size vì y += 3 là đếm theo pixels, không phải đếm theo ô.
Khi nhân lên thì 3 x cell_size = 3 x 30 = 90 (pixels)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào thể hiện tính kế thừa (inheritance) trong Python?
class Car:
#code
class Ferrari:
#code
class Car:
#code
class Ferrari(Car):
#code
class Car:
#code
class Ferrari extends Car:
#code
class Car:
#code
class Ferrari : Car:
#code
Answer explanation
class Ferrari extends Car của Java
class Ferrari : Car của C++
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
BÀI 6: ĐỊNH DẠNG TRANG TÍNH

Quiz
•
6th - 9th Grade
10 questions
Làm việc với danh sách dạng liệt kê và hình ảnh trong văn bản

Quiz
•
8th Grade
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

Quiz
•
1st - 12th Grade
12 questions
TIN HỌC 6_KIỂM TRA CUỐI KỲ 2

Quiz
•
6th Grade
10 questions
[SI - 2024] Check point 2

Quiz
•
6th - 8th Grade
15 questions
IC3 GS6 Level 1 - Bài 10: Làm quen với trình duyệt Web

Quiz
•
6th - 8th Grade
10 questions
THCS TAM HOA - LỚP 7- BÀI 8: SẮP XẾP VÀ LỌC DỮ LIỆU

Quiz
•
8th Grade
10 questions
TRÍ NHỚ SIÊU PHÀM

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
25 questions
Exploring POV and Unreliable Narrators

Quiz
•
7th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
20 questions
Typing Practice

Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade