020. Extra Help

020. Extra Help

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

07 - Nested Structures

07 - Nested Structures

12th Grade

10 Qs

انواع البيانات(date)

انواع البيانات(date)

10th Grade

8 Qs

APCSA - Unit 3

APCSA - Unit 3

9th - 12th Grade

10 Qs

Code.org AP CSP Unit 4

Code.org AP CSP Unit 4

9th - 12th Grade

6 Qs

Code.org CSP Visualizations

Code.org CSP Visualizations

9th - 12th Grade

6 Qs

IGCSE Computer Science - Chapter 9: Problem-Solving and Design

IGCSE Computer Science - Chapter 9: Problem-Solving and Design

9th - 10th Grade

10 Qs

Visual Basic I

Visual Basic I

10th - 11th Grade

10 Qs

Yr 9 & Yr 10 recap

Yr 9 & Yr 10 recap

9th - 11th Grade

10 Qs

020. Extra Help

020. Extra Help

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Robert Giordano

Used 1+ times

FREE Resource

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