Search Header Logo

Quiz 3.4

Authored by Mohand Mahmoud

Computers

Professional Development

Used 1+ times

Quiz 3.4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

import datetime

x = datetime.datetime.now()

print(x.year)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

import datetime

x = datetime.datetime(2020, 5, 17)

print(x)


2020-05-17 00:00:00

2020-05-17

2020

17-5-2020

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

mytuple = ("apple", "banana", "cherry")

myit = iter(mytuple)

print(next(myit))


4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

x = lambda a : a / 10
print(x(500))

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print(math.remainder(9,2))

1

1.0

0

0.0

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

import math

print(math.factorial(3))

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Convert from JSON to Python:

loads

dumps

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?