
Kiểm tra về mô-đun datetime trong Python
Authored by Hoàng Cảnh
Computers
Professional Development

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để lấy ra thời gian ngày và giờ hiện tại trong Python sử dụng mô-đun datetime?
datetime.datetime.now()
datetime.date.today()
datetime.time()
datetime.timedelta()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lớp nào trong mô-đun datetime đại diện cho thời gian cục bộ?
Lớp date
Lớp time
Lớp timedelta
Lớp datetime
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để tạo một đối tượng date chứa ngày hiện tại trong Python?
date.today()
date.present()
date.now()
date.current()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để lấy ra thời gian giờ, phút, giây và mili giây từ một đối tượng time trong Python?
a.h, a.m, a.s, a.ms
a.hh, a.mm, a.ss, a.ms
a.hours, a.minutes, a.seconds, a.milliseconds
a.hour, a.minute, a.second, a.microsecond
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lớp nào trong mô-đun datetime có thể chứa thông tin từ cả hai đối tượng date và time?
Lớp date
Lớp time
Lớp datetime
Lớp timedelta
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để tính sự chênh lệch giữa hai khoảng thời gian ngày và giờ trong Python?
t1 / t2
t1 * t2
t1 + t2
t1 - t2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để tính tổng số giây trong một đối tượng timedelta trong Python?
t.count_seconds()
t.sum_seconds()
t.total_seconds()
t.get_seconds()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Programming Knowledge Quiz (Medium)
Quiz
•
5th Grade - Professio...
10 questions
Advanced Excel
Quiz
•
Professional Development
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
GSuite Quiz
Quiz
•
Professional Development
11 questions
คำถาม Scratch
Quiz
•
Professional Development
10 questions
Python - Introdução
Quiz
•
Professional Development
15 questions
Google Sheets Finance Quiz
Quiz
•
Professional Development
13 questions
Phyton Lección 2
Quiz
•
Professional Development
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
44 questions
Would you rather...
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
14 questions
Valentine's Day Trivia!
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development