Search Header Logo

10th Grade - 3rdCycle Exam

Authored by Eugene Castro

Computers

10th Grade

Used 4+ times

10th Grade - 3rdCycle Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which module in Python is used to work with dates and times?

time
datetime
calendar
dateutil

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you import the datetime module in Python?

import datetime
import time
import date
import calendar

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns the current date and time?

datetime.today()
datetime.now()
datetime.current()
datetime.date()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a date object for May 17, 2020?

datetime(2020, 5, 17)
datetime.date(2020, 5, 17)
datetime.datetime(2020, 5, 17)
date(2020, 5, 17)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the strftime("%B") method return when called on a date object?

Short version of the month name
Full version of the month name
Month as a number
Day of the month

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which directive is used to represent the year with century in the strftime method?

%y
%Y
%C
%B

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you import the math module in Python?

import mathematics
import math
import nums
import calc

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?