
Python Dates

Quiz
•
Other
•
12th Grade
•
Medium
Amy Austin
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What module in Python is used to work with dates?
dateutil
datetime
time
calendar
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to format date objects into readable strings?
strftime()
strptime()
format()
fdate()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value for the hour parameter in the datetime() class?
0
None
12
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid directive for the strftime() method?
%B
%R
%O
%L
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a date object in Python?
Using the createDate() function
Using the newDate() method
Using the date() function
Using the datetime() class
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the '%d' directive represent in the strftime() method?
Month as a zero-padded decimal number
Day of the week as a decimal number
Year without century as a zero-padded decimal number
Day of the month as a zero-padded decimal number
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a method of the datetime module?
datetime.strftime()
datetime.now()
datetime.format()
datetime.strptime()
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Topic 7: Decoder Quiz

Quiz
•
12th Grade
15 questions
Needlecraft Quiz

Quiz
•
9th - 12th Grade
11 questions
Canoeing - Scouting

Quiz
•
1st - 12th Grade
11 questions
How to read a Micrometer

Quiz
•
12th Grade
15 questions
Engineer's Scale - Measuring

Quiz
•
10th - 12th Grade
10 questions
Quiz sobre Bases de Dados

Quiz
•
12th Grade
10 questions
MESOPOTAMIA

Quiz
•
9th - 12th Grade
10 questions
Topic 1: Number System Quiz

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade