Search Header Logo

Time library - Python

Authored by Owen PERRY

Computers

9th - 12th Grade

Used 2+ times

Time library - Python
AI

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

How do you tell python you want to use the turtle library

turtle import

import turtle

from libraries import turtle

from turtle import libraries

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these commands would successfully create a turtle named Alice

Alice = turtle.turtle()

Alice = Turtle.turtle()

Alice = Turtle.Turtle()

Alice = turtle.Turtle()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In python which is the correct method to load a library called math?

include math

import math

#include<math.h>

using math

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you call the sleep function of the time library?

sleep.time(x)

sleep.time(x,y)

time.sleep(x)

time.sleep(x,y)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the sleep function return

String

Integer

Float

Nothing

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what does time.time_ns() return?

string

integer

float

nothing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does time.time_ns do()

Gives you the number of seconds since the program started

Gives you the number of minutes since the epoch

Gives you the number of seconds since the epoch

Calculates the difference between the current time and the epoch

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?