Search Header Logo

020. Extra Help

Authored by Robert Giordano

Computers

9th - 12th Grade

Used 1+ times

020. Extra Help
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

DROPDOWN QUESTION

1 min • 1 pt

Complete the statement below to be able to create date objects.

import ​ (a)  

datetime
math
date
random

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to complete the statement to get the current datetime from the computer

curr_date = datetime.datetime.___()

3.

DRAG AND DROP QUESTION

1 min • 1 pt

Create a date object in the code below.

import datetime

year = 2023

month = 12

day = 25

xmas = ​ (a)   .​ (b)   (​​ (c)   , ​ (d)   , ​ (e)   )

datetime
date
year
month
day

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Complete the code below to find the number of days between date1 and date 2

import datetime

date1 = datetime.date(2023, 9, 6)

date2 = datetime.date(2024, 6, 21)

diff = (date2 - date1).____

5.

DRAG AND DROP QUESTION

1 min • 1 pt

Complete the code to print which number is larger

num1 = 4

num2 = 6

if ​ (a)   :

print("{} is larger".format(num1))

​ (b)   :

print("{} is larger".format(num2))

num1 > num2
else
num2 > num1
if
num1 == num2
num1 != num2

Access all questions and much more by creating a free account

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

Already have an account?