
014. A - D Extra Help
Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Robert Giordano
Used 3+ times
FREE Resource
4 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
In order to use the date and time features in Python, we have to import a module.
Fill in the import statement.
import _________
2.
DROPDOWN QUESTION
1 min • 1 pt
Fill in the blanks to get the current date from the computer
import datetime
curr_date = (a) . (b) . (c) ()
print(curr_date)
3.
DRAG AND DROP QUESTION
1 min • 1 pt
Drag and drop to complete the code to create a date object.
import datetime
curr_date = datetime.datetime.now()
month = curr_date.month
year = curr_date. year
day = curr_date.day
today = datetime. (a) ( (b) , (c) , (d) )
print(today)
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Fill in the blank to print the difference between the 2 time objects in the number of days.
import datetime
date1 = datetime.date(2023, 9, 1)
date2 = datetime.date(2023, 12, 25)
diff = (date2 - date1).____
print(diff)
Similar Resources on Wayground
9 questions
advanced storage techniques ( arrays , DataFrame)
Quiz
•
9th - 10th Grade
9 questions
بايثون 1
Quiz
•
9th Grade
9 questions
Technology Skills
Quiz
•
10th Grade
9 questions
Programiranje(Python) PP
Quiz
•
5th Grade - University
8 questions
Understanding Python Variables and Data Types
Quiz
•
9th Grade
8 questions
Level 1 - week 1
Quiz
•
7th Grade - University
8 questions
Повторение март ОГЭ
Quiz
•
9th - 12th Grade
8 questions
JS Question Practice
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
